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.001178/0.001178, allocations: 91.77 kB / 15.36 MB, free: 0.7383 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.01168/0.01168, allocations: 171.4 kB / 16.26 MB, free: 6.613 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.539/1.539, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.2246/0.2246, allocations: 2.565 MB / 294 MB, free: 4.152 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0006024/0.0006024, allocations: 12 kB / 355.8 MB, free: 4.559 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1372/0.1378, allocations: 51.01 MB / 406.8 MB, free: 1.496 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.003508/0.1414, allocations: 2.65 MB / 409.4 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002511/0.1439, allocations: 1.282 MB / 410.7 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002274/0.1442, allocations: 11.94 kB / 410.7 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000332/0.1445, allocations: 67.5 kB / 410.8 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001145/0.1457, allocations: 398.4 kB / 411.2 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003489/0.146, allocations: 155.9 kB / 411.3 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001166/0.1472, allocations: 0.8382 MB / 412.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005189/0.1477, allocations: 333.4 kB / 412.5 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003109/0.1481, allocations: 239 kB / 412.7 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003448/0.1484, allocations: 286.5 kB / 413 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.899e-05/0.1485, allocations: 20 kB / 413 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002587/0.1487, allocations: 99.94 kB / 413.1 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001673/0.1489, allocations: 175.3 kB / 413.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002932/0.1492, allocations: 303.8 kB / 413.6 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008291/0.1501, allocations: 0.7553 MB / 414.3 MB, free: 9.887 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.1501, allocations: 0 / 414.3 MB, free: 9.887 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1501, allocations: 0 / 414.3 MB, free: 9.887 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.001e-05/0.1501, allocations: 0 / 414.3 MB, free: 9.887 MB / 350.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.002696/0.1528, allocations: 1.06 MB / 415.4 MB, free: 8.777 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.951e-05/0.1529, allocations: 8.031 kB / 415.4 MB, free: 8.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002382/0.1531, allocations: 87.91 kB / 415.5 MB, free: 8.684 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008334/0.154, allocations: 0.5443 MB / 416 MB, free: 8.098 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.999e-05/0.154, allocations: 37.69 kB / 416.1 MB, free: 8.059 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.678e-05/0.1541, allocations: 48.38 kB / 416.1 MB, free: 8.012 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00155/0.1557, allocations: 0.73 MB / 416.9 MB, free: 7.262 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.971e-05/0.1557, allocations: 0 / 416.9 MB, free: 7.262 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.604e-05/0.1558, allocations: 27.98 kB / 416.9 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.111e-05/0.1559, allocations: 37.3 kB / 416.9 MB, free: 7.199 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001642/0.1575, allocations: 0.6295 MB / 417.6 MB, free: 6.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004185/0.1617, allocations: 2.23 MB / 419.8 MB, free: 4.266 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001701/0.1634, allocations: 0.5533 MB / 420.3 MB, free: 3.699 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006751/0.1641, allocations: 260.7 kB / 420.6 MB, free: 3.441 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002307/0.1644, allocations: 182.1 kB / 420.8 MB, free: 3.227 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.475e-05/0.1644, allocations: 42.67 kB / 420.8 MB, free: 3.176 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.174e-06/0.1644, allocations: 3.938 kB / 420.8 MB, free: 3.172 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.002344/0.1668, allocations: 0.7198 MB / 421.5 MB, free: 2.445 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.687e-05/0.1669, allocations: 55.41 kB / 421.6 MB, free: 2.379 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008055/0.1677, allocations: 0.6084 MB / 422.2 MB, free: 1.762 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.365e-05/0.1677, allocations: 37.7 kB / 422.2 MB, free: 1.719 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000286/0.168, allocations: 327.8 kB / 422.6 MB, free: 1.395 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001397/0.1682, allocations: 138.1 kB / 422.7 MB, free: 1.258 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.903e-05/0.1683, allocations: 57.69 kB / 422.7 MB, free: 1.195 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001957/0.1685, allocations: 374.8 kB / 423.1 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006743/0.1692, allocations: 217 kB / 423.3 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007158/0.1699, allocations: 343.2 kB / 423.7 MB, free: 232 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2694/0.4393, allocations: 493.8 kB / 424.1 MB, free: 47.28 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.498e-06/0.4394, allocations: 0.5938 kB / 424.1 MB, free: 47.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.002092/0.4415, allocations: 0.6194 MB / 424.8 MB, free: 47.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.414e-05/0.4415, allocations: 6.969 kB / 424.8 MB, free: 47.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.29e-05/0.4415, allocations: 4.656 kB / 424.8 MB, free: 47.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.616e-05/0.4416, allocations: 7.047 kB / 424.8 MB, free: 47.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003945/0.442, allocations: 92.7 kB / 424.9 MB, free: 47.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.084e-05/0.442, allocations: 11.97 kB / 424.9 MB, free: 47.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005626/0.4426, allocations: 87.19 kB / 425 MB, free: 47.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.926e-05/0.4427, allocations: 26.59 kB / 425 MB, free: 47.22 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.0003729/0.4431, allocations: 263.7 kB / 425.2 MB, free: 47.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001411/0.4432, allocations: 69.06 kB / 425.3 MB, free: 47.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001541/0.4447, allocations: 0.6185 MB / 425.9 MB, free: 47.05 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.086e-05/0.4448, allocations: 7.219 kB / 425.9 MB, free: 47.05 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.4448, allocations: 0 / 425.9 MB, free: 47.05 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.213e-06/0.4448, allocations: 6.531 kB / 425.9 MB, free: 47.05 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002347/0.4471, allocations: 1.341 MB / 427.3 MB, free: 46.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.379e-06/0.4472, allocations: 0 / 427.3 MB, free: 46.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002396/0.4474, allocations: 58.73 kB / 427.3 MB, free: 46.74 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-06/0.4474, allocations: 0 / 427.3 MB, free: 46.74 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.237e-05/0.4475, allocations: 19.52 kB / 427.4 MB, free: 46.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.622e-06/0.4475, allocations: 6.938 kB / 427.4 MB, free: 46.73 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.4475, allocations: 3.109 kB / 427.4 MB, free: 46.73 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002129/0.4496, allocations: 0.946 MB / 428.3 MB, free: 46.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002246/0.4499, allocations: 198.1 kB / 428.5 MB, free: 46.45 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.407e-05/0.45, allocations: 13.11 kB / 428.5 MB, free: 46.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004586/0.4504, allocations: 69.67 kB / 428.6 MB, free: 46.45 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002603/0.4507, allocations: 117.5 kB / 428.7 MB, free: 46.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.967e-05/0.4507, allocations: 22.97 kB / 428.7 MB, free: 46.45 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004626/0.4512, allocations: 429.4 kB / 429.2 MB, free: 46.36 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.22e-07/0.4512, allocations: 3.156 kB / 429.2 MB, free: 46.36 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005919/0.4518, allocations: 153.9 kB / 429.3 MB, free: 46.34 MB / 350.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.0003214/0.4521, allocations: 144.8 kB / 429.4 MB, free: 46.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001311/0.4535, allocations: 0.5388 MB / 430 MB, free: 46.22 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.4535, allocations: 0 / 430 MB, free: 46.22 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006316/0.4541, allocations: 289.2 kB / 430.3 MB, free: 46.21 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005368/0.4547, allocations: 62.75 kB / 430.3 MB, free: 46.21 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002268/0.4569, allocations: 1.519 MB / 431.8 MB, free: 45.48 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005061/0.4575, allocations: 0.9421 MB / 432.8 MB, free: 44.78 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004653/0.4579, allocations: 192.6 kB / 433 MB, free: 44.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001454/0.4581, allocations: 54.83 kB / 433 MB, free: 44.75 MB / 350.1 MB Notification: Performance of SimCode: time 8.52e-07/0.4581, allocations: 0 / 433 MB, free: 44.75 MB / 350.1 MB Notification: Performance of Templates: time 0.01057/0.4687, allocations: 6.364 MB / 439.4 MB, free: 44.31 MB / 350.1 MB make -j1 -f BLDC_BLDC.Examples.DemoElectronicCommutator.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: