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.009687/0.009687, allocations: 102.7 kB / 15.73 MB, free: 6.031 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.00203/0.00203, allocations: 190.1 kB / 16.67 MB, free: 5.953 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.396/1.396, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.01268/0.01268, allocations: 2.587 MB / 293.1 MB, free: 12.13 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001693/0.001693, allocations: 91.86 kB / 404.8 MB, free: 30 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09359/0.0953, allocations: 50.04 MB / 454.9 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.004102/0.09944, allocations: 3 MB / 457.9 MB, free: 8.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002357/0.1018, allocations: 1.328 MB / 459.2 MB, free: 7.578 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003155/0.1022, allocations: 15.94 kB / 459.2 MB, free: 7.562 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003712/0.1026, allocations: 91.17 kB / 459.3 MB, free: 7.473 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001218/0.1039, allocations: 430 kB / 459.7 MB, free: 7.051 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003817/0.1043, allocations: 179.7 kB / 459.9 MB, free: 6.875 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001097/0.1054, allocations: 0.7759 MB / 460.7 MB, free: 6.098 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00053/0.1059, allocations: 360.2 kB / 461 MB, free: 5.734 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003622/0.1063, allocations: 326.9 kB / 461.3 MB, free: 5.414 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003649/0.1067, allocations: 334.6 kB / 461.7 MB, free: 5.086 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.717e-05/0.1067, allocations: 64 kB / 461.7 MB, free: 5.023 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002602/0.107, allocations: 147.9 kB / 461.9 MB, free: 4.879 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001969/0.1072, allocations: 231.3 kB / 462.1 MB, free: 4.652 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002682/0.1075, allocations: 338 kB / 462.4 MB, free: 4.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008004/0.1083, allocations: 0.8456 MB / 463.3 MB, free: 3.473 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.1083, allocations: 4 kB / 463.3 MB, free: 3.469 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1083, allocations: 0 / 463.3 MB, free: 3.469 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.588e-06/0.1083, allocations: 0 / 463.3 MB, free: 3.469 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.002557/0.1109, allocations: 1.173 MB / 464.5 MB, free: 2.246 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.111, allocations: 8.031 kB / 464.5 MB, free: 2.238 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001135/0.1111, allocations: 106.7 kB / 464.6 MB, free: 2.125 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002014/0.1113, allocations: 83.98 kB / 464.6 MB, free: 2.043 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008728/0.1122, allocations: 0.5714 MB / 465.2 MB, free: 1.434 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.309e-05/0.1122, allocations: 33.69 kB / 465.2 MB, free: 1.398 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.968e-05/0.1123, allocations: 56.12 kB / 465.3 MB, free: 1.344 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001385/0.1137, allocations: 0.7223 MB / 466 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.834e-05/0.1137, allocations: 0 / 466 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.467e-05/0.1138, allocations: 20 kB / 466 MB, free: 0.582 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.407e-05/0.1139, allocations: 49.23 kB / 466.1 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00156/0.1154, allocations: 0.618 MB / 466.7 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00374/0.1192, allocations: 2.195 MB / 468.9 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001672/0.1209, allocations: 0.5571 MB / 469.5 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006561/0.1215, allocations: 256.7 kB / 469.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001606/0.1217, allocations: 182.1 kB / 469.9 MB, free: 12.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.492e-05/0.1217, allocations: 43.27 kB / 469.9 MB, free: 12.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.164e-06/0.1218, allocations: 0 / 469.9 MB, free: 12.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.002085/0.1238, allocations: 0.7191 MB / 470.7 MB, free: 11.83 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.887e-05/0.1239, allocations: 55.41 kB / 470.7 MB, free: 11.76 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006669/0.1246, allocations: 0.6121 MB / 471.3 MB, free: 11.14 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.881e-05/0.1246, allocations: 37.7 kB / 471.4 MB, free: 11.1 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002157/0.1248, allocations: 331.9 kB / 471.7 MB, free: 10.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001108/0.125, allocations: 134.2 kB / 471.8 MB, free: 10.64 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001828/0.1251, allocations: 110.2 kB / 471.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001471/0.1253, allocations: 378.8 kB / 472.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006246/0.1259, allocations: 221 kB / 472.5 MB, free: 9.926 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006987/0.1266, allocations: 343.1 kB / 472.8 MB, free: 9.547 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001224/0.1279, allocations: 498.5 kB / 473.3 MB, free: 9.008 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.057e-06/0.1279, allocations: 0 / 473.3 MB, free: 9.008 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001589/0.1295, allocations: 0.6193 MB / 473.9 MB, free: 8.383 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.1295, allocations: 4 kB / 474 MB, free: 8.379 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.321e-05/0.1295, allocations: 4 kB / 474 MB, free: 8.375 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.256e-05/0.1296, allocations: 8 kB / 474 MB, free: 8.367 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003192/0.1299, allocations: 87.83 kB / 474 MB, free: 8.281 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.536e-05/0.1299, allocations: 11.98 kB / 474.1 MB, free: 8.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004665/0.1304, allocations: 79.61 kB / 474.1 MB, free: 8.191 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.962e-05/0.1304, allocations: 31.98 kB / 474.2 MB, free: 8.16 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.0003326/0.1308, allocations: 264.5 kB / 474.4 MB, free: 7.895 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001512/0.1309, allocations: 75.08 kB / 474.5 MB, free: 7.82 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001659/0.1326, allocations: 0.6166 MB / 475.1 MB, free: 7.191 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.939e-06/0.1326, allocations: 7.938 kB / 475.1 MB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.1326, allocations: 0 / 475.1 MB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/0.1327, allocations: 3.984 kB / 475.1 MB, free: 7.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00258/0.1352, allocations: 1.338 MB / 476.5 MB, free: 5.785 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.1353, allocations: 0 / 476.5 MB, free: 5.785 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002572/0.1355, allocations: 55.91 kB / 476.5 MB, free: 5.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.592e-06/0.1355, allocations: 4 kB / 476.5 MB, free: 5.727 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.645e-05/0.1356, allocations: 19.98 kB / 476.5 MB, free: 5.707 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.12e-06/0.1356, allocations: 0 / 476.5 MB, free: 5.707 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.1356, allocations: 3.938 kB / 476.5 MB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002233/0.1378, allocations: 0.9545 MB / 477.5 MB, free: 4.734 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002993/0.1382, allocations: 196.3 kB / 477.7 MB, free: 4.523 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.699e-05/0.1382, allocations: 4 kB / 477.7 MB, free: 4.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004594/0.1387, allocations: 63.98 kB / 477.8 MB, free: 4.457 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002577/0.139, allocations: 119.8 kB / 477.9 MB, free: 4.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.054e-05/0.139, allocations: 12 kB / 477.9 MB, free: 4.328 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004836/0.1395, allocations: 442.7 kB / 478.3 MB, free: 3.898 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1395, allocations: 0 / 478.3 MB, free: 3.898 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005646/0.1401, allocations: 147.6 kB / 478.5 MB, free: 3.754 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.002736/0.1428, allocations: 1.551 MB / 480 MB, free: 2.176 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001475/0.1443, allocations: 0.535 MB / 480.6 MB, free: 1.641 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.1443, allocations: 0 / 480.6 MB, free: 1.641 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007164/0.1451, allocations: 291.8 kB / 480.8 MB, free: 1.355 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005121/0.1456, allocations: 66.3 kB / 480.9 MB, free: 1.285 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009017/0.1546, allocations: 5.715 MB / 486.6 MB, free: 11.39 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005648/0.1552, allocations: 0.938 MB / 487.6 MB, free: 10.43 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004862/0.1557, allocations: 196.5 kB / 487.7 MB, free: 10.23 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003919/0.1561, allocations: 251.3 kB / 488 MB, free: 9.988 MB / 366.1 MB Notification: Performance of SimCode: time 9.02e-07/0.1561, allocations: 0 / 488 MB, free: 9.988 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0357/0.1918, allocations: 13.48 MB / 0.4897 GB, free: 12.58 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.881/9.073, allocations: 9.656 kB / 0.4897 GB, free: 12.58 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 & /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)