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.001127/0.001127, allocations: 92.2 kB / 20.19 MB, free: 4.363 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.002151/0.002151, allocations: 173 kB / 23.49 MB, free: 1.062 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 1.042/1.042, allocations: 158.6 MB / 185.3 MB, free: 2.938 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.02786/0.02786, allocations: 6.408 MB / 244 MB, free: 8.797 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.854e-06/1.854e-06, allocations: 1.312 kB / 310.8 MB, free: 52.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.61e-05/2.795e-05, allocations: 6.797 kB / 310.8 MB, free: 52.27 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.002696/0.002724, allocations: 2.023 MB / 312.8 MB, free: 50.95 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009872/0.003712, allocations: 0.5994 MB / 313.4 MB, free: 50.55 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.563e-05/0.003797, allocations: 4.031 kB / 313.4 MB, free: 50.55 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 6.248e-05/0.00386, allocations: 30.05 kB / 313.4 MB, free: 50.53 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001299/0.00399, allocations: 53.14 kB / 313.5 MB, free: 50.49 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002316/0.004221, allocations: 62.3 kB / 313.5 MB, free: 50.46 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002316/0.004453, allocations: 233.1 kB / 313.8 MB, free: 50.34 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001776/0.004631, allocations: 75.53 kB / 313.8 MB, free: 50.3 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002347/0.004865, allocations: 129.1 kB / 314 MB, free: 50.25 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001356/0.005001, allocations: 65.52 kB / 314 MB, free: 50.23 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.048e-05/0.005041, allocations: 22 kB / 314 MB, free: 50.23 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.901e-05/0.00507, allocations: 24.56 kB / 314.1 MB, free: 50.23 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.436e-05/0.005115, allocations: 45.48 kB / 314.1 MB, free: 50.2 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.588e-05/0.0052, allocations: 74.95 kB / 314.2 MB, free: 50.17 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002167/0.005417, allocations: 146.2 kB / 314.3 MB, free: 50.1 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.005421, allocations: 4 kB / 314.3 MB, free: 50.09 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.005422, allocations: 2.844 kB / 314.3 MB, free: 50.09 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.105e-06/0.00543, allocations: 0 / 314.3 MB, free: 50.09 MB / 282.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.0005595/0.00599, allocations: 0.5254 MB / 314.9 MB, free: 49.62 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.00603, allocations: 14.2 kB / 314.9 MB, free: 49.61 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.808e-05/0.006108, allocations: 37.75 kB / 314.9 MB, free: 49.6 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001012/0.006209, allocations: 135.1 kB / 315 MB, free: 49.45 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.021e-05/0.006229, allocations: 18.78 kB / 315.1 MB, free: 49.44 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.73e-05/0.006267, allocations: 19.62 kB / 315.1 MB, free: 49.43 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000236/0.006503, allocations: 178.2 kB / 315.3 MB, free: 49.33 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.511e-05/0.006518, allocations: 6.781 kB / 315.3 MB, free: 49.33 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.71e-05/0.006535, allocations: 7 kB / 315.3 MB, free: 49.32 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.25e-05/0.006547, allocations: 9.031 kB / 315.3 MB, free: 49.32 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001315/0.006679, allocations: 104 kB / 315.4 MB, free: 49.28 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008117/0.00749, allocations: 0.6026 MB / 316 MB, free: 48.83 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002432/0.007734, allocations: 170.3 kB / 316.1 MB, free: 48.73 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000144/0.007878, allocations: 110.8 kB / 316.3 MB, free: 48.66 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.082e-05/0.007888, allocations: 4.125 kB / 316.3 MB, free: 48.66 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001677/0.008056, allocations: 202.7 kB / 316.5 MB, free: 48.47 MB / 282.7 MB Notification: Performance of pre-optimization done (n=22): time 1.793e-06/0.008058, allocations: 0 / 316.5 MB, free: 48.47 MB / 282.7 MB Notification: Performance of matching and sorting (n=25): time 0.0008334/0.008891, allocations: 0.7455 MB / 317.2 MB, free: 47.74 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.891e-05/0.00893, allocations: 148.5 kB / 317.3 MB, free: 47.57 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.699e-05/0.008997, allocations: 182.9 kB / 317.5 MB, free: 47.37 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.072e-05/0.009008, allocations: 33.7 kB / 317.6 MB, free: 47.33 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.367e-05/0.009052, allocations: 187.4 kB / 317.7 MB, free: 47.14 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.341e-05/0.009085, allocations: 87.31 kB / 317.8 MB, free: 47.05 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.138e-05/0.009136, allocations: 63.31 kB / 317.9 MB, free: 46.98 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.691e-05/0.009183, allocations: 0.5 MB / 318.4 MB, free: 46.47 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6e-05/0.009243, allocations: 66 kB / 318.5 MB, free: 46.4 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.41e-05/0.009328, allocations: 167.5 kB / 318.6 MB, free: 46.19 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001557/0.009483, allocations: 240.9 kB / 318.9 MB, free: 45.91 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.009485, allocations: 0 / 318.9 MB, free: 45.91 MB / 282.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000223/0.009708, allocations: 298.8 kB / 319.1 MB, free: 45.6 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.662e-05/0.009734, allocations: 37.7 kB / 319.2 MB, free: 45.55 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.00974, allocations: 0 / 319.2 MB, free: 45.55 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/0.009756, allocations: 4 kB / 319.2 MB, free: 45.55 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000139/0.009895, allocations: 63.91 kB / 319.2 MB, free: 45.49 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.009902, allocations: 4 kB / 319.2 MB, free: 45.48 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.983e-05/0.009961, allocations: 19.92 kB / 319.3 MB, free: 45.46 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.031e-05/0.009972, allocations: 12 kB / 319.3 MB, free: 45.45 MB / 282.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.0001267/0.0101, allocations: 222.4 kB / 319.5 MB, free: 45.22 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.456e-05/0.01012, allocations: 27.94 kB / 319.5 MB, free: 45.2 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.916e-05/0.01015, allocations: 20.94 kB / 319.5 MB, free: 45.18 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.01015, allocations: 2.531 kB / 319.5 MB, free: 45.18 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.01016, allocations: 0 / 319.5 MB, free: 45.18 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.01016, allocations: 3.938 kB / 319.6 MB, free: 45.18 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004908/0.01065, allocations: 0.6706 MB / 320.2 MB, free: 44.45 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.01066, allocations: 0 / 320.2 MB, free: 44.45 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001158/0.01077, allocations: 35.98 kB / 320.3 MB, free: 44.41 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.01078, allocations: 12 kB / 320.3 MB, free: 44.4 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.36e-05/0.01079, allocations: 8 kB / 320.3 MB, free: 44.39 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.01079, allocations: 3.984 kB / 320.3 MB, free: 44.39 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.01079, allocations: 0 / 320.3 MB, free: 44.39 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003236/0.01112, allocations: 0.5452 MB / 320.8 MB, free: 43.8 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.757e-05/0.01114, allocations: 11.89 kB / 320.8 MB, free: 43.79 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.504e-05/0.01116, allocations: 12 kB / 320.8 MB, free: 43.77 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.862e-05/0.01122, allocations: 4 kB / 320.9 MB, free: 43.77 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.453e-05/0.01126, allocations: 19.97 kB / 320.9 MB, free: 43.75 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.558e-05/0.01128, allocations: 8 kB / 320.9 MB, free: 43.74 MB / 282.7 MB Notification: Performance of sorting global known variables: time 3.125e-05/0.01131, allocations: 143.9 kB / 321 MB, free: 43.6 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01131, allocations: 0 / 321 MB, free: 43.6 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002018/0.01151, allocations: 56 kB / 321.1 MB, free: 43.55 MB / 282.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.865e-05/0.01159, allocations: 108 kB / 321.2 MB, free: 43.43 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000223/0.01181, allocations: 275.5 kB / 321.5 MB, free: 43.14 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.343e-06/0.01182, allocations: 0 / 321.5 MB, free: 43.14 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 8.425e-05/0.0119, allocations: 176.4 kB / 321.6 MB, free: 42.95 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001831/0.01208, allocations: 27.92 kB / 321.6 MB, free: 42.92 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007673/0.01285, allocations: 0.5544 MB / 322.2 MB, free: 42.34 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.781e-05/0.01289, allocations: 75.98 kB / 322.3 MB, free: 42.24 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.796e-05/0.01293, allocations: 13.48 kB / 322.3 MB, free: 42.23 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.558e-05/0.01296, allocations: 24.5 kB / 322.3 MB, free: 42.2 MB / 282.7 MB Notification: Performance of SimCode: time 9.12e-07/0.01296, allocations: 0 / 322.3 MB, free: 42.2 MB / 282.7 MB Notification: Performance of Templates: time 0.003416/0.01638, allocations: 1.631 MB / 323.9 MB, free: 40.62 MB / 282.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: 3.190252732951194]