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.001821/0.001821, allocations: 85.48 kB / 19.44 MB, free: 344 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.002032/0.002032, allocations: 173.2 kB / 22.76 MB, free: 1.664 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.565/1.565, allocations: 177.1 MB / 203.1 MB, free: 5.613 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.01546/0.01546, allocations: 2.004 MB / 261.6 MB, free: 11.09 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.092e-06/1.092e-06, allocations: 0 / 331.4 MB, free: 17.55 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.891e-05/2e-05, allocations: 3.438 kB / 331.4 MB, free: 17.54 MB / 266.7 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.003189/0.003209, allocations: 2.936 MB / 334.3 MB, free: 14.58 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001791/0.005, allocations: 1.332 MB / 335.7 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002035/0.005204, allocations: 19.88 kB / 335.7 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002851/0.005489, allocations: 99.09 kB / 335.8 MB, free: 13.13 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009395/0.006428, allocations: 425.8 kB / 336.2 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002401/0.006668, allocations: 167.8 kB / 336.4 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000778/0.007446, allocations: 0.799 MB / 337.2 MB, free: 11.75 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002884/0.007735, allocations: 225.8 kB / 337.4 MB, free: 11.52 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003787/0.008113, allocations: 443.1 kB / 337.8 MB, free: 11.09 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000299/0.008412, allocations: 291.2 kB / 338.1 MB, free: 10.8 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.954e-05/0.008502, allocations: 64 kB / 338.2 MB, free: 10.74 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002465/0.008748, allocations: 171.7 kB / 338.3 MB, free: 10.57 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001676/0.008916, allocations: 247.2 kB / 338.6 MB, free: 10.33 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000175/0.009091, allocations: 215.4 kB / 338.8 MB, free: 10.12 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007127/0.009804, allocations: 0.8839 MB / 339.7 MB, free: 9.23 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.009807, allocations: 0 / 339.7 MB, free: 9.23 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.009808, allocations: 0 / 339.7 MB, free: 9.23 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.078e-05/0.009819, allocations: 0 / 339.7 MB, free: 9.23 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.002538/0.01236, allocations: 1.286 MB / 341 MB, free: 7.906 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.041e-05/0.01239, allocations: 11.97 kB / 341 MB, free: 7.895 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003197/0.01271, allocations: 140.3 kB / 341.1 MB, free: 7.758 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006881/0.0134, allocations: 0.4929 MB / 341.6 MB, free: 7.234 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.573e-05/0.01342, allocations: 37.69 kB / 341.6 MB, free: 7.199 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.673e-05/0.0135, allocations: 60.27 kB / 341.7 MB, free: 7.141 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001168/0.01467, allocations: 0.7773 MB / 342.5 MB, free: 6.309 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.067e-05/0.01469, allocations: 4.188 kB / 342.5 MB, free: 6.305 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.245e-05/0.01474, allocations: 27.94 kB / 342.5 MB, free: 6.277 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.34e-05/0.01478, allocations: 37.3 kB / 342.5 MB, free: 6.242 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001386/0.01617, allocations: 492.8 kB / 343 MB, free: 5.762 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003094/0.01926, allocations: 2.097 MB / 345.1 MB, free: 3.605 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001516/0.02078, allocations: 392.7 kB / 345.5 MB, free: 3.211 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005637/0.02134, allocations: 167.5 kB / 345.7 MB, free: 3.043 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001128/0.02146, allocations: 23.98 kB / 345.7 MB, free: 3.02 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.993e-05/0.02148, allocations: 42.11 kB / 345.7 MB, free: 2.969 MB / 266.7 MB Notification: Performance of pre-optimization done (n=44): time 2.295e-06/0.02148, allocations: 0 / 345.7 MB, free: 2.969 MB / 266.7 MB Notification: Performance of matching and sorting (n=44): time 0.001925/0.0234, allocations: 0.5125 MB / 346.3 MB, free: 2.449 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.215e-05/0.02342, allocations: 55.41 kB / 346.3 MB, free: 2.383 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005132/0.02394, allocations: 0.6314 MB / 346.9 MB, free: 1.734 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.055e-05/0.02397, allocations: 33.7 kB / 347 MB, free: 1.695 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000175/0.02414, allocations: 427.5 kB / 347.4 MB, free: 1.273 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.506e-05/0.02423, allocations: 146.9 kB / 347.5 MB, free: 1.129 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001603/0.02439, allocations: 143.8 kB / 347.7 MB, free: 0.9805 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.0245, allocations: 0.5782 MB / 348.2 MB, free: 400 kB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005446/0.02505, allocations: 136.9 kB / 348.4 MB, free: 264 kB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006726/0.02572, allocations: 319.7 kB / 348.7 MB, free: 15.88 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00135/0.02707, allocations: 420 kB / 349.1 MB, free: 15.39 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-06/0.02707, allocations: 0 / 349.1 MB, free: 15.39 MB / 282.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001705/0.02878, allocations: 0.5025 MB / 349.6 MB, free: 14.89 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.0288, allocations: 8 kB / 349.6 MB, free: 14.88 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.734e-06/0.02881, allocations: 0 / 349.6 MB, free: 14.88 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.308e-05/0.02883, allocations: 11.94 kB / 349.6 MB, free: 14.87 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003476/0.02918, allocations: 84.3 kB / 349.7 MB, free: 14.79 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.135e-05/0.02919, allocations: 12 kB / 349.7 MB, free: 14.77 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004545/0.02964, allocations: 63.69 kB / 349.8 MB, free: 14.71 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.259e-05/0.02971, allocations: 27.98 kB / 349.8 MB, free: 14.68 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.0003541/0.03006, allocations: 262.3 kB / 350.1 MB, free: 14.42 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000398/0.03046, allocations: 71.62 kB / 350.1 MB, free: 14.35 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001725/0.03218, allocations: 474.7 kB / 350.6 MB, free: 13.88 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.186e-05/0.03219, allocations: 11.88 kB / 350.6 MB, free: 13.87 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.0322, allocations: 8 kB / 350.6 MB, free: 13.86 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.137e-06/0.03221, allocations: 3.984 kB / 350.6 MB, free: 13.86 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002925/0.03513, allocations: 1.138 MB / 351.8 MB, free: 12.67 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.03514, allocations: 0 / 351.8 MB, free: 12.67 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002824/0.03542, allocations: 55.91 kB / 351.8 MB, free: 12.62 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.917e-06/0.03543, allocations: 11.94 kB / 351.8 MB, free: 12.61 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.541e-05/0.03547, allocations: 15.98 kB / 351.8 MB, free: 12.59 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.03548, allocations: 0 / 351.8 MB, free: 12.59 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.52e-06/0.03548, allocations: 3.984 kB / 351.8 MB, free: 12.59 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002348/0.03783, allocations: 0.7372 MB / 352.6 MB, free: 11.83 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002995/0.03813, allocations: 103.5 kB / 352.7 MB, free: 11.73 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.922e-05/0.03821, allocations: 15.94 kB / 352.7 MB, free: 11.71 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004508/0.03866, allocations: 39.94 kB / 352.7 MB, free: 11.68 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000341/0.039, allocations: 143.8 kB / 352.9 MB, free: 11.54 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.974e-05/0.03905, allocations: 20.02 kB / 352.9 MB, free: 11.52 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000505/0.03956, allocations: 394.8 kB / 353.3 MB, free: 11.13 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03956, allocations: 0 / 353.3 MB, free: 11.13 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005842/0.04014, allocations: 163.6 kB / 353.4 MB, free: 10.97 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.0002813/0.04042, allocations: 145.1 kB / 353.6 MB, free: 10.82 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.00152/0.04194, allocations: 406.2 kB / 354 MB, free: 10.42 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/0.04195, allocations: 4 kB / 354 MB, free: 10.42 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007762/0.04272, allocations: 223.2 kB / 354.2 MB, free: 10.2 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000529/0.04325, allocations: 88.47 kB / 354.3 MB, free: 10.11 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002335/0.04559, allocations: 1.097 MB / 355.4 MB, free: 8.977 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000407/0.046, allocations: 331.3 kB / 355.7 MB, free: 8.629 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004512/0.04645, allocations: 152.3 kB / 355.9 MB, free: 8.477 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001789/0.04663, allocations: 64.36 kB / 355.9 MB, free: 8.414 MB / 282.7 MB Notification: Performance of SimCode: time 1.032e-06/0.04663, allocations: 0 / 355.9 MB, free: 8.414 MB / 282.7 MB Notification: Performance of Templates: time 0.01539/0.06202, allocations: 6.758 MB / 362.7 MB, free: 1.73 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=240 -lv LOG_STATS > BLDC_BLDC.Examples.DemoElectronicCommutator.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.806172127951868]