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.001256/0.001256, 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.001276/0.001276, allocations: 200 kB / 16.14 MB, free: 6.664 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.242/1.242, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.3898/0.3898, allocations: 2.586 MB / 292.5 MB, free: 3.359 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001575/0.001575, allocations: 91.84 kB / 353.5 MB, free: 5.297 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08605/0.08764, allocations: 50.04 MB / 403.5 MB, free: 3.215 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.00399/0.09167, allocations: 3.024 MB / 406.5 MB, free: 176 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001999/0.0937, allocations: 1.301 MB / 407.8 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001801/0.09389, allocations: 15.94 kB / 407.8 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002958/0.0942, allocations: 79.42 kB / 407.9 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009335/0.09515, allocations: 406.4 kB / 408.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002652/0.09543, allocations: 151.9 kB / 408.5 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009116/0.09635, allocations: 0.8459 MB / 409.3 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003991/0.09676, allocations: 333.7 kB / 409.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002827/0.09705, allocations: 279 kB / 409.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003289/0.09739, allocations: 334.5 kB / 410.2 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.361e-05/0.09746, allocations: 32 kB / 410.3 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002234/0.09769, allocations: 123.9 kB / 410.4 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001589/0.09786, allocations: 187.3 kB / 410.6 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002292/0.0981, allocations: 310 kB / 410.9 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006842/0.09879, allocations: 0.7865 MB / 411.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.0988, allocations: 4 kB / 411.7 MB, free: 11.01 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.32e-07/0.09881, allocations: 0 / 411.7 MB, free: 11.01 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.165e-06/0.09883, allocations: 0 / 411.7 MB, free: 11.01 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.00243/0.1013, allocations: 1.177 MB / 412.8 MB, free: 9.785 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.1013, allocations: 8.031 kB / 412.8 MB, free: 9.777 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001126/0.1014, allocations: 98.7 kB / 412.9 MB, free: 9.672 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001895/0.1016, allocations: 83.98 kB / 413 MB, free: 9.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006725/0.1023, allocations: 0.5481 MB / 413.6 MB, free: 9 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.058e-05/0.1023, allocations: 37.69 kB / 413.6 MB, free: 8.961 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.687e-05/0.1024, allocations: 52.12 kB / 413.7 MB, free: 8.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001304/0.1037, allocations: 0.7223 MB / 414.4 MB, free: 8.168 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.878e-05/0.1038, allocations: 3.938 kB / 414.4 MB, free: 8.164 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.363e-05/0.1038, allocations: 23.94 kB / 414.4 MB, free: 8.141 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.438e-05/0.1039, allocations: 45.28 kB / 414.4 MB, free: 8.098 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001472/0.1054, allocations: 0.618 MB / 415.1 MB, free: 7.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003346/0.1087, allocations: 2.207 MB / 417.3 MB, free: 5.199 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001551/0.1103, allocations: 0.5574 MB / 417.8 MB, free: 4.633 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006153/0.1109, allocations: 260.6 kB / 418.1 MB, free: 4.375 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001626/0.1111, allocations: 182.1 kB / 418.3 MB, free: 4.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.22e-05/0.1111, allocations: 42.56 kB / 418.3 MB, free: 4.109 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.034e-06/0.1111, allocations: 0 / 418.3 MB, free: 4.109 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.002118/0.1133, allocations: 0.7275 MB / 419 MB, free: 3.375 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.512e-05/0.1133, allocations: 59.34 kB / 419.1 MB, free: 3.305 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007174/0.114, allocations: 0.6122 MB / 419.7 MB, free: 2.684 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.261e-05/0.1141, allocations: 33.7 kB / 419.7 MB, free: 2.645 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002705/0.1144, allocations: 327.8 kB / 420.1 MB, free: 2.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001117/0.1145, allocations: 134.1 kB / 420.2 MB, free: 2.188 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001836/0.1147, allocations: 114.2 kB / 420.3 MB, free: 2.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001596/0.1149, allocations: 374.8 kB / 420.7 MB, free: 1.695 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006018/0.1155, allocations: 221 kB / 420.9 MB, free: 1.477 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006478/0.1161, allocations: 339.2 kB / 421.2 MB, free: 1.102 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001103/0.1172, allocations: 0.4905 MB / 421.7 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.1172, allocations: 0 / 421.7 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.1497/0.267, allocations: 0.6166 MB / 422.3 MB, free: 50.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.686e-05/0.267, allocations: 8.688 kB / 422.3 MB, free: 50.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.783e-05/0.2671, allocations: 7.688 kB / 422.3 MB, free: 50.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.534e-05/0.2671, allocations: 5.719 kB / 422.3 MB, free: 50.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004633/0.2676, allocations: 89.09 kB / 422.4 MB, free: 50.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.986e-05/0.2676, allocations: 8.625 kB / 422.4 MB, free: 50.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005956/0.2682, allocations: 77.52 kB / 422.5 MB, free: 50.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.224e-05/0.2683, allocations: 27.98 kB / 422.5 MB, free: 50.43 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.0004145/0.2687, allocations: 261.9 kB / 422.8 MB, free: 50.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001806/0.2689, allocations: 67.69 kB / 422.9 MB, free: 50.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001617/0.2705, allocations: 0.6268 MB / 423.5 MB, free: 50.28 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.03e-05/0.2705, allocations: 4.344 kB / 423.5 MB, free: 50.28 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.2705, allocations: 1 kB / 423.5 MB, free: 50.28 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.2705, allocations: 3.422 kB / 423.5 MB, free: 50.28 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002129/0.2727, allocations: 1.334 MB / 424.8 MB, free: 49.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.2727, allocations: 3.281 kB / 424.8 MB, free: 49.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002297/0.2729, allocations: 62.2 kB / 424.9 MB, free: 49.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.558e-06/0.2729, allocations: 4.828 kB / 424.9 MB, free: 49.97 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.596e-05/0.273, allocations: 14.36 kB / 424.9 MB, free: 49.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.273, allocations: 2.938 kB / 424.9 MB, free: 49.97 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.273, allocations: 3.938 kB / 424.9 MB, free: 49.97 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001895/0.2749, allocations: 0.9542 MB / 425.9 MB, free: 49.67 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002062/0.2751, allocations: 197 kB / 426.1 MB, free: 49.53 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.493e-05/0.2752, allocations: 7.25 kB / 426.1 MB, free: 49.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004117/0.2756, allocations: 59.84 kB / 426.1 MB, free: 49.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002315/0.2758, allocations: 119.9 kB / 426.2 MB, free: 49.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.788e-05/0.2759, allocations: 17.2 kB / 426.3 MB, free: 49.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004558/0.2764, allocations: 435.7 kB / 426.7 MB, free: 49.31 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2764, allocations: 0 / 426.7 MB, free: 49.31 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005659/0.2769, allocations: 147.7 kB / 426.8 MB, free: 49.29 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.002217/0.2792, allocations: 1.552 MB / 428.4 MB, free: 48.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001256/0.2804, allocations: 0.5259 MB / 428.9 MB, free: 48.18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.2804, allocations: 3.531 kB / 428.9 MB, free: 48.18 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006376/0.2811, allocations: 297.8 kB / 429.2 MB, free: 48.1 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004761/0.2816, allocations: 67.25 kB / 429.3 MB, free: 48.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007247/0.2888, allocations: 6.096 MB / 435.4 MB, free: 44.72 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002882/0.2891, allocations: 0.9457 MB / 436.3 MB, free: 44 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004329/0.2896, allocations: 194.3 kB / 436.5 MB, free: 43.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002645/0.2898, allocations: 241 kB / 436.7 MB, free: 43.8 MB / 350.1 MB Notification: Performance of SimCode: time 5.51e-07/0.2899, allocations: 0 / 436.7 MB, free: 43.8 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.014/2.304, allocations: 12.23 MB / 449 MB, free: 42.84 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001577/2.304, allocations: 179.9 kB / 449.1 MB, free: 42.58 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.899/4.203, allocations: 0 / 449.1 MB, free: 42.58 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)