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.0009865/0.0009865, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.007997/0.007997, allocations: 169 kB / 16.26 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.497/1.497, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.2236/0.2236, allocations: 2.567 MB / 294 MB, free: 4.188 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004243/0.0004243, allocations: 12 kB / 355.9 MB, free: 4.457 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1327/0.1331, allocations: 51.02 MB / 406.9 MB, free: 1.391 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.003689/0.1369, allocations: 2.635 MB / 409.5 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002503/0.1394, allocations: 1.282 MB / 410.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000223/0.1397, allocations: 11.94 kB / 410.8 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003451/0.14, allocations: 79.42 kB / 410.9 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001178/0.1412, allocations: 398.4 kB / 411.3 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003299/0.1415, allocations: 151.9 kB / 411.4 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001168/0.1427, allocations: 0.8421 MB / 412.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005035/0.1432, allocations: 337.7 kB / 412.6 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002776/0.1435, allocations: 238.9 kB / 412.8 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003318/0.1439, allocations: 290.6 kB / 413.1 MB, free: 11.13 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.415e-05/0.1439, allocations: 16 kB / 413.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002364/0.1442, allocations: 103.9 kB / 413.2 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001521/0.1443, allocations: 163.3 kB / 413.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002503/0.1446, allocations: 295.8 kB / 413.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008021/0.1454, allocations: 0.7667 MB / 414.4 MB, free: 9.785 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.1454, allocations: 0 / 414.4 MB, free: 9.785 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1454, allocations: 0 / 414.4 MB, free: 9.785 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.035e-06/0.1454, allocations: 4 kB / 414.4 MB, free: 9.781 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.002663/0.1481, allocations: 1.044 MB / 415.5 MB, free: 8.688 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.567e-05/0.1482, allocations: 16.03 kB / 415.5 MB, free: 8.672 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001509/0.1483, allocations: 98.7 kB / 415.6 MB, free: 8.566 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002184/0.1485, allocations: 87.89 kB / 415.7 MB, free: 8.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007644/0.1493, allocations: 0.5443 MB / 416.2 MB, free: 7.895 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.594e-05/0.1494, allocations: 37.69 kB / 416.3 MB, free: 7.855 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.736e-05/0.1495, allocations: 52.12 kB / 416.3 MB, free: 7.805 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001443/0.1509, allocations: 0.7184 MB / 417 MB, free: 7.066 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.942e-05/0.1509, allocations: 8 kB / 417 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.721e-05/0.151, allocations: 20 kB / 417.1 MB, free: 7.039 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.873e-05/0.1511, allocations: 37.3 kB / 417.1 MB, free: 7.004 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001597/0.1527, allocations: 0.6257 MB / 417.7 MB, free: 6.379 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004075/0.1568, allocations: 2.242 MB / 420 MB, free: 4.062 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00166/0.1584, allocations: 0.5534 MB / 420.5 MB, free: 3.496 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006522/0.1591, allocations: 260.6 kB / 420.8 MB, free: 3.238 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002077/0.1593, allocations: 182.1 kB / 421 MB, free: 3.023 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.95e-05/0.1594, allocations: 42.66 kB / 421 MB, free: 2.973 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 4.278e-06/0.1594, allocations: 11.88 kB / 421 MB, free: 2.961 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.002189/0.1616, allocations: 0.7159 MB / 421.7 MB, free: 2.238 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.132e-05/0.1616, allocations: 55.41 kB / 421.8 MB, free: 2.172 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008183/0.1625, allocations: 0.6122 MB / 422.4 MB, free: 1.551 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.69e-05/0.1625, allocations: 33.7 kB / 422.4 MB, free: 1.512 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002609/0.1628, allocations: 327.8 kB / 422.7 MB, free: 1.188 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001178/0.1629, allocations: 138.1 kB / 422.9 MB, free: 1.051 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.949e-05/0.163, allocations: 53.69 kB / 422.9 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001833/0.1632, allocations: 374.8 kB / 423.3 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005989/0.1638, allocations: 228.9 kB / 423.5 MB, free: 404 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007058/0.1645, allocations: 335.2 kB / 423.8 MB, free: 20 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1985/0.363, allocations: 496.2 kB / 424.3 MB, free: 47.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.151e-06/0.3631, allocations: 1.562 kB / 424.3 MB, free: 47.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001653/0.3648, allocations: 0.6204 MB / 425 MB, free: 47.19 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.3648, allocations: 6.469 kB / 425 MB, free: 47.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/0.3648, allocations: 3.281 kB / 425 MB, free: 47.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.045e-05/0.3648, allocations: 6.531 kB / 425 MB, free: 47.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002864/0.3651, allocations: 92.8 kB / 425.1 MB, free: 47.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.528e-05/0.3651, allocations: 10.11 kB / 425.1 MB, free: 47.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004651/0.3656, allocations: 85.2 kB / 425.2 MB, free: 47.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.593e-05/0.3657, allocations: 22.88 kB / 425.2 MB, free: 47.18 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.0003341/0.366, allocations: 272.5 kB / 425.4 MB, free: 47.06 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000132/0.3661, allocations: 69.05 kB / 425.5 MB, free: 47.06 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001515/0.3677, allocations: 0.6094 MB / 426.1 MB, free: 47.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.237e-06/0.3677, allocations: 9.969 kB / 426.1 MB, free: 47.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/0.3677, allocations: 0 / 426.1 MB, free: 47.02 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.156e-06/0.3677, allocations: 3.422 kB / 426.1 MB, free: 47.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002195/0.3699, allocations: 1.337 MB / 427.5 MB, free: 46.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.3699, allocations: 0 / 427.5 MB, free: 46.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002269/0.3702, allocations: 60.16 kB / 427.5 MB, free: 46.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.3702, allocations: 0 / 427.5 MB, free: 46.7 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.579e-05/0.3702, allocations: 16.31 kB / 427.5 MB, free: 46.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.187e-06/0.3702, allocations: 7.125 kB / 427.5 MB, free: 46.7 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.3702, allocations: 2.078 kB / 427.6 MB, free: 46.7 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002026/0.3723, allocations: 0.9541 MB / 428.5 MB, free: 46.53 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002072/0.3725, allocations: 198.9 kB / 428.7 MB, free: 46.41 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.2e-05/0.3726, allocations: 8.906 kB / 428.7 MB, free: 46.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000463/0.373, allocations: 75.45 kB / 428.8 MB, free: 46.4 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000237/0.3733, allocations: 119.3 kB / 428.9 MB, free: 46.4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.959e-05/0.3733, allocations: 17.94 kB / 428.9 MB, free: 46.4 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004081/0.3737, allocations: 436.4 kB / 429.3 MB, free: 46.32 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3737, allocations: 0 / 429.3 MB, free: 46.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004806/0.3742, allocations: 156.7 kB / 429.5 MB, free: 46.3 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.002193/0.3764, allocations: 1.536 MB / 431 MB, free: 45.59 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001452/0.3779, allocations: 0.5262 MB / 431.6 MB, free: 45.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3779, allocations: 5 kB / 431.6 MB, free: 45.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006934/0.3786, allocations: 292.7 kB / 431.8 MB, free: 45.56 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005095/0.3791, allocations: 67.2 kB / 431.9 MB, free: 45.55 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00787/0.387, allocations: 6.137 MB / 438.1 MB, free: 42.28 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003887/0.3874, allocations: 0.9468 MB / 439 MB, free: 41.55 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004573/0.3879, allocations: 193.8 kB / 439.2 MB, free: 41.53 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002901/0.3882, allocations: 241.9 kB / 439.4 MB, free: 41.35 MB / 350.1 MB Notification: Performance of SimCode: time 1.012e-06/0.3882, allocations: 0 / 439.4 MB, free: 41.35 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02394/0.4121, allocations: 12.06 MB / 451.5 MB, free: 40.49 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000224/0.4124, allocations: 173.3 kB / 451.7 MB, free: 40.24 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.273/2.685, allocations: 0 / 451.7 MB, free: 40.24 MB / 350.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BLDC_BLDC_Examples_DemoElectronicCommutator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BLDC_BLDC_Examples_DemoElectronicCommutator.fmu > BLDC_BLDC.Examples.DemoElectronicCommutator.pipe 2>&1)