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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BLDC.Examples.DemoElectronicCommutator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=199998,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoElectronicCommutator") translateModel(BLDC.Examples.DemoElectronicCommutator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=199998,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoElectronicCommutator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001384/0.001384, allocations: 111.1 kB / 16.42 MB, free: 6.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001327/0.001328, allocations: 185.7 kB / 17.35 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.477/1.477, allocations: 222.9 MB / 241.1 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.01333/0.01333, allocations: 2.591 MB / 293.8 MB, free: 12.19 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002819/0.002819, allocations: 104.2 kB / 406 MB, free: 29.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1158, allocations: 50.03 MB / 456 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.004954/0.1208, allocations: 2.996 MB / 459 MB, free: 8.461 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00267/0.1235, allocations: 1.325 MB / 460.4 MB, free: 7.133 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004646/0.124, allocations: 11.94 kB / 460.4 MB, free: 7.121 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004671/0.1245, allocations: 99.17 kB / 460.5 MB, free: 7.023 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001571/0.1261, allocations: 434 kB / 460.9 MB, free: 6.598 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005069/0.1267, allocations: 179.7 kB / 461.1 MB, free: 6.422 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001435/0.1281, allocations: 0.7759 MB / 461.8 MB, free: 5.645 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000637/0.1288, allocations: 377.3 kB / 462.2 MB, free: 5.262 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005068/0.1293, allocations: 318.9 kB / 462.5 MB, free: 4.949 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005181/0.1298, allocations: 334.6 kB / 462.9 MB, free: 4.621 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001512/0.13, allocations: 63.98 kB / 462.9 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000384/0.1304, allocations: 143.9 kB / 463.1 MB, free: 4.418 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002572/0.1306, allocations: 227.4 kB / 463.3 MB, free: 4.195 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003998/0.131, allocations: 350 kB / 463.6 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001204/0.1323, allocations: 0.8481 MB / 464.5 MB, free: 3 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.1323, allocations: 0 / 464.5 MB, free: 3 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1323, allocations: 0 / 464.5 MB, free: 3 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.089e-05/0.1323, allocations: 0 / 464.5 MB, free: 3 MB / 334.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.003408/0.1357, allocations: 1.195 MB / 465.7 MB, free: 1.754 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.184e-05/0.1358, allocations: 8.031 kB / 465.7 MB, free: 1.746 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003529/0.1362, allocations: 96.36 kB / 465.8 MB, free: 1.652 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001018/0.1372, allocations: 0.5681 MB / 466.3 MB, free: 1.047 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.142e-05/0.1373, allocations: 37.69 kB / 466.4 MB, free: 1.008 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001092/0.1374, allocations: 48.38 kB / 466.4 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001754/0.1391, allocations: 0.7261 MB / 467.1 MB, free: 220 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.13e-05/0.1392, allocations: 3.938 kB / 467.2 MB, free: 216 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.986e-05/0.1393, allocations: 27.98 kB / 467.2 MB, free: 188 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.822e-05/0.1393, allocations: 37.3 kB / 467.2 MB, free: 152 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001687/0.141, allocations: 0.6218 MB / 467.8 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004205/0.1452, allocations: 2.207 MB / 470 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001643/0.1469, allocations: 0.5533 MB / 470.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000642/0.1476, allocations: 260.7 kB / 470.9 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00022/0.1478, allocations: 174.1 kB / 471 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.61e-05/0.1478, allocations: 43.27 kB / 471.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 5.35e-06/0.1478, allocations: 4 kB / 471.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.002117/0.15, allocations: 0.7234 MB / 471.8 MB, free: 11.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.159e-05/0.15, allocations: 59.34 kB / 471.8 MB, free: 11.36 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007783/0.1508, allocations: 0.6163 MB / 472.5 MB, free: 10.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.805e-05/0.1509, allocations: 33.7 kB / 472.5 MB, free: 10.69 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002422/0.1511, allocations: 332.4 kB / 472.8 MB, free: 10.36 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000137/0.1513, allocations: 134.8 kB / 473 MB, free: 10.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001903/0.1515, allocations: 110.2 kB / 473.1 MB, free: 10.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.1516, allocations: 378.9 kB / 473.4 MB, free: 9.738 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006051/0.1522, allocations: 220.9 kB / 473.6 MB, free: 9.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006813/0.1529, allocations: 346.4 kB / 474 MB, free: 9.141 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001178/0.1541, allocations: 494.5 kB / 474.5 MB, free: 8.605 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/0.1541, allocations: 4 kB / 474.5 MB, free: 8.602 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001575/0.1557, allocations: 0.6234 MB / 475.1 MB, free: 7.973 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.49e-05/0.1558, allocations: 10.34 kB / 475.1 MB, free: 7.965 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.322e-05/0.1558, allocations: 4.469 kB / 475.1 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.439e-05/0.1558, allocations: 8 kB / 475.1 MB, free: 7.953 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00033/0.1562, allocations: 91.83 kB / 475.2 MB, free: 7.863 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.612e-05/0.1562, allocations: 7.984 kB / 475.2 MB, free: 7.855 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004844/0.1567, allocations: 87.47 kB / 475.3 MB, free: 7.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.337e-05/0.1567, allocations: 23.98 kB / 475.3 MB, free: 7.746 MB / 350.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.0003581/0.1571, allocations: 263.9 kB / 475.6 MB, free: 7.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001833/0.1573, allocations: 67.55 kB / 475.6 MB, free: 7.414 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001641/0.1589, allocations: 0.6204 MB / 476.3 MB, free: 6.781 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.163e-06/0.159, allocations: 0 / 476.3 MB, free: 6.781 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.159, allocations: 3.984 kB / 476.3 MB, free: 6.777 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002842/0.1593, allocations: 204.6 kB / 476.5 MB, free: 6.559 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.142e-05/0.1594, allocations: 4 kB / 476.5 MB, free: 6.555 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004522/0.1598, allocations: 63.91 kB / 476.5 MB, free: 6.492 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000296/0.1601, allocations: 127.8 kB / 476.7 MB, free: 6.367 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001724/0.1618, allocations: 0.6212 MB / 477.3 MB, free: 5.738 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002287/0.1641, allocations: 1.046 MB / 478.3 MB, free: 4.676 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006565/0.1648, allocations: 284 kB / 478.6 MB, free: 4.398 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005377/0.1654, allocations: 430.8 kB / 479 MB, free: 3.98 MB / 350.1 MB Notification: Performance of Backend: time 8.51e-07/0.1654, allocations: 0 / 479 MB, free: 3.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001422/0.1668, allocations: 453.9 kB / 479.5 MB, free: 3.531 MB / 350.1 MB Notification: Performance of SimCode: time 0.002212/0.169, allocations: 1.567 MB / 481 MB, free: 1.914 MB / 350.1 MB Notification: Performance of Templates: time 0.0173/0.1863, allocations: 9.027 MB / 490.1 MB, free: 8.918 MB / 366.1 MB make -j1 -f BLDC_BLDC.Examples.DemoElectronicCommutator.makefile (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)