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.001362/0.001362, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001571/0.001571, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.39/1.39, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.1367/0.1367, allocations: 2.578 MB / 293 MB, free: 3.438 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001919/0.001919, allocations: 87.86 kB / 354 MB, free: 4.848 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09976/0.1017, allocations: 50.04 MB / 404.1 MB, free: 2.77 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.004683/0.1064, allocations: 2.99 MB / 407.1 MB, free: 15.76 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002404/0.1089, allocations: 1.317 MB / 408.4 MB, free: 14.44 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002847/0.1092, allocations: 15.94 kB / 408.4 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003588/0.1095, allocations: 99.09 kB / 408.5 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001111/0.1107, allocations: 433.9 kB / 408.9 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003207/0.111, allocations: 175.8 kB / 409.1 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001097/0.1121, allocations: 0.7838 MB / 409.9 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005312/0.1127, allocations: 353.4 kB / 410.2 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003858/0.1131, allocations: 315 kB / 410.5 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003977/0.1135, allocations: 346.5 kB / 410.9 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.549e-05/0.1136, allocations: 63.94 kB / 410.9 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002859/0.1139, allocations: 143.9 kB / 411.1 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002217/0.1141, allocations: 223.3 kB / 411.3 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002805/0.1144, allocations: 338 kB / 411.6 MB, free: 11.19 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008527/0.1153, allocations: 0.8141 MB / 412.4 MB, free: 10.37 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.1153, allocations: 0 / 412.4 MB, free: 10.37 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1153, allocations: 0 / 412.4 MB, free: 10.37 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.178e-05/0.1153, allocations: 4 kB / 412.4 MB, free: 10.37 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.002653/0.118, allocations: 1.173 MB / 413.6 MB, free: 9.145 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.609e-05/0.118, allocations: 8.031 kB / 413.6 MB, free: 9.137 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002071/0.1182, allocations: 84 kB / 413.7 MB, free: 9.055 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007263/0.119, allocations: 0.552 MB / 414.2 MB, free: 8.461 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.469e-05/0.119, allocations: 37.69 kB / 414.3 MB, free: 8.422 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.971e-05/0.1191, allocations: 52.36 kB / 414.3 MB, free: 8.371 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001399/0.1205, allocations: 0.7299 MB / 415.1 MB, free: 7.621 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.844e-05/0.1206, allocations: 0 / 415.1 MB, free: 7.621 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.774e-05/0.1206, allocations: 20 kB / 415.1 MB, free: 7.602 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.347e-05/0.1207, allocations: 45.3 kB / 415.1 MB, free: 7.559 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001588/0.1223, allocations: 0.6257 MB / 415.8 MB, free: 6.934 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003722/0.126, allocations: 2.203 MB / 418 MB, free: 4.656 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001755/0.1278, allocations: 0.5572 MB / 418.5 MB, free: 4.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006655/0.1285, allocations: 256.7 kB / 418.8 MB, free: 3.836 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001675/0.1286, allocations: 182.1 kB / 418.9 MB, free: 3.621 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.733e-05/0.1287, allocations: 38.56 kB / 419 MB, free: 3.574 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.274e-06/0.1287, allocations: 0 / 419 MB, free: 3.574 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.002184/0.1309, allocations: 0.7236 MB / 419.7 MB, free: 2.844 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.525e-05/0.1309, allocations: 63.41 kB / 419.8 MB, free: 2.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006918/0.1316, allocations: 0.6123 MB / 420.4 MB, free: 2.148 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.097e-05/0.1317, allocations: 33.7 kB / 420.4 MB, free: 2.109 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002268/0.1319, allocations: 327.8 kB / 420.7 MB, free: 1.785 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001094/0.132, allocations: 138.1 kB / 420.9 MB, free: 1.648 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001817/0.1322, allocations: 114.2 kB / 421 MB, free: 1.531 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.1324, allocations: 370.8 kB / 421.3 MB, free: 1.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006498/0.133, allocations: 225 kB / 421.6 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007135/0.1337, allocations: 339.2 kB / 421.9 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00126/0.135, allocations: 498.3 kB / 422.4 MB, free: 24 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.676e-06/0.135, allocations: 0 / 422.4 MB, free: 24 kB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.149/0.284, allocations: 0.6163 MB / 423 MB, free: 50.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.223e-05/0.2841, allocations: 7.25 kB / 423 MB, free: 50.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.358e-05/0.2841, allocations: 3.812 kB / 423 MB, free: 50.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.147e-05/0.2841, allocations: 7.5 kB / 423 MB, free: 50.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003713/0.2845, allocations: 88.73 kB / 423.1 MB, free: 50.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.5e-05/0.2845, allocations: 7.141 kB / 423.1 MB, free: 50.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005264/0.2851, allocations: 81.92 kB / 423.2 MB, free: 50.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.475e-05/0.2851, allocations: 28.94 kB / 423.2 MB, free: 50.34 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.0003332/0.2855, allocations: 266.2 kB / 423.5 MB, free: 50.22 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001485/0.2856, allocations: 66.8 kB / 423.5 MB, free: 50.22 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00148/0.2871, allocations: 0.6194 MB / 424.2 MB, free: 50.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.845e-06/0.2871, allocations: 7 kB / 424.2 MB, free: 50.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.2871, allocations: 0 / 424.2 MB, free: 50.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.2872, allocations: 3.375 kB / 424.2 MB, free: 50.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002191/0.2893, allocations: 1.34 MB / 425.5 MB, free: 49.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.608e-06/0.2894, allocations: 0.75 kB / 425.5 MB, free: 49.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000242/0.2896, allocations: 63.27 kB / 425.6 MB, free: 49.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.109e-06/0.2896, allocations: 2.875 kB / 425.6 MB, free: 49.83 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.546e-05/0.2897, allocations: 14.03 kB / 425.6 MB, free: 49.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.368e-06/0.2897, allocations: 4.406 kB / 425.6 MB, free: 49.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.2897, allocations: 3.938 kB / 425.6 MB, free: 49.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001976/0.2917, allocations: 0.9499 MB / 426.5 MB, free: 49.41 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002052/0.2919, allocations: 198.1 kB / 426.7 MB, free: 49.26 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.85e-05/0.292, allocations: 8 kB / 426.7 MB, free: 49.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004495/0.2924, allocations: 57.44 kB / 426.8 MB, free: 49.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002285/0.2927, allocations: 120.8 kB / 426.9 MB, free: 49.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.555e-05/0.2927, allocations: 24.05 kB / 426.9 MB, free: 49.22 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003931/0.2931, allocations: 436.6 kB / 427.4 MB, free: 49.04 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2931, allocations: 0 / 427.4 MB, free: 49.04 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000523/0.2936, allocations: 152.6 kB / 427.5 MB, free: 49.01 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.0002306/0.2939, allocations: 140.3 kB / 427.7 MB, free: 48.91 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001552/0.2954, allocations: 0.6477 MB / 428.3 MB, free: 48.76 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.2955, allocations: 0 / 428.3 MB, free: 48.76 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006765/0.2961, allocations: 286.4 kB / 428.6 MB, free: 48.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005208/0.2967, allocations: 67.23 kB / 428.6 MB, free: 48.65 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001982/0.2987, allocations: 1.266 MB / 429.9 MB, free: 48.04 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003671/0.2991, allocations: 0.9416 MB / 430.9 MB, free: 47.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004688/0.2995, allocations: 189.8 kB / 431 MB, free: 47.3 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001509/0.2997, allocations: 60.88 kB / 431.1 MB, free: 47.29 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2997, allocations: 0 / 431.1 MB, free: 47.29 MB / 350.1 MB Notification: Performance of Templates: time 0.01164/0.3114, allocations: 7.144 MB / 438.2 MB, free: 46.81 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)