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.001/0.001, allocations: 92.22 kB / 19.65 MB, free: 276 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.001213/0.001213, allocations: 169 kB / 23.02 MB, free: 1.551 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.9027/0.9027, allocations: 158.6 MB / 184.9 MB, free: 2.914 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.04373/0.04373, allocations: 6.416 MB / 243.6 MB, free: 8.723 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.573e-06/1.573e-06, allocations: 0 / 310.7 MB, free: 51.98 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.086e-05/3.243e-05, allocations: 4.984 kB / 310.7 MB, free: 51.97 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.002686/0.002718, allocations: 2.026 MB / 312.8 MB, free: 50.66 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008958/0.003614, allocations: 0.6128 MB / 313.4 MB, free: 50.24 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.005e-05/0.003704, allocations: 4.281 kB / 313.4 MB, free: 50.24 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 6.685e-05/0.003771, allocations: 24.83 kB / 313.4 MB, free: 50.23 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001353/0.003906, allocations: 52.56 kB / 313.5 MB, free: 50.19 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002316/0.004138, allocations: 66.19 kB / 313.5 MB, free: 50.15 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000208/0.004346, allocations: 228.9 kB / 313.8 MB, free: 50.04 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001682/0.004514, allocations: 69.14 kB / 313.8 MB, free: 50.01 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001918/0.004706, allocations: 135.5 kB / 314 MB, free: 49.95 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001074/0.004813, allocations: 67.34 kB / 314 MB, free: 49.93 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.32e-05/0.004847, allocations: 20.62 kB / 314 MB, free: 49.93 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.662e-05/0.004873, allocations: 22 kB / 314.1 MB, free: 49.93 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.437e-05/0.004907, allocations: 39.47 kB / 314.1 MB, free: 49.9 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.239e-05/0.00498, allocations: 75.19 kB / 314.2 MB, free: 49.87 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001809/0.005161, allocations: 160.2 kB / 314.3 MB, free: 49.79 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.005163, allocations: 0 / 314.3 MB, free: 49.79 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.005164, allocations: 1.375 kB / 314.3 MB, free: 49.79 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.438e-06/0.005169, allocations: 0 / 314.3 MB, free: 49.79 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.0005073/0.005676, allocations: 0.5292 MB / 314.9 MB, free: 49.31 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.005714, allocations: 17.58 kB / 314.9 MB, free: 49.3 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.454e-05/0.005779, allocations: 33.47 kB / 314.9 MB, free: 49.29 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.77e-05/0.005866, allocations: 128.5 kB / 315 MB, free: 49.14 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.143e-05/0.005888, allocations: 17.75 kB / 315.1 MB, free: 49.14 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.943e-05/0.005927, allocations: 23.5 kB / 315.1 MB, free: 49.13 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002222/0.006149, allocations: 175.6 kB / 315.2 MB, free: 49.03 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.317e-05/0.006163, allocations: 4.141 kB / 315.2 MB, free: 49.03 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.787e-05/0.00618, allocations: 11.34 kB / 315.3 MB, free: 49.02 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.36e-05/0.006194, allocations: 10.69 kB / 315.3 MB, free: 49.02 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000138/0.006332, allocations: 100.8 kB / 315.4 MB, free: 48.98 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007897/0.007122, allocations: 0.6074 MB / 316 MB, free: 48.52 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002252/0.007347, allocations: 164.5 kB / 316.1 MB, free: 48.36 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001242/0.007471, allocations: 109.3 kB / 316.2 MB, free: 48.24 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.049e-05/0.007482, allocations: 4 kB / 316.2 MB, free: 48.23 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001491/0.007631, allocations: 208.2 kB / 316.5 MB, free: 48 MB / 282.7 MB Notification: Performance of pre-optimization done (n=22): time 1.443e-06/0.007632, allocations: 0 / 316.5 MB, free: 48 MB / 282.7 MB Notification: Performance of matching and sorting (n=25): time 0.000788/0.00842, allocations: 0.743 MB / 317.2 MB, free: 47.18 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.434e-05/0.008464, allocations: 148.4 kB / 317.3 MB, free: 47.01 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.623e-05/0.008541, allocations: 189.8 kB / 317.5 MB, free: 46.8 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.111e-05/0.008552, allocations: 29.7 kB / 317.6 MB, free: 46.77 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.733e-05/0.008599, allocations: 183.4 kB / 317.7 MB, free: 46.58 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.368e-05/0.008633, allocations: 83.33 kB / 317.8 MB, free: 46.5 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.476e-05/0.008688, allocations: 67.3 kB / 317.9 MB, free: 46.43 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.775e-05/0.008735, allocations: 0.5 MB / 318.4 MB, free: 45.91 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.84e-05/0.008794, allocations: 66 kB / 318.4 MB, free: 45.84 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.124e-05/0.008875, allocations: 163.6 kB / 318.6 MB, free: 45.64 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001583/0.009033, allocations: 240.9 kB / 318.8 MB, free: 45.35 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.009036, allocations: 4 kB / 318.8 MB, free: 45.35 MB / 282.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002331/0.009269, allocations: 294.7 kB / 319.1 MB, free: 45.04 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.253e-05/0.009291, allocations: 33.7 kB / 319.2 MB, free: 45 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.009297, allocations: 7.938 kB / 319.2 MB, free: 45 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.805e-05/0.009315, allocations: 5.406 kB / 319.2 MB, free: 44.99 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001396/0.009455, allocations: 63.91 kB / 319.2 MB, free: 44.93 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.101e-06/0.009461, allocations: 0 / 319.2 MB, free: 44.93 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.928e-05/0.00952, allocations: 19.94 kB / 319.3 MB, free: 44.91 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.183e-05/0.009532, allocations: 12.23 kB / 319.3 MB, free: 44.9 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.0001184/0.009651, allocations: 221.3 kB / 319.5 MB, free: 44.67 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.544e-05/0.009676, allocations: 27.91 kB / 319.5 MB, free: 44.64 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.704e-05/0.009703, allocations: 16.94 kB / 319.5 MB, free: 44.63 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.009706, allocations: 4 kB / 319.5 MB, free: 44.62 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.009711, allocations: 4 kB / 319.5 MB, free: 44.62 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.009716, allocations: 3.938 kB / 319.5 MB, free: 44.62 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005033/0.01022, allocations: 0.6685 MB / 320.2 MB, free: 43.89 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.01022, allocations: 0 / 320.2 MB, free: 43.89 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001121/0.01033, allocations: 39.92 kB / 320.2 MB, free: 43.85 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.01034, allocations: 7.938 kB / 320.3 MB, free: 43.84 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.415e-05/0.01035, allocations: 8 kB / 320.3 MB, free: 43.84 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.01035, allocations: 0 / 320.3 MB, free: 43.84 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.01036, allocations: 7.984 kB / 320.3 MB, free: 43.83 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003326/0.01069, allocations: 0.543 MB / 320.8 MB, free: 43.24 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.495e-05/0.0107, allocations: 11.89 kB / 320.8 MB, free: 43.23 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.343e-05/0.01073, allocations: 8 kB / 320.8 MB, free: 43.22 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.996e-05/0.01079, allocations: 12.03 kB / 320.8 MB, free: 43.21 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.571e-05/0.01083, allocations: 23.89 kB / 320.9 MB, free: 43.18 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.713e-05/0.01085, allocations: 12 kB / 320.9 MB, free: 43.17 MB / 282.7 MB Notification: Performance of sorting global known variables: time 3.134e-05/0.01088, allocations: 136.4 kB / 321 MB, free: 43.04 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01088, allocations: 0 / 321 MB, free: 43.04 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002031/0.01109, allocations: 52 kB / 321.1 MB, free: 42.99 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 8.944e-05/0.01117, allocations: 122.9 kB / 321.2 MB, free: 42.86 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002254/0.0114, allocations: 268.7 kB / 321.4 MB, free: 42.57 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.0114, allocations: 4.062 kB / 321.5 MB, free: 42.57 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 8.964e-05/0.01149, allocations: 178 kB / 321.6 MB, free: 42.38 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001919/0.01168, allocations: 23.92 kB / 321.6 MB, free: 42.36 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007913/0.01247, allocations: 0.5414 MB / 322.2 MB, free: 41.79 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.892e-05/0.01251, allocations: 75.98 kB / 322.3 MB, free: 41.69 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.67e-05/0.01255, allocations: 21.48 kB / 322.3 MB, free: 41.67 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.564e-05/0.01259, allocations: 16.5 kB / 322.3 MB, free: 41.65 MB / 282.7 MB Notification: Performance of SimCode: time 6.11e-07/0.01259, allocations: 0 / 322.3 MB, free: 41.65 MB / 282.7 MB Notification: Performance of Templates: time 0.003147/0.01573, allocations: 1.641 MB / 323.9 MB, free: 40.07 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.062610562890768]