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.001201/0.001201, allocations: 115.2 kB / 16.42 MB, free: 6.449 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.001274/0.001274, allocations: 183.9 kB / 17.35 MB, free: 5.738 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.246/1.246, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.01227/0.01227, allocations: 2.591 MB / 293.8 MB, free: 12.18 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001617/0.001617, allocations: 92.28 kB / 406 MB, free: 29.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06941/0.07103, allocations: 50.03 MB / 456 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.003725/0.07478, allocations: 3.004 MB / 459 MB, free: 8.438 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001849/0.07664, allocations: 1.325 MB / 460.4 MB, free: 7.109 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001712/0.07683, allocations: 15.94 kB / 460.4 MB, free: 7.094 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002903/0.07712, allocations: 91.17 kB / 460.5 MB, free: 7.004 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009783/0.07812, allocations: 430 kB / 460.9 MB, free: 6.582 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002723/0.07841, allocations: 187.7 kB / 461.1 MB, free: 6.398 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008558/0.07927, allocations: 0.772 MB / 461.8 MB, free: 5.625 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004137/0.07969, allocations: 365.3 kB / 462.2 MB, free: 5.254 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003007/0.08, allocations: 326.9 kB / 462.5 MB, free: 4.934 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003148/0.08033, allocations: 334.6 kB / 462.9 MB, free: 4.605 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.239e-05/0.08042, allocations: 64 kB / 462.9 MB, free: 4.543 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002193/0.08065, allocations: 143.9 kB / 463.1 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001888/0.08084, allocations: 231.3 kB / 463.3 MB, free: 4.176 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002509/0.0811, allocations: 346 kB / 463.6 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007083/0.08182, allocations: 0.837 MB / 464.5 MB, free: 2.996 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.08183, allocations: 0 / 464.5 MB, free: 2.996 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.41e-07/0.08183, allocations: 0 / 464.5 MB, free: 2.996 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.915e-06/0.08185, allocations: 4 kB / 464.5 MB, free: 2.992 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.002325/0.08418, allocations: 1.173 MB / 465.6 MB, free: 1.77 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.02e-05/0.08422, allocations: 12.03 kB / 465.6 MB, free: 1.758 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001903/0.08441, allocations: 83.98 kB / 465.7 MB, free: 1.676 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006756/0.0851, allocations: 0.5715 MB / 466.3 MB, free: 1.066 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.888e-05/0.08514, allocations: 37.69 kB / 466.3 MB, free: 1.027 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.365e-05/0.08523, allocations: 48.38 kB / 466.4 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001308/0.08654, allocations: 0.73 MB / 467.1 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.682e-05/0.08657, allocations: 3.938 kB / 467.1 MB, free: 232 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.825e-05/0.08663, allocations: 23.94 kB / 467.1 MB, free: 208 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.588e-05/0.08668, allocations: 41.3 kB / 467.2 MB, free: 168 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001515/0.08821, allocations: 0.6218 MB / 467.8 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003252/0.09147, allocations: 2.195 MB / 470 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001613/0.09309, allocations: 0.5572 MB / 470.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006402/0.09375, allocations: 256.7 kB / 470.8 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000142/0.0939, allocations: 190.1 kB / 471 MB, free: 12.22 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.184e-05/0.09393, allocations: 39.28 kB / 471 MB, free: 12.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.843e-06/0.09394, allocations: 0 / 471 MB, free: 12.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.001976/0.09592, allocations: 0.7152 MB / 471.7 MB, free: 11.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.898e-05/0.09596, allocations: 59.34 kB / 471.8 MB, free: 11.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006171/0.09658, allocations: 0.6122 MB / 472.4 MB, free: 10.76 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.781e-05/0.09663, allocations: 33.7 kB / 472.4 MB, free: 10.72 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002044/0.09684, allocations: 331.8 kB / 472.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.981e-05/0.09694, allocations: 134.1 kB / 472.9 MB, free: 10.26 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00015/0.0971, allocations: 106.3 kB / 473 MB, free: 10.15 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.09724, allocations: 374.7 kB / 473.4 MB, free: 9.777 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000611/0.09786, allocations: 225 kB / 473.6 MB, free: 9.555 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006656/0.09853, allocations: 343.2 kB / 473.9 MB, free: 9.176 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001176/0.09972, allocations: 498.5 kB / 474.4 MB, free: 8.637 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.09973, allocations: 0 / 474.4 MB, free: 8.637 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001492/0.1012, allocations: 0.6154 MB / 475 MB, free: 8.016 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.1013, allocations: 8 kB / 475 MB, free: 8.008 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.814e-06/0.1013, allocations: 4 kB / 475 MB, free: 8.004 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/0.1013, allocations: 8 kB / 475 MB, free: 7.996 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003005/0.1016, allocations: 87.83 kB / 475.1 MB, free: 7.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.145e-05/0.1016, allocations: 11.98 kB / 475.1 MB, free: 7.898 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004286/0.102, allocations: 75.61 kB / 475.2 MB, free: 7.824 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.444e-05/0.1021, allocations: 31.98 kB / 475.2 MB, free: 7.793 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.000282/0.1024, allocations: 259.9 kB / 475.5 MB, free: 7.531 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001433/0.1025, allocations: 75.17 kB / 475.6 MB, free: 7.457 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00156/0.1041, allocations: 0.6203 MB / 476.2 MB, free: 6.824 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.1041, allocations: 3.984 kB / 476.2 MB, free: 6.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.1041, allocations: 0 / 476.2 MB, free: 6.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002087/0.1043, allocations: 196.2 kB / 476.4 MB, free: 6.609 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.794e-05/0.1044, allocations: 12 kB / 476.4 MB, free: 6.598 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004573/0.1049, allocations: 59.91 kB / 476.5 MB, free: 6.539 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002646/0.1052, allocations: 127.7 kB / 476.6 MB, free: 6.414 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001665/0.1068, allocations: 0.6329 MB / 477.2 MB, free: 5.773 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002158/0.109, allocations: 1.034 MB / 478.3 MB, free: 4.723 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006614/0.1097, allocations: 284.1 kB / 478.5 MB, free: 4.445 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004463/0.1101, allocations: 434.8 kB / 479 MB, free: 4.023 MB / 350.1 MB Notification: Performance of Backend: time 3.1e-07/0.1101, allocations: 64 / 479 MB, free: 4.023 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001223/0.1114, allocations: 445.9 kB / 479.4 MB, free: 3.582 MB / 350.1 MB Notification: Performance of SimCode: time 0.001706/0.1131, allocations: 1.544 MB / 480.9 MB, free: 1.992 MB / 350.1 MB Notification: Performance of Templates: time 0.01407/0.1272, allocations: 9.041 MB / 490 MB, free: 8.984 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)