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.001117/0.001117, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001059/0.00106, allocations: 192.9 kB / 16.14 MB, free: 6.652 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.296/1.296, allocations: 222.9 MB / 239.8 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.1436/0.1436, allocations: 2.591 MB / 292.5 MB, free: 3.402 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001508/0.001508, allocations: 83.88 kB / 353.4 MB, free: 5.391 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1086, allocations: 50.03 MB / 403.4 MB, free: 3.312 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.005166/0.1138, allocations: 3.028 MB / 406.4 MB, free: 272 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002688/0.1165, allocations: 1.309 MB / 407.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005179/0.1171, allocations: 15.94 kB / 407.7 MB, free: 14.94 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004911/0.1176, allocations: 71.5 kB / 407.8 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001539/0.1192, allocations: 398.5 kB / 408.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004352/0.1196, allocations: 155.8 kB / 408.4 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00151/0.1211, allocations: 0.8383 MB / 409.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005786/0.1217, allocations: 337.3 kB / 409.5 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004953/0.1222, allocations: 286.9 kB / 409.8 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000546/0.1228, allocations: 338.5 kB / 410.1 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001262/0.1229, allocations: 32 kB / 410.2 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003531/0.1233, allocations: 111.9 kB / 410.3 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002118/0.1235, allocations: 195.4 kB / 410.5 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003434/0.1239, allocations: 314 kB / 410.8 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009098/0.1248, allocations: 0.7828 MB / 411.5 MB, free: 11.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.1248, allocations: 0 / 411.5 MB, free: 11.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1248, allocations: 0 / 411.5 MB, free: 11.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.456e-05/0.1249, allocations: 4 kB / 411.6 MB, free: 11.11 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.003032/0.1279, allocations: 1.177 MB / 412.7 MB, free: 9.879 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.1279, allocations: 16.03 kB / 412.7 MB, free: 9.863 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002621/0.1282, allocations: 83.98 kB / 412.8 MB, free: 9.781 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008171/0.129, allocations: 0.5404 MB / 413.4 MB, free: 9.199 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.696e-05/0.1291, allocations: 37.69 kB / 413.4 MB, free: 9.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.064e-05/0.1292, allocations: 48.36 kB / 413.5 MB, free: 9.113 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001508/0.1307, allocations: 0.73 MB / 414.2 MB, free: 8.363 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.038e-05/0.1307, allocations: 4 kB / 414.2 MB, free: 8.359 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.842e-05/0.1308, allocations: 24 kB / 414.2 MB, free: 8.336 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.9e-05/0.1309, allocations: 41.28 kB / 414.3 MB, free: 8.297 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001628/0.1325, allocations: 0.6257 MB / 414.9 MB, free: 7.672 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004183/0.1367, allocations: 2.199 MB / 417.1 MB, free: 5.398 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001632/0.1383, allocations: 0.5611 MB / 417.6 MB, free: 4.828 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006212/0.139, allocations: 256.7 kB / 417.9 MB, free: 4.574 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002132/0.1392, allocations: 178.1 kB / 418.1 MB, free: 4.363 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.906e-05/0.1392, allocations: 38.61 kB / 418.1 MB, free: 4.316 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.364e-06/0.1393, allocations: 3.938 kB / 418.1 MB, free: 4.312 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.002092/0.1414, allocations: 0.7276 MB / 418.8 MB, free: 3.578 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.761e-05/0.1414, allocations: 59.41 kB / 418.9 MB, free: 3.508 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007273/0.1421, allocations: 0.6123 MB / 419.5 MB, free: 2.887 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.13e-05/0.1422, allocations: 33.7 kB / 419.5 MB, free: 2.848 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002261/0.1424, allocations: 331.8 kB / 419.9 MB, free: 2.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001195/0.1426, allocations: 122.1 kB / 420 MB, free: 2.398 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001703/0.1427, allocations: 114.2 kB / 420.1 MB, free: 2.281 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.1429, allocations: 374.8 kB / 420.5 MB, free: 1.906 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006054/0.1435, allocations: 225 kB / 420.7 MB, free: 1.684 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006585/0.1442, allocations: 339.1 kB / 421 MB, free: 1.309 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001155/0.1454, allocations: 0.4905 MB / 421.5 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.167e-06/0.1454, allocations: 8 kB / 421.5 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001556/0.1469, allocations: 0.6191 MB / 422.1 MB, free: 136 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.706e-05/0.147, allocations: 8 kB / 422.1 MB, free: 128 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.327e-05/0.147, allocations: 4.469 kB / 422.1 MB, free: 124 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.873e-05/0.147, allocations: 8 kB / 422.1 MB, free: 116 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000328/0.1474, allocations: 87.88 kB / 422.2 MB, free: 28 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.274e-05/0.1474, allocations: 7.938 kB / 422.2 MB, free: 20 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.199/0.3464, allocations: 80 kB / 422.3 MB, free: 50.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.336e-05/0.3465, allocations: 24.5 kB / 422.3 MB, free: 50.52 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.0005155/0.3471, allocations: 263.2 kB / 422.6 MB, free: 50.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002789/0.3474, allocations: 68.23 kB / 422.7 MB, free: 50.41 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001734/0.3491, allocations: 0.6163 MB / 423.3 MB, free: 50.37 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.256e-05/0.3491, allocations: 7.703 kB / 423.3 MB, free: 50.37 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.3491, allocations: 4.656 kB / 423.3 MB, free: 50.37 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.3491, allocations: 0 / 423.3 MB, free: 50.37 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002239/0.3514, allocations: 1.336 MB / 424.6 MB, free: 50.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/0.3514, allocations: 0 / 424.6 MB, free: 50.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002404/0.3517, allocations: 66.09 kB / 424.7 MB, free: 50.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.048e-06/0.3517, allocations: 0 / 424.7 MB, free: 50.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.771e-05/0.3517, allocations: 13.48 kB / 424.7 MB, free: 50.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.661e-06/0.3517, allocations: 6.125 kB / 424.7 MB, free: 50.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.3517, allocations: 1.969 kB / 424.7 MB, free: 50.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001926/0.3537, allocations: 0.9611 MB / 425.7 MB, free: 49.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002146/0.3539, allocations: 198.4 kB / 425.9 MB, free: 49.63 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.514e-05/0.354, allocations: 7.422 kB / 425.9 MB, free: 49.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004033/0.3544, allocations: 61.94 kB / 425.9 MB, free: 49.62 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002384/0.3546, allocations: 114.8 kB / 426 MB, free: 49.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.742e-05/0.3547, allocations: 20.33 kB / 426.1 MB, free: 49.61 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004245/0.3551, allocations: 431.4 kB / 426.5 MB, free: 49.42 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3551, allocations: 1.688 kB / 426.5 MB, free: 49.42 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000528/0.3556, allocations: 148.2 kB / 426.6 MB, free: 49.39 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.0002463/0.3559, allocations: 145.8 kB / 426.8 MB, free: 49.3 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001263/0.3572, allocations: 0.5305 MB / 427.3 MB, free: 49.15 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.888e-06/0.3572, allocations: 3.156 kB / 427.3 MB, free: 49.15 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000639/0.3578, allocations: 290.7 kB / 427.6 MB, free: 49.07 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005138/0.3584, allocations: 69.06 kB / 427.7 MB, free: 49.04 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002156/0.3605, allocations: 1.492 MB / 429.2 MB, free: 48.21 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003395/0.3609, allocations: 0.943 MB / 430.1 MB, free: 47.49 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004557/0.3613, allocations: 197.6 kB / 430.3 MB, free: 47.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001425/0.3615, allocations: 62 kB / 430.3 MB, free: 47.47 MB / 350.1 MB Notification: Performance of SimCode: time 9.62e-07/0.3615, allocations: 0 / 430.3 MB, free: 47.47 MB / 350.1 MB Notification: Performance of Templates: time 0.009778/0.3713, allocations: 6.438 MB / 436.8 MB, free: 47.03 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)