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.001127/0.001127, allocations: 109.3 kB / 15.7 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00132/0.00132, allocations: 196.5 kB / 16.63 MB, free: 6.609 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.356/1.356, allocations: 222.9 MB / 240.3 MB, free: 4.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.1257/0.1257, allocations: 2.585 MB / 293.1 MB, free: 3.441 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001765/0.001765, allocations: 95.84 kB / 405.3 MB, free: 1.641 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3065/0.3082, allocations: 50.02 MB / 455.3 MB, free: 21.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.003647/0.3119, allocations: 3 MB / 458.3 MB, free: 19.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001968/0.3139, allocations: 1.315 MB / 459.6 MB, free: 18.37 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002295/0.3142, allocations: 13.41 kB / 459.6 MB, free: 18.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000337/0.3145, allocations: 96.03 kB / 459.7 MB, free: 18.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001019/0.3156, allocations: 448.2 kB / 460.1 MB, free: 18.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000284/0.3159, allocations: 182.3 kB / 460.3 MB, free: 17.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008257/0.3167, allocations: 0.7707 MB / 461.1 MB, free: 17.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004145/0.3171, allocations: 365.9 kB / 461.4 MB, free: 17.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002611/0.3174, allocations: 313.6 kB / 461.8 MB, free: 17.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002867/0.3177, allocations: 334.3 kB / 462.1 MB, free: 17.1 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.236e-05/0.3178, allocations: 63.91 kB / 462.1 MB, free: 17.1 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002459/0.318, allocations: 143.6 kB / 462.3 MB, free: 17.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002087/0.3182, allocations: 236.2 kB / 462.5 MB, free: 16.96 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002298/0.3185, allocations: 342.7 kB / 462.8 MB, free: 16.72 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008596/0.3194, allocations: 0.85 MB / 463.7 MB, free: 16.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.3194, allocations: 0 / 463.7 MB, free: 16.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.447e-06/0.3194, allocations: 0.6562 kB / 463.7 MB, free: 16.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.929e-06/0.3194, allocations: 0 / 463.7 MB, free: 16.34 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.002612/0.322, allocations: 1.173 MB / 464.9 MB, free: 15.6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.527e-05/0.3221, allocations: 9.156 kB / 464.9 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002038/0.3223, allocations: 87.02 kB / 465 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007397/0.323, allocations: 0.5653 MB / 465.5 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.418e-05/0.3231, allocations: 37.41 kB / 465.6 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.052e-05/0.3232, allocations: 48.75 kB / 465.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001393/0.3246, allocations: 0.7317 MB / 466.3 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.005e-05/0.3246, allocations: 0 / 466.3 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.754e-05/0.3246, allocations: 22.11 kB / 466.4 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.794e-05/0.3247, allocations: 43.47 kB / 466.4 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001624/0.3263, allocations: 0.6249 MB / 467 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003627/0.33, allocations: 2.187 MB / 469.2 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001671/0.3317, allocations: 0.5564 MB / 469.8 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006562/0.3323, allocations: 258.4 kB / 470 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001422/0.3325, allocations: 178 kB / 470.2 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.074e-05/0.3325, allocations: 39.02 kB / 470.2 MB, free: 12.94 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.665e-06/0.3325, allocations: 4.109 kB / 470.2 MB, free: 12.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.002172/0.3347, allocations: 0.7254 MB / 471 MB, free: 12.67 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.379e-05/0.3348, allocations: 55.41 kB / 471 MB, free: 12.61 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009427/0.3357, allocations: 0.6096 MB / 471.6 MB, free: 12.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.479e-05/0.3358, allocations: 41.11 kB / 471.7 MB, free: 12.3 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002105/0.336, allocations: 331.6 kB / 472 MB, free: 12.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001113/0.3361, allocations: 131 kB / 472.1 MB, free: 11.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001899/0.3363, allocations: 111.7 kB / 472.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.3364, allocations: 379.1 kB / 472.6 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000682/0.3371, allocations: 218 kB / 472.8 MB, free: 11.47 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007592/0.3379, allocations: 343.8 kB / 473.2 MB, free: 11.26 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001246/0.3392, allocations: 495.9 kB / 473.6 MB, free: 10.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.452e-06/0.3392, allocations: 4.703 kB / 473.6 MB, free: 10.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001674/0.3409, allocations: 0.6218 MB / 474.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.3409, allocations: 10.52 kB / 474.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.105e-05/0.3409, allocations: 3.406 kB / 474.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.394e-05/0.3409, allocations: 10.66 kB / 474.3 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00034/0.3413, allocations: 86.75 kB / 474.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.601e-05/0.3413, allocations: 7.609 kB / 474.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004802/0.3418, allocations: 77.3 kB / 474.5 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.039e-05/0.3418, allocations: 23.75 kB / 474.5 MB, free: 10.67 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.0003817/0.3422, allocations: 271.3 kB / 474.7 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002409/0.3425, allocations: 67.62 kB / 474.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001705/0.3442, allocations: 0.6151 MB / 475.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.387e-05/0.3442, allocations: 5.375 kB / 475.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.3442, allocations: 0 / 475.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/0.3442, allocations: 6.484 kB / 475.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00264/0.3469, allocations: 1.337 MB / 476.8 MB, free: 9.547 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.3469, allocations: 0 / 476.8 MB, free: 9.547 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002612/0.3472, allocations: 59.19 kB / 476.8 MB, free: 9.539 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.3472, allocations: 2.188 kB / 476.8 MB, free: 9.539 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.123e-05/0.3472, allocations: 16.59 kB / 476.9 MB, free: 9.531 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.147e-06/0.3472, allocations: 2.188 kB / 476.9 MB, free: 9.531 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.3472, allocations: 3.938 kB / 476.9 MB, free: 9.527 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002266/0.3495, allocations: 0.9597 MB / 477.8 MB, free: 9.094 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000235/0.3498, allocations: 199.5 kB / 478 MB, free: 8.938 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.035e-05/0.3499, allocations: 6.906 kB / 478 MB, free: 8.934 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004501/0.3503, allocations: 57.97 kB / 478.1 MB, free: 8.926 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002895/0.3506, allocations: 118 kB / 478.2 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.181e-05/0.3507, allocations: 17.84 kB / 478.2 MB, free: 8.906 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006274/0.3513, allocations: 437.7 kB / 478.6 MB, free: 8.719 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3513, allocations: 1.188 kB / 478.6 MB, free: 8.719 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006327/0.3519, allocations: 147.9 kB / 478.8 MB, free: 8.684 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.0002539/0.3522, allocations: 144.2 kB / 478.9 MB, free: 8.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00161/0.3538, allocations: 0.5455 MB / 479.5 MB, free: 8.398 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.3538, allocations: 0 / 479.5 MB, free: 8.398 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007594/0.3546, allocations: 292.4 kB / 479.8 MB, free: 8.309 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005186/0.3551, allocations: 66.12 kB / 479.8 MB, free: 8.266 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002354/0.3575, allocations: 1.253 MB / 481.1 MB, free: 7.621 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005332/0.358, allocations: 0.9389 MB / 482 MB, free: 6.898 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004696/0.3585, allocations: 194.7 kB / 482.2 MB, free: 6.816 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000162/0.3587, allocations: 62.25 kB / 482.3 MB, free: 6.793 MB / 350.1 MB Notification: Performance of SimCode: time 7.62e-07/0.3587, allocations: 1.312 kB / 482.3 MB, free: 6.793 MB / 350.1 MB Notification: Performance of Templates: time 0.01378/0.3725, allocations: 7.126 MB / 489.4 MB, free: 3.141 MB / 350.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)