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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001464/0.001464, allocations: 92.7 kB / 19.44 MB, free: 320 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001684/0.001684, allocations: 161.3 kB / 22.75 MB, free: 1.652 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.459/1.459, allocations: 177.1 MB / 203.1 MB, free: 5.578 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.0147/0.0147, allocations: 1.992 MB / 261.6 MB, free: 11.07 MB / 250.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(BLDC.Examples.DemoElectronicCommutator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoElectronicCommutator") translateModel(BLDC.Examples.DemoElectronicCommutator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoElectronicCommutator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.392e-06/1.392e-06, allocations: 0 / 331.4 MB, free: 17.54 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.339e-05/2.479e-05, allocations: 2.312 kB / 331.4 MB, free: 17.53 MB / 266.7 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.003222/0.003247, allocations: 2.845 MB / 334.2 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001991/0.005238, allocations: 1.309 MB / 335.6 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002721/0.00551, allocations: 15.88 kB / 335.6 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003852/0.005895, allocations: 103.1 kB / 335.7 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001166/0.007061, allocations: 405.9 kB / 336.1 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000331/0.007392, allocations: 175.7 kB / 336.2 MB, free: 12.66 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008776/0.00827, allocations: 0.7912 MB / 337 MB, free: 11.87 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003028/0.008573, allocations: 229.8 kB / 337.3 MB, free: 11.64 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003644/0.008937, allocations: 443.1 kB / 337.7 MB, free: 11.21 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002854/0.009223, allocations: 291.2 kB / 338 MB, free: 10.92 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.338e-05/0.009296, allocations: 60 kB / 338 MB, free: 10.86 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002343/0.00953, allocations: 171.7 kB / 338.2 MB, free: 10.7 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001566/0.009687, allocations: 243.2 kB / 338.4 MB, free: 10.46 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001628/0.00985, allocations: 219.4 kB / 338.7 MB, free: 10.24 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007396/0.01059, allocations: 0.88 MB / 339.5 MB, free: 9.359 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.01059, allocations: 0 / 339.5 MB, free: 9.359 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.0106, allocations: 0 / 339.5 MB, free: 9.359 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.019e-05/0.01061, allocations: 0 / 339.5 MB, free: 9.359 MB / 266.7 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.002579/0.01319, allocations: 1.155 MB / 340.7 MB, free: 8.172 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/0.01322, allocations: 8.031 kB / 340.7 MB, free: 8.164 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003279/0.01355, allocations: 136.3 kB / 340.8 MB, free: 8.031 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006461/0.01419, allocations: 0.5214 MB / 341.4 MB, free: 7.48 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.651e-05/0.01422, allocations: 37.62 kB / 341.4 MB, free: 7.445 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.042e-05/0.0143, allocations: 56.31 kB / 341.4 MB, free: 7.391 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001207/0.01551, allocations: 0.86 MB / 342.3 MB, free: 6.48 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.833e-05/0.01553, allocations: 192 / 342.3 MB, free: 6.48 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.619e-05/0.01558, allocations: 23.94 kB / 342.3 MB, free: 6.457 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.345e-05/0.01563, allocations: 41.3 kB / 342.4 MB, free: 6.418 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001408/0.01703, allocations: 0.6179 MB / 343 MB, free: 5.801 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002974/0.02001, allocations: 1.912 MB / 344.9 MB, free: 3.836 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001475/0.02148, allocations: 0.5323 MB / 345.4 MB, free: 3.293 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005664/0.02205, allocations: 248.6 kB / 345.7 MB, free: 3.047 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001108/0.02216, allocations: 23.98 kB / 345.7 MB, free: 3.023 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.033e-05/0.02218, allocations: 38.56 kB / 345.7 MB, free: 2.977 MB / 266.7 MB Notification: Performance of pre-optimization done (n=44): time 1.874e-06/0.02218, allocations: 0 / 345.7 MB, free: 2.977 MB / 266.7 MB Notification: Performance of matching and sorting (n=44): time 0.001967/0.02415, allocations: 0.7318 MB / 346.5 MB, free: 2.238 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.463e-05/0.02418, allocations: 63.41 kB / 346.5 MB, free: 2.164 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004487/0.02463, allocations: 0.5098 MB / 347 MB, free: 1.645 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.599e-05/0.02467, allocations: 33.7 kB / 347.1 MB, free: 1.605 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001594/0.02483, allocations: 344.7 kB / 347.4 MB, free: 1.266 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.973e-05/0.02491, allocations: 134.9 kB / 347.5 MB, free: 1.133 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001449/0.02505, allocations: 114.2 kB / 347.6 MB, free: 1.016 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.777e-05/0.02513, allocations: 366.8 kB / 348 MB, free: 0.6484 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005424/0.02567, allocations: 220.8 kB / 348.2 MB, free: 440 kB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005947/0.02627, allocations: 346.5 kB / 348.6 MB, free: 44 kB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001482/0.02775, allocations: 498.6 kB / 349 MB, free: 15.5 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.328e-05/0.02776, allocations: 0 / 349 MB, free: 15.5 MB / 282.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001801/0.02956, allocations: 0.6351 MB / 349.7 MB, free: 14.86 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.499e-05/0.02959, allocations: 8.469 kB / 349.7 MB, free: 14.86 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.486e-05/0.0296, allocations: 4 kB / 349.7 MB, free: 14.85 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.997e-05/0.02963, allocations: 11.94 kB / 349.7 MB, free: 14.84 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003616/0.03, allocations: 91.81 kB / 349.8 MB, free: 14.75 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.477e-05/0.03001, allocations: 4 kB / 349.8 MB, free: 14.75 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004571/0.03047, allocations: 67.69 kB / 349.9 MB, free: 14.68 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.68e-05/0.03052, allocations: 23.98 kB / 349.9 MB, free: 14.66 MB / 282.7 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.0004239/0.03095, allocations: 267.6 kB / 350.2 MB, free: 14.39 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002036/0.03115, allocations: 83.62 kB / 350.2 MB, free: 14.3 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001821/0.03297, allocations: 0.6079 MB / 350.8 MB, free: 13.69 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.261e-05/0.03299, allocations: 11.88 kB / 350.9 MB, free: 13.68 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.03299, allocations: 0 / 350.9 MB, free: 13.68 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/0.033, allocations: 4.094 kB / 350.9 MB, free: 13.68 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002919/0.03592, allocations: 1.174 MB / 352 MB, free: 12.46 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.03592, allocations: 0 / 352 MB, free: 12.46 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002812/0.0362, allocations: 59.91 kB / 352.1 MB, free: 12.41 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.315e-05/0.03622, allocations: 7.922 kB / 352.1 MB, free: 12.4 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.807e-05/0.03627, allocations: 15.98 kB / 352.1 MB, free: 12.38 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.342e-06/0.03627, allocations: 4 kB / 352.1 MB, free: 12.38 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.03628, allocations: 3.984 kB / 352.1 MB, free: 12.38 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002514/0.03879, allocations: 0.967 MB / 353.1 MB, free: 11.39 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002542/0.03904, allocations: 111.5 kB / 353.2 MB, free: 11.28 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.236e-05/0.03912, allocations: 7.938 kB / 353.2 MB, free: 11.27 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004737/0.03959, allocations: 63.98 kB / 353.3 MB, free: 11.21 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002988/0.03989, allocations: 119.8 kB / 353.4 MB, free: 11.09 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.714e-05/0.03994, allocations: 15.98 kB / 353.4 MB, free: 11.07 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004796/0.04042, allocations: 362.8 kB / 353.8 MB, free: 10.72 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.04042, allocations: 0 / 353.8 MB, free: 10.72 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006306/0.04105, allocations: 159.5 kB / 353.9 MB, free: 10.57 MB / 282.7 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.0003188/0.04137, allocations: 153.1 kB / 354.1 MB, free: 10.4 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001597/0.04296, allocations: 0.5204 MB / 354.6 MB, free: 9.883 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.04297, allocations: 0 / 354.6 MB, free: 9.883 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007815/0.04375, allocations: 275.5 kB / 354.8 MB, free: 9.613 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005403/0.04429, allocations: 77.69 kB / 354.9 MB, free: 9.543 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002648/0.04694, allocations: 1.242 MB / 356.2 MB, free: 8.266 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005239/0.04746, allocations: 347.3 kB / 356.5 MB, free: 7.902 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000487/0.04795, allocations: 176.3 kB / 356.7 MB, free: 7.727 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001759/0.04812, allocations: 64.47 kB / 356.7 MB, free: 7.664 MB / 282.7 MB Notification: Performance of SimCode: time 1.092e-06/0.04812, allocations: 0 / 356.7 MB, free: 7.664 MB / 282.7 MB Notification: Performance of Templates: time 0.01573/0.06385, allocations: 6.814 MB / 363.6 MB, free: 0.9297 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f BLDC_BLDC.Examples.DemoElectronicCommutator.makefile [Timeout 660] (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) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.866765372920781]