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: "" <> buildModelFMU(BLDC.Examples.DemoElectronicCommutator,fileNamePrefix="BLDC_BLDC_Examples_DemoElectronicCommutator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BLDC.Examples.DemoElectronicCommutator,fileNamePrefix="BLDC_BLDC_Examples_DemoElectronicCommutator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005923/0.005923, allocations: 100.8 kB / 15.73 MB, free: 6.016 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.001363/0.001363, allocations: 193 kB / 16.67 MB, free: 5.934 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.427/1.427, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.0137/0.0137, allocations: 2.596 MB / 293.1 MB, free: 12.16 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002673/0.002673, allocations: 103.8 kB / 404.8 MB, free: 30.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1031, allocations: 50.04 MB / 454.9 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.004851/0.108, allocations: 2.992 MB / 457.9 MB, free: 8.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002717/0.1108, allocations: 1.317 MB / 459.2 MB, free: 7.609 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000331/0.1111, allocations: 15.94 kB / 459.2 MB, free: 7.594 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004/0.1115, allocations: 99.11 kB / 459.3 MB, free: 7.496 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001309/0.1129, allocations: 441.8 kB / 459.7 MB, free: 7.062 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003846/0.1133, allocations: 163.8 kB / 459.9 MB, free: 6.902 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001175/0.1145, allocations: 0.7798 MB / 460.7 MB, free: 6.121 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005466/0.1151, allocations: 365.6 kB / 461 MB, free: 5.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004601/0.1155, allocations: 327 kB / 461.3 MB, free: 5.43 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004412/0.116, allocations: 338.6 kB / 461.7 MB, free: 5.098 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001102/0.1161, allocations: 60 kB / 461.7 MB, free: 5.039 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000339/0.1165, allocations: 143.9 kB / 461.9 MB, free: 4.898 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002623/0.1167, allocations: 231.2 kB / 462.1 MB, free: 4.672 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003709/0.1171, allocations: 342 kB / 462.4 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00113/0.1183, allocations: 0.8559 MB / 463.3 MB, free: 3.477 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.1183, allocations: 0 / 463.3 MB, free: 3.477 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.1183, allocations: 0 / 463.3 MB, free: 3.477 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.042e-05/0.1183, allocations: 0 / 463.3 MB, free: 3.477 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.002888/0.1212, allocations: 1.192 MB / 464.5 MB, free: 2.234 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.676e-05/0.1213, allocations: 12.03 kB / 464.5 MB, free: 2.223 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001288/0.1214, allocations: 98.69 kB / 464.6 MB, free: 2.117 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002247/0.1216, allocations: 88.38 kB / 464.7 MB, free: 2.031 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008559/0.1225, allocations: 0.5682 MB / 465.2 MB, free: 1.426 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.529e-05/0.1225, allocations: 41.62 kB / 465.3 MB, free: 1.383 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.193e-05/0.1226, allocations: 52.12 kB / 465.3 MB, free: 1.332 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001519/0.1242, allocations: 0.7262 MB / 466.1 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.175e-05/0.1242, allocations: 0 / 466.1 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.082e-05/0.1243, allocations: 24 kB / 466.1 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.069e-05/0.1243, allocations: 37.3 kB / 466.1 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001694/0.126, allocations: 0.6295 MB / 466.7 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004008/0.1301, allocations: 2.199 MB / 468.9 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001763/0.1318, allocations: 0.5572 MB / 469.5 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006909/0.1325, allocations: 260.7 kB / 469.8 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002222/0.1328, allocations: 182.1 kB / 469.9 MB, free: 12.58 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.929e-05/0.1328, allocations: 35.28 kB / 470 MB, free: 12.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.685e-06/0.1328, allocations: 0 / 470 MB, free: 12.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.00226/0.1351, allocations: 0.7273 MB / 470.7 MB, free: 11.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.269e-05/0.1352, allocations: 55.41 kB / 470.8 MB, free: 11.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008547/0.136, allocations: 0.6201 MB / 471.4 MB, free: 11.11 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.766e-05/0.1361, allocations: 33.7 kB / 471.4 MB, free: 11.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000286/0.1364, allocations: 332.5 kB / 471.7 MB, free: 10.74 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001296/0.1365, allocations: 142.8 kB / 471.9 MB, free: 10.6 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001914/0.1367, allocations: 114.2 kB / 472 MB, free: 10.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001985/0.1369, allocations: 370.8 kB / 472.3 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006665/0.1376, allocations: 225 kB / 472.6 MB, free: 9.887 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007484/0.1384, allocations: 347.1 kB / 472.9 MB, free: 9.504 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00128/0.1397, allocations: 486.6 kB / 473.4 MB, free: 8.977 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/0.1397, allocations: 8 kB / 473.4 MB, free: 8.969 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001707/0.1414, allocations: 0.6233 MB / 474 MB, free: 8.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.17e-05/0.1414, allocations: 8 kB / 474 MB, free: 8.332 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.228e-05/0.1414, allocations: 4.469 kB / 474 MB, free: 8.328 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.016e-05/0.1415, allocations: 4 kB / 474 MB, free: 8.324 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003339/0.1418, allocations: 95.81 kB / 474.1 MB, free: 8.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.226e-05/0.1418, allocations: 4 kB / 474.1 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004811/0.1423, allocations: 91.47 kB / 474.2 MB, free: 8.137 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.172e-05/0.1424, allocations: 23.98 kB / 474.2 MB, free: 8.113 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.0003887/0.1428, allocations: 264.5 kB / 474.5 MB, free: 7.848 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00016/0.1429, allocations: 71.56 kB / 474.6 MB, free: 7.777 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001728/0.1447, allocations: 0.6126 MB / 475.2 MB, free: 7.152 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.253e-05/0.1447, allocations: 4 kB / 475.2 MB, free: 7.148 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.306e-06/0.1447, allocations: 4 kB / 475.2 MB, free: 7.145 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.221e-05/0.1447, allocations: 3.984 kB / 475.2 MB, free: 7.141 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002674/0.1474, allocations: 1.338 MB / 476.5 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.1474, allocations: 0 / 476.5 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002638/0.1477, allocations: 59.91 kB / 476.6 MB, free: 5.688 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.638e-06/0.1477, allocations: 0 / 476.6 MB, free: 5.688 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.154e-05/0.1478, allocations: 15.98 kB / 476.6 MB, free: 5.672 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.895e-06/0.1478, allocations: 4 kB / 476.6 MB, free: 5.668 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.1478, allocations: 0 / 476.6 MB, free: 5.668 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002368/0.1502, allocations: 0.9666 MB / 477.6 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002759/0.1504, allocations: 196.5 kB / 477.8 MB, free: 4.477 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.262e-05/0.1505, allocations: 15.98 kB / 477.8 MB, free: 4.461 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004548/0.151, allocations: 51.92 kB / 477.8 MB, free: 4.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002759/0.1513, allocations: 123.8 kB / 477.9 MB, free: 4.289 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.55e-05/0.1513, allocations: 23.92 kB / 478 MB, free: 4.266 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005605/0.1519, allocations: 430.8 kB / 478.4 MB, free: 3.848 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1519, allocations: 4.062 kB / 478.4 MB, free: 3.844 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000564/0.1525, allocations: 147.7 kB / 478.5 MB, free: 3.699 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.002887/0.1554, allocations: 1.551 MB / 480.1 MB, free: 2.121 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001542/0.1569, allocations: 0.5381 MB / 480.6 MB, free: 1.582 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.1569, allocations: 0 / 480.6 MB, free: 1.582 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007455/0.1577, allocations: 291.8 kB / 480.9 MB, free: 1.297 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005153/0.1582, allocations: 62.3 kB / 481 MB, free: 1.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009789/0.168, allocations: 5.742 MB / 486.7 MB, free: 11.31 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006417/0.1687, allocations: 0.9458 MB / 487.7 MB, free: 10.34 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005014/0.1692, allocations: 188.5 kB / 487.8 MB, free: 10.15 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003742/0.1696, allocations: 255.3 kB / 488.1 MB, free: 9.902 MB / 366.1 MB Notification: Performance of SimCode: time 7.32e-07/0.1696, allocations: 0 / 488.1 MB, free: 9.902 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04137/0.211, allocations: 13.25 MB / 0.4896 GB, free: 12.74 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.242/9.453, allocations: 14.5 kB / 0.4896 GB, free: 12.73 MB / 382.1 MB (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 & python3 -m fmpy simulate --output-file BLDC_BLDC.Examples.DemoElectronicCommutator_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.00001e-05 BLDC_BLDC_Examples_DemoElectronicCommutator.fmu > BLDC_BLDC.Examples.DemoElectronicCommutator.pipe 2>&1)