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.009681/0.00968, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001421/0.001421, allocations: 192.2 kB / 16.67 MB, free: 5.523 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.405/1.405, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.01323/0.01323, allocations: 2.594 MB / 293.1 MB, free: 12.17 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001735/0.001735, allocations: 91.86 kB / 405.3 MB, free: 29.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09648/0.09823, allocations: 50.03 MB / 455.4 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.005035/0.1033, allocations: 3.004 MB / 458.4 MB, free: 8.445 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002917/0.1063, allocations: 1.317 MB / 459.7 MB, free: 7.125 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005264/0.1068, allocations: 15.94 kB / 459.7 MB, free: 7.109 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004594/0.1073, allocations: 95.17 kB / 459.8 MB, free: 7.016 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001495/0.1088, allocations: 433.9 kB / 460.2 MB, free: 6.59 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004816/0.1093, allocations: 183.7 kB / 460.4 MB, free: 6.41 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001301/0.1106, allocations: 0.7759 MB / 461.2 MB, free: 5.633 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005863/0.1112, allocations: 365.3 kB / 461.5 MB, free: 5.262 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005063/0.1118, allocations: 322.9 kB / 461.8 MB, free: 4.945 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004991/0.1123, allocations: 334.6 kB / 462.2 MB, free: 4.617 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001386/0.1124, allocations: 60 kB / 462.2 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003755/0.1128, allocations: 151.9 kB / 462.4 MB, free: 4.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002566/0.1131, allocations: 227.3 kB / 462.6 MB, free: 4.188 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004467/0.1135, allocations: 346 kB / 462.9 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001157/0.1147, allocations: 0.8409 MB / 463.8 MB, free: 3.004 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.1147, allocations: 3.938 kB / 463.8 MB, free: 3 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1147, allocations: 0 / 463.8 MB, free: 3 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.277e-05/0.1148, allocations: 0 / 463.8 MB, free: 3 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.003329/0.1181, allocations: 1.177 MB / 465 MB, free: 1.773 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.799e-05/0.1182, allocations: 15.89 kB / 465 MB, free: 1.758 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003057/0.1185, allocations: 80 kB / 465 MB, free: 1.68 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001018/0.1195, allocations: 0.5715 MB / 465.6 MB, free: 1.07 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.962e-05/0.1195, allocations: 37.69 kB / 465.7 MB, free: 1.031 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.608e-05/0.1197, allocations: 52.38 kB / 465.7 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001502/0.1212, allocations: 0.7222 MB / 466.4 MB, free: 244 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.244e-05/0.1212, allocations: 0 / 466.4 MB, free: 244 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.057e-05/0.1213, allocations: 24 kB / 466.4 MB, free: 220 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.024e-05/0.1213, allocations: 37.3 kB / 466.5 MB, free: 184 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001648/0.123, allocations: 0.6257 MB / 467.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004147/0.1271, allocations: 2.195 MB / 469.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001638/0.1288, allocations: 0.5496 MB / 469.9 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006428/0.1295, allocations: 268.6 kB / 470.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002067/0.1297, allocations: 178.1 kB / 470.3 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.707e-05/0.1297, allocations: 43.28 kB / 470.3 MB, free: 12.19 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.364e-06/0.1297, allocations: 0 / 470.3 MB, free: 12.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.002165/0.1319, allocations: 0.7152 MB / 471 MB, free: 11.47 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.724e-05/0.132, allocations: 55.41 kB / 471.1 MB, free: 11.4 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008119/0.1328, allocations: 0.6122 MB / 471.7 MB, free: 10.78 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.595e-05/0.1329, allocations: 33.7 kB / 471.7 MB, free: 10.74 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000281/0.1332, allocations: 331.8 kB / 472.1 MB, free: 10.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001439/0.1333, allocations: 134.1 kB / 472.2 MB, free: 10.28 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002253/0.1335, allocations: 118.3 kB / 472.3 MB, free: 10.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001902/0.1337, allocations: 378.7 kB / 472.7 MB, free: 9.781 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006183/0.1344, allocations: 221 kB / 472.9 MB, free: 9.562 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006907/0.1351, allocations: 343.1 kB / 473.2 MB, free: 9.184 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001173/0.1363, allocations: 494.6 kB / 473.7 MB, free: 8.648 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.61e-06/0.1363, allocations: 0 / 473.7 MB, free: 8.648 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001558/0.1378, allocations: 0.6196 MB / 474.3 MB, free: 8.023 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.998e-05/0.1379, allocations: 12.03 kB / 474.4 MB, free: 8.012 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.358e-05/0.1379, allocations: 4 kB / 474.4 MB, free: 8.008 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.219e-05/0.1379, allocations: 4 kB / 474.4 MB, free: 8.004 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003274/0.1383, allocations: 91.81 kB / 474.5 MB, free: 7.914 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.559e-05/0.1383, allocations: 7.938 kB / 474.5 MB, free: 7.906 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004955/0.1388, allocations: 83.33 kB / 474.5 MB, free: 7.824 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.253e-05/0.1389, allocations: 27.98 kB / 474.6 MB, free: 7.797 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.0003534/0.1392, allocations: 267.9 kB / 474.8 MB, free: 7.527 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001758/0.1394, allocations: 63.19 kB / 474.9 MB, free: 7.465 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001598/0.141, allocations: 0.6203 MB / 475.5 MB, free: 6.832 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.095e-05/0.141, allocations: 4 kB / 475.5 MB, free: 6.828 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.141, allocations: 4 kB / 475.5 MB, free: 6.824 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/0.141, allocations: 3.984 kB / 475.5 MB, free: 6.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002663/0.1437, allocations: 1.338 MB / 476.9 MB, free: 5.426 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.1437, allocations: 0 / 476.9 MB, free: 5.426 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002687/0.144, allocations: 59.91 kB / 476.9 MB, free: 5.367 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.821e-06/0.144, allocations: 0 / 476.9 MB, free: 5.367 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.429e-05/0.1441, allocations: 15.98 kB / 476.9 MB, free: 5.352 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.599e-06/0.1441, allocations: 4 kB / 476.9 MB, free: 5.348 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.1441, allocations: 0 / 476.9 MB, free: 5.348 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002167/0.1463, allocations: 0.9584 MB / 477.9 MB, free: 4.375 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003314/0.1466, allocations: 192.3 kB / 478.1 MB, free: 4.168 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.979e-05/0.1467, allocations: 7.984 kB / 478.1 MB, free: 4.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000483/0.1472, allocations: 59.92 kB / 478.2 MB, free: 4.102 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002804/0.1475, allocations: 115.8 kB / 478.3 MB, free: 3.988 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.708e-05/0.1475, allocations: 19.98 kB / 478.3 MB, free: 3.969 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000544/0.1481, allocations: 434.8 kB / 478.7 MB, free: 3.547 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1481, allocations: 3.938 kB / 478.7 MB, free: 3.543 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006367/0.1487, allocations: 155.5 kB / 478.9 MB, free: 3.391 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.0002831/0.149, allocations: 145.4 kB / 479 MB, free: 3.238 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001529/0.1506, allocations: 0.5427 MB / 479.5 MB, free: 2.695 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.1506, allocations: 0 / 479.5 MB, free: 2.695 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007058/0.1513, allocations: 295.4 kB / 479.8 MB, free: 2.406 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005406/0.1519, allocations: 70.89 kB / 479.9 MB, free: 2.336 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002476/0.1543, allocations: 1.238 MB / 481.1 MB, free: 1.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006388/0.155, allocations: 0.9419 MB / 482.1 MB, free: 104 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005136/0.1555, allocations: 192.5 kB / 482.3 MB, free: 15.91 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001741/0.1557, allocations: 59.42 kB / 482.3 MB, free: 15.86 MB / 366.1 MB Notification: Performance of SimCode: time 6.92e-07/0.1557, allocations: 0 / 482.3 MB, free: 15.86 MB / 366.1 MB Notification: Performance of Templates: time 0.01551/0.1712, allocations: 7.232 MB / 489.6 MB, free: 8.645 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)