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.0009278/0.0009278, allocations: 80.88 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.0008923/0.0008923, 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.8613/0.8613, allocations: 158.6 MB / 185.2 MB, free: 2.766 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.02677/0.02677, allocations: 6.419 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.323e-06/1.323e-06, allocations: 0 / 262.1 MB, free: 6.457 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.221e-05/1.354e-05, allocations: 2.312 kB / 262.1 MB, free: 6.453 MB / 250.7 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.002058/0.002072, allocations: 2.019 MB / 264.1 MB, free: 4.418 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008698/0.002942, allocations: 0.6275 MB / 264.8 MB, free: 3.781 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.079e-05/0.003012, allocations: 4 kB / 264.8 MB, free: 3.777 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.946e-05/0.003072, allocations: 23.72 kB / 264.8 MB, free: 3.754 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001146/0.003186, allocations: 51.55 kB / 264.8 MB, free: 3.703 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001803/0.003367, allocations: 59.86 kB / 264.9 MB, free: 3.645 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000188/0.003555, allocations: 227 kB / 265.1 MB, free: 3.422 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001229/0.003678, allocations: 71.06 kB / 265.2 MB, free: 3.355 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001623/0.00384, allocations: 139.7 kB / 265.3 MB, free: 3.219 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.672e-05/0.003937, allocations: 63.84 kB / 265.4 MB, free: 3.156 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.784e-05/0.003965, allocations: 20 kB / 265.4 MB, free: 3.137 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.197e-05/0.003986, allocations: 20 kB / 265.4 MB, free: 3.117 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.891e-05/0.004025, allocations: 43.84 kB / 265.5 MB, free: 3.074 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.299e-05/0.004088, allocations: 75.81 kB / 265.6 MB, free: 3 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001548/0.004243, allocations: 155.5 kB / 265.7 MB, free: 2.848 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.512e-06/0.004245, allocations: 0 / 265.7 MB, free: 2.848 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.61e-07/0.004245, allocations: 0 / 265.7 MB, free: 2.848 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.727e-06/0.004249, allocations: 4 kB / 265.7 MB, free: 2.844 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.0004288/0.004678, allocations: 418.2 kB / 266.1 MB, free: 2.402 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.026e-05/0.004708, allocations: 11.98 kB / 266.1 MB, free: 2.391 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.264e-05/0.004751, allocations: 28.92 kB / 266.2 MB, free: 2.363 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.678e-05/0.004847, allocations: 125.5 kB / 266.3 MB, free: 2.215 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.758e-05/0.004865, allocations: 24.69 kB / 266.3 MB, free: 2.191 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.825e-05/0.004893, allocations: 16.38 kB / 266.3 MB, free: 2.176 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001521/0.005045, allocations: 168.7 kB / 266.5 MB, free: 1.996 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.005056, allocations: 4.188 kB / 266.5 MB, free: 1.992 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.266e-05/0.005069, allocations: 8.375 kB / 266.5 MB, free: 1.984 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.005076, allocations: 7.938 kB / 266.5 MB, free: 1.977 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.038e-05/0.005147, allocations: 79.92 kB / 266.6 MB, free: 1.895 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005869/0.005734, allocations: 0.4896 MB / 267.1 MB, free: 1.379 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001706/0.005904, allocations: 124.2 kB / 267.2 MB, free: 1.242 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000103/0.006007, allocations: 102.5 kB / 267.3 MB, free: 1.133 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.587e-06/0.006016, allocations: 4 kB / 267.3 MB, free: 1.129 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001356/0.006152, allocations: 192.4 kB / 267.5 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of pre-optimization done (n=22): time 1.062e-06/0.006153, allocations: 0 / 267.5 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of matching and sorting (n=25): time 0.0006648/0.006817, allocations: 0.6442 MB / 268.1 MB, free: 196 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003181/0.007135, allocations: 140.5 kB / 268.3 MB, free: 24 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.366e-05/0.007209, allocations: 142.5 kB / 268.4 MB, free: 15.87 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.614e-05/0.007225, allocations: 37.7 kB / 268.4 MB, free: 15.83 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.517e-05/0.00727, allocations: 132.7 kB / 268.6 MB, free: 15.69 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.201e-05/0.007312, allocations: 91.23 kB / 268.7 MB, free: 15.6 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.103e-05/0.007363, allocations: 61.62 kB / 268.7 MB, free: 15.54 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.042e-05/0.007434, allocations: 330.8 kB / 269 MB, free: 15.2 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.727e-05/0.007471, allocations: 54.02 kB / 269.1 MB, free: 15.14 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.897e-05/0.00754, allocations: 122.1 kB / 269.2 MB, free: 14.99 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001292/0.007669, allocations: 211.3 kB / 269.4 MB, free: 14.74 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-06/0.00767, allocations: 0 / 269.4 MB, free: 14.74 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0001552/0.007826, allocations: 225.5 kB / 269.6 MB, free: 14.5 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.317e-05/0.007849, allocations: 33.95 kB / 269.7 MB, free: 14.46 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.007854, allocations: 4 kB / 269.7 MB, free: 14.46 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.401e-05/0.007868, allocations: 8 kB / 269.7 MB, free: 14.45 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000126/0.007993, allocations: 67.84 kB / 269.8 MB, free: 14.39 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.007998, allocations: 4 kB / 269.8 MB, free: 14.38 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.056e-05/0.008049, allocations: 12 kB / 269.8 MB, free: 14.37 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.076e-05/0.00806, allocations: 15.92 kB / 269.8 MB, free: 14.36 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.0001109/0.008171, allocations: 167.4 kB / 269.9 MB, free: 14.18 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.955e-05/0.00819, allocations: 19.98 kB / 270 MB, free: 14.16 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.282e-05/0.008213, allocations: 20.94 kB / 270 MB, free: 14.13 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-06/0.008214, allocations: 4 kB / 270 MB, free: 14.13 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-06/0.008216, allocations: 0 / 270 MB, free: 14.13 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.00822, allocations: 0 / 270 MB, free: 14.13 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003736/0.008594, allocations: 459.5 kB / 270.4 MB, free: 13.64 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.008595, allocations: 0 / 270.4 MB, free: 13.64 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000103/0.008698, allocations: 47.92 kB / 270.5 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.008701, allocations: 0 / 270.5 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.428e-05/0.008715, allocations: 16.05 kB / 270.5 MB, free: 13.57 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.008716, allocations: 0 / 270.5 MB, free: 13.57 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.008718, allocations: 7.938 kB / 270.5 MB, free: 13.57 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002532/0.008972, allocations: 402 kB / 270.9 MB, free: 13.13 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.429e-05/0.008986, allocations: 11.91 kB / 270.9 MB, free: 13.12 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.182e-05/0.009008, allocations: 8.047 kB / 270.9 MB, free: 13.11 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.921e-05/0.009067, allocations: 19.97 kB / 270.9 MB, free: 13.09 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.426e-05/0.009101, allocations: 11.92 kB / 271 MB, free: 13.08 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.584e-05/0.009117, allocations: 8 kB / 271 MB, free: 13.07 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.804e-05/0.009135, allocations: 24.78 kB / 271 MB, free: 13.05 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009135, allocations: 4 kB / 271 MB, free: 13.04 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001758/0.009311, allocations: 56 kB / 271 MB, free: 12.99 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 8.32e-05/0.009394, allocations: 93.59 kB / 271.1 MB, free: 12.89 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001838/0.009578, allocations: 247.9 kB / 271.4 MB, free: 12.62 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.009581, allocations: 0 / 271.4 MB, free: 12.62 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.436e-05/0.009666, allocations: 161.8 kB / 271.5 MB, free: 12.44 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001184/0.009784, allocations: 16.62 kB / 271.6 MB, free: 12.43 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006392/0.01042, allocations: 495.5 kB / 272 MB, free: 11.91 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.374e-05/0.01047, allocations: 79.98 kB / 272.1 MB, free: 11.81 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.454e-05/0.0105, allocations: 17.48 kB / 272.1 MB, free: 11.79 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.058e-05/0.01058, allocations: 87.36 kB / 272.2 MB, free: 11.71 MB / 266.7 MB Notification: Performance of SimCode: time 6.92e-07/0.01058, allocations: 0 / 272.2 MB, free: 11.71 MB / 266.7 MB Notification: Performance of Templates: time 0.003301/0.01388, allocations: 1.779 MB / 274 MB, free: 9.93 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 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.568764487747103]