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.007506/0.007506, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001727/0.001727, allocations: 201.2 kB / 16.68 MB, free: 5.969 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.385/1.385, allocations: 222.9 MB / 240.4 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.1295/0.1295, allocations: 2.578 MB / 293.1 MB, free: 3.359 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001744/0.001745, allocations: 91.86 kB / 405.3 MB, free: 1.613 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2393/0.2411, allocations: 50.02 MB / 455.3 MB, free: 21.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.003557/0.2447, allocations: 3.011 MB / 458.4 MB, free: 19.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00207/0.2468, allocations: 1.317 MB / 459.7 MB, free: 18.35 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003972/0.2472, allocations: 13.44 kB / 459.7 MB, free: 18.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003814/0.2476, allocations: 90.69 kB / 459.8 MB, free: 18.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00116/0.2488, allocations: 439.8 kB / 460.2 MB, free: 18.03 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003523/0.2492, allocations: 182.1 kB / 460.4 MB, free: 17.92 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008817/0.2501, allocations: 0.7756 MB / 461.2 MB, free: 17.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004249/0.2505, allocations: 364.5 kB / 461.5 MB, free: 17.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003045/0.2508, allocations: 316.5 kB / 461.8 MB, free: 17.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003335/0.2512, allocations: 339 kB / 462.2 MB, free: 17.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.755e-05/0.2513, allocations: 62.72 kB / 462.2 MB, free: 17.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002846/0.2515, allocations: 146.2 kB / 462.4 MB, free: 17.06 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002187/0.2518, allocations: 233.9 kB / 462.6 MB, free: 16.94 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002618/0.252, allocations: 340 kB / 462.9 MB, free: 16.71 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001006/0.2531, allocations: 0.8557 MB / 463.8 MB, free: 16.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.2531, allocations: 0 / 463.8 MB, free: 16.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.2531, allocations: 0 / 463.8 MB, free: 16.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.33e-05/0.2531, allocations: 0 / 463.8 MB, free: 16.32 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.002732/0.2558, allocations: 1.191 MB / 465 MB, free: 15.56 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.167e-05/0.2559, allocations: 9.969 kB / 465 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002888/0.2562, allocations: 100.6 kB / 465.1 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009608/0.2572, allocations: 0.5687 MB / 465.6 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.795e-05/0.2572, allocations: 32.78 kB / 465.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001219/0.2574, allocations: 49.84 kB / 465.7 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001761/0.2591, allocations: 0.7269 MB / 466.4 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.429e-05/0.2592, allocations: 1.156 kB / 466.4 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.129e-05/0.2592, allocations: 20.81 kB / 466.5 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.782e-05/0.2593, allocations: 43.81 kB / 466.5 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001747/0.2611, allocations: 0.6285 MB / 467.1 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003957/0.265, allocations: 2.192 MB / 469.3 MB, free: 13.4 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001718/0.2668, allocations: 0.5566 MB / 469.9 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006335/0.2674, allocations: 258.3 kB / 470.1 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001537/0.2676, allocations: 182.8 kB / 470.3 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.903e-05/0.2676, allocations: 41.16 kB / 470.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.865e-06/0.2676, allocations: 0 / 470.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.002154/0.2698, allocations: 0.7276 MB / 471.1 MB, free: 12.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.323e-05/0.2699, allocations: 59.59 kB / 471.1 MB, free: 12.54 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007928/0.2707, allocations: 0.6086 MB / 471.8 MB, free: 12.28 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.953e-05/0.2707, allocations: 36.17 kB / 471.8 MB, free: 12.24 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000206/0.2709, allocations: 336.9 kB / 472.1 MB, free: 11.97 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001063/0.271, allocations: 136.3 kB / 472.3 MB, free: 11.87 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000187/0.2712, allocations: 112.8 kB / 472.4 MB, free: 11.81 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.2713, allocations: 374 kB / 472.7 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006495/0.272, allocations: 218 kB / 472.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007152/0.2727, allocations: 351.7 kB / 473.3 MB, free: 11.19 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001222/0.274, allocations: 494.9 kB / 473.8 MB, free: 10.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.274, allocations: 2.125 kB / 473.8 MB, free: 10.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001814/0.2758, allocations: 0.6259 MB / 474.4 MB, free: 10.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.119e-05/0.2758, allocations: 6.812 kB / 474.4 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.534e-05/0.2759, allocations: 4.125 kB / 474.4 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.56e-05/0.2759, allocations: 6.516 kB / 474.4 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003625/0.2763, allocations: 87.02 kB / 474.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.552e-05/0.2763, allocations: 6.734 kB / 474.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005467/0.2768, allocations: 82.98 kB / 474.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.812e-05/0.2769, allocations: 28.05 kB / 474.6 MB, free: 10.6 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.0004132/0.2773, allocations: 266.8 kB / 474.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00022/0.2776, allocations: 71.53 kB / 474.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001801/0.2794, allocations: 0.6197 MB / 475.6 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.056e-05/0.2794, allocations: 4.938 kB / 475.6 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.062e-06/0.2794, allocations: 0 / 475.6 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.926e-06/0.2794, allocations: 3.797 kB / 475.6 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002577/0.282, allocations: 1.336 MB / 476.9 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.282, allocations: 0 / 476.9 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002579/0.2823, allocations: 59.38 kB / 477 MB, free: 9.465 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.922e-06/0.2823, allocations: 1.094 kB / 477 MB, free: 9.465 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.088e-05/0.2824, allocations: 19.2 kB / 477 MB, free: 9.457 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.16e-06/0.2824, allocations: 5.156 kB / 477 MB, free: 9.453 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.2824, allocations: 1.094 kB / 477 MB, free: 9.453 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002232/0.2846, allocations: 0.9586 MB / 477.9 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002882/0.2849, allocations: 207.9 kB / 478.2 MB, free: 8.855 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.839e-05/0.285, allocations: 7.562 kB / 478.2 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004633/0.2855, allocations: 56.89 kB / 478.2 MB, free: 8.844 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002805/0.2858, allocations: 120.5 kB / 478.3 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.594e-05/0.2858, allocations: 18.61 kB / 478.3 MB, free: 8.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005463/0.2864, allocations: 434.2 kB / 478.8 MB, free: 8.637 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2864, allocations: 0 / 478.8 MB, free: 8.637 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006103/0.287, allocations: 147.8 kB / 478.9 MB, free: 8.602 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.00024/0.2873, allocations: 153.6 kB / 479.1 MB, free: 8.48 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001454/0.2887, allocations: 0.5413 MB / 479.6 MB, free: 8.312 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.2887, allocations: 0 / 479.6 MB, free: 8.312 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007049/0.2894, allocations: 288.5 kB / 479.9 MB, free: 8.227 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005026/0.29, allocations: 70.2 kB / 480 MB, free: 8.18 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002055/0.292, allocations: 1.27 MB / 481.2 MB, free: 7.516 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004224/0.2925, allocations: 0.9447 MB / 482.2 MB, free: 6.789 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004718/0.2929, allocations: 188.6 kB / 482.4 MB, free: 6.727 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001561/0.2931, allocations: 63.16 kB / 482.4 MB, free: 6.703 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2931, allocations: 0 / 482.4 MB, free: 6.703 MB / 350.1 MB Notification: Performance of Templates: time 0.01217/0.3053, allocations: 7.225 MB / 489.6 MB, free: 2.938 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)