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.001922/0.001922, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 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.002487/0.002487, allocations: 213 kB / 22.24 MB, free: 5.262 MB / 14.72 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 1.544/1.544, allocations: 230.6 MB / 256 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] 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.0145/0.0145, allocations: 2.633 MB / 315.1 MB, free: 272 kB / 238.1 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: translateModel(BLDC.Examples.DemoElectronicCommutator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=99999,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoElectronicCommutator") translateModel(BLDC.Examples.DemoElectronicCommutator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=99999,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoElectronicCommutator") [Timeout 660] "Notification: BLDC requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: BLDC requested package ModelicaServices of version 4.0.0. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: BLDC requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00351/0.00351, allocations: 99.84 kB / 438.6 MB, free: 13.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.1329, allocations: 53.99 MB / 492.6 MB, free: 7.426 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.005812/0.1387, allocations: 2.83 MB / 495.4 MB, free: 4.578 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00312/0.1418, allocations: 1.305 MB / 496.7 MB, free: 3.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003319/0.1421, allocations: 15.88 kB / 496.7 MB, free: 3.254 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004015/0.1425, allocations: 99.16 kB / 496.8 MB, free: 3.156 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00131/0.1439, allocations: 398.2 kB / 497.2 MB, free: 2.766 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004312/0.1443, allocations: 183.7 kB / 497.4 MB, free: 2.586 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001257/0.1455, allocations: 0.7797 MB / 498.2 MB, free: 1.805 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004604/0.146, allocations: 233.8 kB / 498.4 MB, free: 1.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004391/0.1464, allocations: 323 kB / 498.7 MB, free: 1.254 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000473/0.1469, allocations: 338.5 kB / 499.1 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001067/0.147, allocations: 60 kB / 499.1 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003801/0.1474, allocations: 163.9 kB / 499.3 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002729/0.1477, allocations: 231.2 kB / 499.5 MB, free: 488 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003099/0.148, allocations: 274.5 kB / 499.8 MB, free: 212 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001201/0.1492, allocations: 0.8793 MB / 0.4889 GB, free: 15.32 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.167e-06/0.1492, allocations: 0 / 0.4889 GB, free: 15.32 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.1492, allocations: 0 / 0.4889 GB, free: 15.32 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.675e-05/0.1492, allocations: 4 kB / 0.4889 GB, free: 15.32 MB / 366.1 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.003207/0.1524, allocations: 1.151 MB / 0.4901 GB, free: 14.14 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.324e-05/0.1525, allocations: 12.03 kB / 0.4901 GB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002842/0.1527, allocations: 92.41 kB / 0.4902 GB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001005/0.1538, allocations: 0.5025 MB / 0.4906 GB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.354e-05/0.1538, allocations: 41.69 kB / 0.4907 GB, free: 13.46 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001024/0.1539, allocations: 52.33 kB / 0.4907 GB, free: 13.41 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001583/0.1555, allocations: 0.8516 MB / 0.4916 GB, free: 12.51 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.27e-05/0.1555, allocations: 7.938 kB / 0.4916 GB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.596e-05/0.1556, allocations: 20 kB / 0.4916 GB, free: 12.48 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.098e-05/0.1556, allocations: 37.3 kB / 0.4916 GB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001711/0.1573, allocations: 0.6295 MB / 0.4922 GB, free: 11.82 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003969/0.1613, allocations: 1.889 MB / 0.4941 GB, free: 9.871 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001761/0.1631, allocations: 0.5384 MB / 0.4946 GB, free: 9.32 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006783/0.1637, allocations: 249.3 kB / 0.4948 GB, free: 9.074 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001279/0.1639, allocations: 19.98 kB / 0.4949 GB, free: 9.055 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.682e-05/0.1639, allocations: 46.56 kB / 0.4949 GB, free: 9 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.685e-06/0.1639, allocations: 7.938 kB / 0.4949 GB, free: 8.992 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002235/0.1662, allocations: 0.7117 MB / 0.4956 GB, free: 8.273 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.144e-05/0.1662, allocations: 55.41 kB / 0.4957 GB, free: 8.207 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006833/0.1669, allocations: 0.5137 MB / 0.4962 GB, free: 7.684 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.778e-05/0.167, allocations: 33.7 kB / 0.4962 GB, free: 7.645 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002925/0.1672, allocations: 344.7 kB / 0.4965 GB, free: 7.305 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001397/0.1674, allocations: 138.9 kB / 0.4967 GB, free: 7.168 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001942/0.1676, allocations: 114.2 kB / 0.4968 GB, free: 7.047 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001936/0.1678, allocations: 358.8 kB / 0.4971 GB, free: 6.688 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006771/0.1685, allocations: 228.8 kB / 0.4973 GB, free: 6.465 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007428/0.1692, allocations: 346.6 kB / 0.4977 GB, free: 6.078 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001284/0.1705, allocations: 490.4 kB / 0.4981 GB, free: 5.547 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.563e-06/0.1705, allocations: 4 kB / 0.4981 GB, free: 5.543 MB / 366.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001682/0.1722, allocations: 0.6237 MB / 0.4987 GB, free: 4.914 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.085e-05/0.1722, allocations: 7.938 kB / 0.4987 GB, free: 4.906 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.314e-05/0.1722, allocations: 4 kB / 0.4988 GB, free: 4.902 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.717e-05/0.1722, allocations: 8 kB / 0.4988 GB, free: 4.895 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003357/0.1726, allocations: 87.81 kB / 0.4988 GB, free: 4.809 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.507e-05/0.1726, allocations: 8 kB / 0.4989 GB, free: 4.801 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004609/0.173, allocations: 71.62 kB / 0.4989 GB, free: 4.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.289e-05/0.1731, allocations: 23.98 kB / 0.4989 GB, free: 4.707 MB / 366.1 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.0004235/0.1735, allocations: 267.8 kB / 0.4992 GB, free: 4.438 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001688/0.1737, allocations: 63.56 kB / 0.4993 GB, free: 4.375 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001683/0.1754, allocations: 0.6078 MB / 0.4999 GB, free: 3.762 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.648e-06/0.1754, allocations: 4 kB / 0.4999 GB, free: 3.758 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/0.1754, allocations: 8 kB / 0.4999 GB, free: 3.75 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.313e-06/0.1754, allocations: 7.922 kB / 0.4999 GB, free: 3.742 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002724/0.1781, allocations: 1.174 MB / 0.501 GB, free: 2.531 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.1781, allocations: 3.938 kB / 0.501 GB, free: 2.527 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002906/0.1784, allocations: 55.91 kB / 0.5011 GB, free: 2.473 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.319e-05/0.1784, allocations: 7.984 kB / 0.5011 GB, free: 2.465 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.128e-05/0.1785, allocations: 12 kB / 0.5011 GB, free: 2.453 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.1785, allocations: 0 / 0.5011 GB, free: 2.453 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.539e-06/0.1785, allocations: 7.922 kB / 0.5011 GB, free: 2.445 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002409/0.1809, allocations: 0.9589 MB / 0.502 GB, free: 1.469 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003009/0.1812, allocations: 107.6 kB / 0.5021 GB, free: 1.363 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.522e-05/0.1813, allocations: 4 kB / 0.5021 GB, free: 1.359 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004572/0.1817, allocations: 59.92 kB / 0.5022 GB, free: 1.301 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002924/0.182, allocations: 119.8 kB / 0.5023 GB, free: 1.184 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.73e-05/0.1821, allocations: 19.98 kB / 0.5023 GB, free: 1.164 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000475/0.1825, allocations: 358.8 kB / 0.5027 GB, free: 0.8164 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1825, allocations: 0 / 0.5027 GB, free: 0.8164 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006479/0.1832, allocations: 163.5 kB / 0.5028 GB, free: 0.6562 MB / 366.1 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.0002912/0.1835, allocations: 148.8 kB / 0.503 GB, free: 0.5039 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.2429/0.4263, allocations: 0.5123 MB / 0.5035 GB, free: 24.12 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.538e-06/0.4263, allocations: 4.969 kB / 0.5035 GB, free: 24.12 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009774/0.4273, allocations: 271.5 kB / 0.5037 GB, free: 24.12 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006611/0.428, allocations: 62.88 kB / 0.5038 GB, free: 24.11 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002388/0.4304, allocations: 1.232 MB / 0.505 GB, free: 23.65 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004326/0.4308, allocations: 348.4 kB / 0.5053 GB, free: 23.56 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005322/0.4313, allocations: 183.7 kB / 0.5055 GB, free: 23.55 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001843/0.4315, allocations: 59.09 kB / 0.5056 GB, free: 23.54 MB / 366.1 MB Notification: Performance of SimCode: time 1.372e-06/0.4315, allocations: 0 / 0.5056 GB, free: 23.54 MB / 366.1 MB Notification: Performance of Templates: time 0.01675/0.4483, allocations: 7.426 MB / 0.5128 GB, free: 22.51 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f BLDC_BLDC.Examples.DemoElectronicCommutator.makefile [Timeout 660] (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 & ./BLDC_BLDC.Examples.DemoElectronicCommutator -abortSlowSimulation -alarm=480 -lv LOG_STATS > BLDC_BLDC.Examples.DemoElectronicCommutator.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.5047170631587505] Failed to read output from testmodel.py, exit status != 0: 0.45818664133548737 0.469534789 0.31785519300000004 Calling exit ...