Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.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.0009555/0.0009555, allocations: 80.94 kB / 19.94 MB, free: 4.547 MB / 18.57 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.001124/0.001124, allocations: 181 kB / 23.36 MB, free: 1.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9416/0.9416, allocations: 158.6 MB / 185.2 MB, free: 2.734 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03611/0.03611, allocations: 6.416 MB / 244 MB, free: 8.613 MB / 234.7 MB " [Timeout remaining time 180] Using package ModelicaByExample with version 0.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter") translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.192e-06/1.192e-06, allocations: 0 / 262.2 MB, free: 6.402 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.808e-06/1.1e-05, allocations: 2.312 kB / 262.2 MB, free: 6.398 MB / 250.7 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.002088/0.002099, allocations: 2.054 MB / 264.2 MB, free: 4.328 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007731/0.002872, allocations: 0.6276 MB / 264.9 MB, free: 3.691 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.088e-05/0.002933, allocations: 4 kB / 264.9 MB, free: 3.688 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.584e-05/0.002989, allocations: 23.73 kB / 264.9 MB, free: 3.664 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001068/0.003096, allocations: 51.48 kB / 264.9 MB, free: 3.613 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001682/0.003264, allocations: 59.86 kB / 265 MB, free: 3.555 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000185/0.003449, allocations: 231 kB / 265.2 MB, free: 3.328 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001185/0.003567, allocations: 67.08 kB / 265.3 MB, free: 3.266 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002067/0.003774, allocations: 139.7 kB / 265.4 MB, free: 3.129 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.52e-05/0.003869, allocations: 63.8 kB / 265.5 MB, free: 3.066 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.572e-05/0.003895, allocations: 27.94 kB / 265.5 MB, free: 3.039 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.974e-05/0.003915, allocations: 20 kB / 265.5 MB, free: 3.02 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.807e-05/0.003943, allocations: 39.89 kB / 265.6 MB, free: 2.98 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.623e-05/0.003999, allocations: 79.81 kB / 265.6 MB, free: 2.902 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001424/0.004142, allocations: 147.5 kB / 265.8 MB, free: 2.758 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.783e-06/0.004143, allocations: 0 / 265.8 MB, free: 2.758 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.004144, allocations: 0 / 265.8 MB, free: 2.758 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.795e-06/0.004147, allocations: 8 kB / 265.8 MB, free: 2.75 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0003875/0.004534, allocations: 414.2 kB / 266.2 MB, free: 2.316 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.086e-05/0.004565, allocations: 11.98 kB / 266.2 MB, free: 2.305 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.055e-05/0.004606, allocations: 32.91 kB / 266.2 MB, free: 2.273 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.936e-05/0.004685, allocations: 129.5 kB / 266.4 MB, free: 2.121 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.486e-05/0.0047, allocations: 20.69 kB / 266.4 MB, free: 2.102 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.483e-05/0.004725, allocations: 20.38 kB / 266.4 MB, free: 2.082 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001428/0.004868, allocations: 164.7 kB / 266.6 MB, free: 1.906 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.004879, allocations: 8.188 kB / 266.6 MB, free: 1.898 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.608e-06/0.004888, allocations: 4.375 kB / 266.6 MB, free: 1.895 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.244e-06/0.004896, allocations: 7.938 kB / 266.6 MB, free: 1.887 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.972e-05/0.004965, allocations: 83.92 kB / 266.7 MB, free: 1.797 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005404/0.005506, allocations: 492.6 kB / 267.2 MB, free: 1.293 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001597/0.005665, allocations: 132.2 kB / 267.3 MB, free: 1.148 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.551e-05/0.005761, allocations: 106.5 kB / 267.4 MB, free: 1.035 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.167e-06/0.00577, allocations: 7.984 kB / 267.4 MB, free: 1.027 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001332/0.005903, allocations: 188.4 kB / 267.6 MB, free: 0.8125 MB / 250.7 MB Notification: Performance of pre-optimization done (n=22): time 1.433e-06/0.005905, allocations: 0 / 267.6 MB, free: 0.8125 MB / 250.7 MB Notification: Performance of matching and sorting (n=25): time 0.0006599/0.006565, allocations: 0.6441 MB / 268.2 MB, free: 96 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.68e-05/0.006621, allocations: 140.4 kB / 268.4 MB, free: 15.93 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.598e-05/0.006687, allocations: 150.5 kB / 268.5 MB, free: 15.77 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.359e-05/0.006701, allocations: 29.7 kB / 268.5 MB, free: 15.73 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.884e-05/0.00675, allocations: 136.7 kB / 268.7 MB, free: 15.59 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.978e-05/0.00679, allocations: 87.25 kB / 268.8 MB, free: 15.5 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.197e-05/0.006842, allocations: 61.62 kB / 268.8 MB, free: 15.44 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.895e-05/0.006911, allocations: 330.8 kB / 269.1 MB, free: 15.11 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.835e-05/0.006949, allocations: 50.02 kB / 269.2 MB, free: 15.05 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.105e-05/0.00702, allocations: 130.1 kB / 269.3 MB, free: 14.89 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000133/0.007153, allocations: 211.3 kB / 269.5 MB, free: 14.64 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.007154, allocations: 0 / 269.5 MB, free: 14.64 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0001628/0.007317, allocations: 225.7 kB / 269.7 MB, free: 14.4 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.266e-05/0.00734, allocations: 41.69 kB / 269.8 MB, free: 14.36 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.221e-06/0.007346, allocations: 4 kB / 269.8 MB, free: 14.35 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.156e-05/0.007358, allocations: 4 kB / 269.8 MB, free: 14.35 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001887/0.007546, allocations: 67.91 kB / 269.9 MB, free: 14.28 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.298e-06/0.007551, allocations: 4 kB / 269.9 MB, free: 14.28 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.261e-05/0.007603, allocations: 12 kB / 269.9 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.838e-06/0.007613, allocations: 11.98 kB / 269.9 MB, free: 14.25 MB / 266.7 MB Warning: Assuming fixed start value for the following 1 variables: pulseCounter.w:DISCRETE(flow=false fixed = true ) \"Sensed speed\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.pulseCounter.w,pulseCounter.w,pulseCounter.count,$PRE.pulseCounter.count,pulseCounter.prev_phi,$PRE.pulseCounter.prev_phi,pulseCounter.next_phi,$PRE.pulseCounter.next_phi,$whenCondition3,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * 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.0001088/0.007722, allocations: 167.4 kB / 270 MB, free: 14.07 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.108e-05/0.007743, allocations: 23.98 kB / 270.1 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.297e-05/0.007766, allocations: 20.94 kB / 270.1 MB, free: 14.03 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.007768, allocations: 0 / 270.1 MB, free: 14.03 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-06/0.00777, allocations: 0 / 270.1 MB, free: 14.03 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.007773, allocations: 0 / 270.1 MB, free: 14.03 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003731/0.008146, allocations: 459.5 kB / 270.5 MB, free: 13.54 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.008149, allocations: 4 kB / 270.5 MB, free: 13.53 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001267/0.008276, allocations: 64.02 kB / 270.6 MB, free: 13.47 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.008278, allocations: 0 / 270.6 MB, free: 13.47 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.182e-05/0.00829, allocations: 11.94 kB / 270.6 MB, free: 13.46 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.008293, allocations: 7.984 kB / 270.6 MB, free: 13.45 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.008294, allocations: 0 / 270.6 MB, free: 13.45 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002495/0.008544, allocations: 406 kB / 271 MB, free: 13.01 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.364e-05/0.008557, allocations: 11.91 kB / 271 MB, free: 13 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.221e-05/0.008579, allocations: 19.88 kB / 271 MB, free: 12.98 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.66e-05/0.008636, allocations: 8 kB / 271.1 MB, free: 12.97 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.641e-05/0.008672, allocations: 11.97 kB / 271.1 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.606e-05/0.008688, allocations: 16 kB / 271.1 MB, free: 12.95 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.803e-05/0.008707, allocations: 21.48 kB / 271.1 MB, free: 12.92 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008707, allocations: 0 / 271.1 MB, free: 12.92 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000169/0.008876, allocations: 56 kB / 271.2 MB, free: 12.87 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertia2.flange_a.phi,inertia2.w,inertia1.flange_a.phi,inertia1.w) * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,$whenCondition3,pulseCounter.w,pulseCounter.next_phi,pulseCounter.prev_phi,pulseCounter.count) * Number of discrete states: 7 (pulseCounter.w,$whenCondition3,pulseCounter.count,pulseCounter.prev_phi,pulseCounter.next_phi,$whenCondition2,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * 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 7.174e-05/0.008947, allocations: 96.72 kB / 271.3 MB, free: 12.77 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001841/0.009131, allocations: 243.9 kB / 271.5 MB, free: 12.5 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.009135, allocations: 4.5 kB / 271.5 MB, free: 12.5 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.613e-05/0.009221, allocations: 157.9 kB / 271.7 MB, free: 12.32 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001297/0.009351, allocations: 23.98 kB / 271.7 MB, free: 12.3 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006205/0.009972, allocations: 491.7 kB / 272.2 MB, free: 11.78 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.166e-05/0.01001, allocations: 79.98 kB / 272.2 MB, free: 11.68 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.803e-05/0.01005, allocations: 21.45 kB / 272.3 MB, free: 11.66 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.233e-05/0.01013, allocations: 83.38 kB / 272.3 MB, free: 11.58 MB / 266.7 MB Notification: Performance of SimCode: time 5.81e-07/0.01013, allocations: 0 / 272.3 MB, free: 11.58 MB / 266.7 MB Notification: Performance of Templates: time 0.003349/0.01348, allocations: 1.852 MB / 274.2 MB, free: 9.73 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.makefile [Timeout 660] (rm -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.pipe >> ../files/ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.sim & ./ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.61903013009578]