Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BLDC_BLDC.Examples.DemoElectronicCommutator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008497/0.0008497, allocations: 80.44 kB / 19.16 MB, free: 0.7305 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009324/0.0009324, allocations: 173.9 kB / 22.45 MB, free: 2.086 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8888/0.8888, allocations: 177.2 MB / 202.8 MB, free: 5.762 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.00791/0.00791, allocations: 1.987 MB / 261.2 MB, free: 11.29 MB / 250.7 MB " [Timeout remaining time 180] Using package BLDC with version 1.9.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BLDC.Examples.DemoElectronicCommutator,fileNamePrefix="BLDC_BLDC_Examples_DemoElectronicCommutator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BLDC.Examples.DemoElectronicCommutator,fileNamePrefix="BLDC_BLDC_Examples_DemoElectronicCommutator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.132e-06/1.132e-06, allocations: 0 / 384.3 MB, free: 13.56 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.393e-05/1.506e-05, allocations: 8.891 kB / 384.3 MB, free: 13.55 MB / 362.7 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.002961/0.002977, allocations: 2.825 MB / 387.2 MB, free: 10.71 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.00174/0.004717, allocations: 1.301 MB / 388.5 MB, free: 9.402 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002402/0.004957, allocations: 15.94 kB / 388.5 MB, free: 9.387 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002898/0.005247, allocations: 95.11 kB / 388.6 MB, free: 9.293 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008128/0.006059, allocations: 405.9 kB / 389 MB, free: 8.895 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000206/0.006265, allocations: 179.8 kB / 389.1 MB, free: 8.719 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007015/0.006967, allocations: 0.7874 MB / 389.9 MB, free: 7.926 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002797/0.007247, allocations: 225.9 kB / 390.2 MB, free: 7.699 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003279/0.007574, allocations: 435.2 kB / 390.6 MB, free: 7.273 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002503/0.007825, allocations: 299.1 kB / 390.9 MB, free: 6.98 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 6.532e-05/0.00789, allocations: 67.94 kB / 390.9 MB, free: 6.914 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000189/0.008079, allocations: 155.9 kB / 391.1 MB, free: 6.762 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001572/0.008236, allocations: 243.2 kB / 391.3 MB, free: 6.523 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001338/0.00837, allocations: 211.4 kB / 391.5 MB, free: 6.316 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006336/0.009004, allocations: 0.8878 MB / 392.4 MB, free: 5.426 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.463e-06/0.009005, allocations: 0 / 392.4 MB, free: 5.426 MB / 362.7 MB Notification: Performance of FrontEnd: time 7.32e-07/0.009006, allocations: 0 / 392.4 MB, free: 5.426 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.106e-05/0.009017, allocations: 4 kB / 392.4 MB, free: 5.422 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 143 * Number of variables: 143 Notification: Performance of Generate backend data structure: time 0.001656/0.01067, allocations: 1.159 MB / 393.6 MB, free: 4.23 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.295e-05/0.01071, allocations: 12.03 kB / 393.6 MB, free: 4.219 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.187e-05/0.01079, allocations: 102.7 kB / 393.7 MB, free: 4.109 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001513/0.01094, allocations: 92.41 kB / 393.8 MB, free: 4.02 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005002/0.01144, allocations: 0.5018 MB / 394.3 MB, free: 3.488 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.323e-05/0.01146, allocations: 37.69 kB / 394.3 MB, free: 3.449 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.5e-05/0.01152, allocations: 52.38 kB / 394.4 MB, free: 3.398 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008693/0.01239, allocations: 0.8444 MB / 395.2 MB, free: 2.508 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.0124, allocations: 3.938 kB / 395.2 MB, free: 2.504 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.538e-05/0.01244, allocations: 27.98 kB / 395.2 MB, free: 2.477 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.636e-05/0.01247, allocations: 37.3 kB / 395.3 MB, free: 2.441 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008975/0.01337, allocations: 0.6257 MB / 395.9 MB, free: 1.816 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002102/0.01547, allocations: 2.005 MB / 397.9 MB, free: 15.74 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009393/0.01641, allocations: 0.5306 MB / 398.4 MB, free: 15.2 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003614/0.01677, allocations: 244.7 kB / 398.7 MB, free: 14.96 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.795e-05/0.01685, allocations: 19.98 kB / 398.7 MB, free: 14.94 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.199e-05/0.01687, allocations: 43.33 kB / 398.7 MB, free: 14.89 MB / 378.7 MB Notification: Performance of pre-optimization done (n=44): time 1.763e-06/0.01688, allocations: 7.938 kB / 398.8 MB, free: 14.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=44): time 0.001159/0.01803, allocations: 0.7272 MB / 399.5 MB, free: 14.14 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.598e-05/0.01806, allocations: 55.41 kB / 399.5 MB, free: 14.08 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004376/0.0185, allocations: 0.6201 MB / 400.2 MB, free: 13.45 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.54e-05/0.01852, allocations: 33.7 kB / 400.2 MB, free: 13.41 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001632/0.01869, allocations: 336.4 kB / 400.5 MB, free: 13.08 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.236e-05/0.01876, allocations: 134.8 kB / 400.6 MB, free: 12.95 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001097/0.01887, allocations: 118.1 kB / 400.8 MB, free: 12.82 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001071/0.01898, allocations: 370.8 kB / 401.1 MB, free: 12.45 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003503/0.01933, allocations: 220.8 kB / 401.3 MB, free: 12.24 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000401/0.01973, allocations: 350.5 kB / 401.7 MB, free: 11.84 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006827/0.02041, allocations: 498.4 kB / 402.2 MB, free: 11.3 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.02041, allocations: 3.938 kB / 402.2 MB, free: 11.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008772/0.02129, allocations: 0.6199 MB / 402.8 MB, free: 10.68 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/0.0213, allocations: 11.94 kB / 402.8 MB, free: 10.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.094e-06/0.02131, allocations: 4 kB / 402.8 MB, free: 10.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.113e-05/0.02132, allocations: 4 kB / 402.8 MB, free: 10.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001699/0.02149, allocations: 87.89 kB / 402.9 MB, free: 10.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.413e-06/0.0215, allocations: 7.938 kB / 402.9 MB, free: 10.56 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002316/0.02173, allocations: 83.53 kB / 403 MB, free: 10.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.905e-05/0.02176, allocations: 23.98 kB / 403 MB, free: 10.46 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 16 (electronicCommutator.fire_n[5],electronicCommutator.fire_n[4],electronicCommutator.fire_n[3],electronicCommutator.fire_n[2],electronicCommutator.fire_n[1],electronicCommutator.fire_p[5],electronicCommutator.fire_p[4],electronicCommutator.fire_p[3],electronicCommutator.fire_p[2],electronicCommutator.fire_p[1],hallSensor.yC[5],hallSensor.yC[4],hallSensor.yC[3],hallSensor.yC[2],hallSensor.yC[1],sinCosEvaluation.integralController.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002044/0.02196, allocations: 275.6 kB / 403.3 MB, free: 10.18 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.479e-05/0.02205, allocations: 71.56 kB / 403.4 MB, free: 10.11 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009301/0.02298, allocations: 0.6087 MB / 404 MB, free: 9.492 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.684e-06/0.02299, allocations: 12 kB / 404 MB, free: 9.48 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.02299, allocations: 0 / 404 MB, free: 9.48 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.023, allocations: 0 / 404 MB, free: 9.48 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001568/0.02456, allocations: 1.239 MB / 405.2 MB, free: 8.191 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.02457, allocations: 0 / 405.2 MB, free: 8.191 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001532/0.02472, allocations: 67.89 kB / 405.3 MB, free: 8.125 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.02472, allocations: 0 / 405.3 MB, free: 8.125 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.334e-05/0.02475, allocations: 8 kB / 405.3 MB, free: 8.117 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.781e-06/0.02475, allocations: 11.98 kB / 405.3 MB, free: 8.105 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.02475, allocations: 3.938 kB / 405.3 MB, free: 8.102 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0013/0.02605, allocations: 0.963 MB / 406.3 MB, free: 7.117 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001465/0.0262, allocations: 131.5 kB / 406.4 MB, free: 6.988 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.786e-05/0.02624, allocations: 8 kB / 406.4 MB, free: 6.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002224/0.02646, allocations: 55.92 kB / 406.5 MB, free: 6.926 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001698/0.02663, allocations: 123.8 kB / 406.6 MB, free: 6.805 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.484e-05/0.02665, allocations: 19.98 kB / 406.6 MB, free: 6.785 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000314/0.02697, allocations: 430.8 kB / 407 MB, free: 6.367 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.02697, allocations: 0 / 407 MB, free: 6.367 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000322/0.02729, allocations: 151.7 kB / 407.2 MB, free: 6.219 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (constantSpeed.phi,sinCosEvaluation.integralController.y) * Number of discrete variables: 15 (hallSensor.yC[1],hallSensor.yC[2],hallSensor.yC[3],hallSensor.yC[4],hallSensor.yC[5],electronicCommutator.fire_p[1],electronicCommutator.fire_p[2],electronicCommutator.fire_p[3],electronicCommutator.fire_p[4],electronicCommutator.fire_p[5],electronicCommutator.fire_n[1],electronicCommutator.fire_n[2],electronicCommutator.fire_n[3],electronicCommutator.fire_n[4],electronicCommutator.fire_n[5]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001614/0.0289, allocations: 1.555 MB / 408.7 MB, free: 4.637 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008286/0.02973, allocations: 0.5258 MB / 409.2 MB, free: 4.113 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.02973, allocations: 0 / 409.2 MB, free: 4.113 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003855/0.03012, allocations: 275.5 kB / 409.5 MB, free: 3.844 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002992/0.03042, allocations: 73.23 kB / 409.6 MB, free: 3.777 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005568/0.03599, allocations: 5.736 MB / 415.3 MB, free: 13.86 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000221/0.03621, allocations: 343.3 kB / 415.7 MB, free: 13.5 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003273/0.03654, allocations: 192.5 kB / 415.8 MB, free: 13.31 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002255/0.03676, allocations: 248.4 kB / 416.1 MB, free: 13.07 MB / 394.7 MB Notification: Performance of SimCode: time 6.41e-07/0.03676, allocations: 0 / 416.1 MB, free: 13.07 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02739/0.06415, allocations: 14.42 MB / 430.5 MB, free: 14.82 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.053/7.118, allocations: 5.734 kB / 430.5 MB, free: 14.82 MB / 410.7 MB " [Timeout remaining time 653] (rm -f BLDC_BLDC.Examples.DemoElectronicCommutator.pipe ; mkfifo BLDC_BLDC.Examples.DemoElectronicCommutator.pipe ; head -c 1048576 < BLDC_BLDC.Examples.DemoElectronicCommutator.pipe >> ../files/BLDC_BLDC.Examples.DemoElectronicCommutator.sim & python3 -m fmpy simulate --output-file BLDC_BLDC.Examples.DemoElectronicCommutator_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.00001e-05 BLDC_BLDC_Examples_DemoElectronicCommutator.fmu > BLDC_BLDC.Examples.DemoElectronicCommutator.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.097630393691361] Failed to read output from testmodel.py, exit status != 0: 7.200788936112076 7.20924101 7.198593873 Calling exit ...