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.001047/0.001048, allocations: 104.8 kB / 16.41 MB, free: 6.516 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.001107/0.001107, allocations: 189.7 kB / 17.34 MB, free: 5.742 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.279/1.279, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.01264/0.01264, allocations: 2.601 MB / 293.8 MB, free: 12.19 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001688/0.001688, allocations: 87.86 kB / 406 MB, free: 29.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0825/0.0842, allocations: 50.04 MB / 456 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.004059/0.0883, allocations: 2.996 MB / 459 MB, free: 8.457 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002186/0.09051, allocations: 1.325 MB / 460.4 MB, free: 7.129 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002255/0.09076, allocations: 15.94 kB / 460.4 MB, free: 7.113 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000316/0.09108, allocations: 91.17 kB / 460.5 MB, free: 7.023 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001049/0.09216, allocations: 426 kB / 460.9 MB, free: 6.605 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003121/0.09248, allocations: 187.7 kB / 461.1 MB, free: 6.422 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009752/0.09347, allocations: 0.7798 MB / 461.8 MB, free: 5.641 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004411/0.09392, allocations: 365.3 kB / 462.2 MB, free: 5.27 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003397/0.09427, allocations: 322.9 kB / 462.5 MB, free: 4.953 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003587/0.09464, allocations: 338.6 kB / 462.8 MB, free: 4.621 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.32e-05/0.09474, allocations: 64 kB / 462.9 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002664/0.09502, allocations: 143.9 kB / 463 MB, free: 4.418 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002148/0.09524, allocations: 231.3 kB / 463.3 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002894/0.09554, allocations: 342 kB / 463.6 MB, free: 3.855 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008375/0.09638, allocations: 0.8409 MB / 464.4 MB, free: 3.012 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.0964, allocations: 0 / 464.4 MB, free: 3.012 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.09641, allocations: 0 / 464.4 MB, free: 3.012 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.164e-05/0.09642, allocations: 0 / 464.4 MB, free: 3.012 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.002516/0.09895, allocations: 1.177 MB / 465.6 MB, free: 1.785 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.09899, allocations: 8.031 kB / 465.6 MB, free: 1.777 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000212/0.09921, allocations: 95.98 kB / 465.7 MB, free: 1.684 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008202/0.1, allocations: 0.5637 MB / 466.3 MB, free: 1.082 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.186e-05/0.1001, allocations: 33.69 kB / 466.3 MB, free: 1.047 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.271e-05/0.1002, allocations: 48.38 kB / 466.4 MB, free: 1 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001305/0.1015, allocations: 0.7261 MB / 467.1 MB, free: 260 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.878e-05/0.1015, allocations: 3.938 kB / 467.1 MB, free: 256 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.667e-05/0.1016, allocations: 23.98 kB / 467.1 MB, free: 232 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.987e-05/0.1016, allocations: 41.3 kB / 467.2 MB, free: 192 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001496/0.1031, allocations: 0.6296 MB / 467.8 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003546/0.1067, allocations: 2.187 MB / 470 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001556/0.1083, allocations: 0.5605 MB / 470.5 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006011/0.1089, allocations: 260.7 kB / 470.8 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001669/0.1091, allocations: 182.1 kB / 471 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.535e-05/0.1091, allocations: 39.28 kB / 471 MB, free: 12.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.705e-06/0.1091, allocations: 0 / 471 MB, free: 12.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.002045/0.1112, allocations: 0.7269 MB / 471.7 MB, free: 11.46 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.882e-05/0.1112, allocations: 55.41 kB / 471.8 MB, free: 11.4 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007277/0.112, allocations: 0.6083 MB / 472.4 MB, free: 10.78 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.333e-05/0.112, allocations: 37.7 kB / 472.4 MB, free: 10.74 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002291/0.1122, allocations: 323.8 kB / 472.7 MB, free: 10.42 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001204/0.1124, allocations: 134.1 kB / 472.9 MB, free: 10.29 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001705/0.1126, allocations: 110.2 kB / 473 MB, free: 10.17 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001708/0.1127, allocations: 378.9 kB / 473.4 MB, free: 9.793 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000589/0.1133, allocations: 216.9 kB / 473.6 MB, free: 9.578 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006611/0.114, allocations: 355.1 kB / 473.9 MB, free: 9.188 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001141/0.1152, allocations: 494.6 kB / 474.4 MB, free: 8.652 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.1152, allocations: 0 / 474.4 MB, free: 8.652 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001512/0.1167, allocations: 0.6195 MB / 475 MB, free: 8.027 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.947e-05/0.1167, allocations: 4 kB / 475 MB, free: 8.023 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.351e-05/0.1167, allocations: 7.984 kB / 475 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.212e-05/0.1168, allocations: 8 kB / 475 MB, free: 8.008 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003152/0.1171, allocations: 87.83 kB / 475.1 MB, free: 7.922 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.481e-05/0.1171, allocations: 8 kB / 475.1 MB, free: 7.914 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000435/0.1175, allocations: 79.33 kB / 475.2 MB, free: 7.836 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.78e-05/0.1176, allocations: 28.14 kB / 475.2 MB, free: 7.809 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.0003304/0.1179, allocations: 263.9 kB / 475.5 MB, free: 7.543 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001509/0.1181, allocations: 71.17 kB / 475.6 MB, free: 7.473 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001538/0.1196, allocations: 0.6203 MB / 476.2 MB, free: 6.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.073e-05/0.1197, allocations: 7.984 kB / 476.2 MB, free: 6.832 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.1197, allocations: 3.984 kB / 476.2 MB, free: 6.828 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.974e-06/0.1197, allocations: 0 / 476.2 MB, free: 6.828 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002452/0.1221, allocations: 1.342 MB / 477.5 MB, free: 5.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.506e-06/0.1222, allocations: 0 / 477.5 MB, free: 5.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002595/0.1224, allocations: 63.83 kB / 477.6 MB, free: 5.367 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.322e-06/0.1224, allocations: 4 kB / 477.6 MB, free: 5.363 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.93e-05/0.1225, allocations: 15.98 kB / 477.6 MB, free: 5.348 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.1225, allocations: 4 kB / 477.6 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.1225, allocations: 0 / 477.6 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002048/0.1246, allocations: 0.9468 MB / 478.6 MB, free: 4.383 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000289/0.1249, allocations: 196.2 kB / 478.8 MB, free: 4.172 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.867e-05/0.1249, allocations: 8 kB / 478.8 MB, free: 4.164 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004178/0.1254, allocations: 59.92 kB / 478.8 MB, free: 4.105 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002639/0.1256, allocations: 119.9 kB / 478.9 MB, free: 3.988 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.967e-05/0.1257, allocations: 15.98 kB / 479 MB, free: 3.973 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005132/0.1262, allocations: 434.8 kB / 479.4 MB, free: 3.551 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.483e-06/0.1262, allocations: 0 / 479.4 MB, free: 3.551 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000558/0.1268, allocations: 159.5 kB / 479.5 MB, free: 3.395 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.0002497/0.127, allocations: 149.4 kB / 479.7 MB, free: 3.238 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001342/0.1284, allocations: 0.5348 MB / 480.2 MB, free: 2.703 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.1284, allocations: 0 / 480.2 MB, free: 2.703 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006571/0.1291, allocations: 291.4 kB / 480.5 MB, free: 2.418 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004887/0.1296, allocations: 70.22 kB / 480.6 MB, free: 2.344 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00217/0.1317, allocations: 1.29 MB / 481.9 MB, free: 1.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005278/0.1323, allocations: 0.9419 MB / 482.8 MB, free: 52 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000214/0.1325, allocations: 71.45 kB / 482.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1325, allocations: 0 / 482.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of Templates: time 0.01254/0.1451, allocations: 9.123 MB / 492 MB, free: 6.875 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)