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.001926/0.001926, 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.002058/0.002058, 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 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.345/1.345, allocations: 158.6 MB / 184.6 MB, free: 2.906 MB / 170.7 MB " [Timeout remaining time 178] 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.06171/0.06171, allocations: 6.41 MB / 243.3 MB, free: 8.781 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.302e-06/1.302e-06, allocations: 0 / 310 MB, free: 52.25 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.18e-05/2.31e-05, allocations: 5.844 kB / 310 MB, free: 52.25 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.002596/0.002619, allocations: 2.002 MB / 312 MB, free: 50.93 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008756/0.003495, allocations: 0.6019 MB / 312.6 MB, free: 50.52 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.2e-05/0.003567, allocations: 2.938 kB / 312.6 MB, free: 50.52 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 6.268e-05/0.003629, allocations: 26.27 kB / 312.7 MB, free: 50.5 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001346/0.003764, allocations: 48.62 kB / 312.7 MB, free: 50.46 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001983/0.003962, allocations: 67.66 kB / 312.8 MB, free: 50.43 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000226/0.004188, allocations: 231.4 kB / 313 MB, free: 50.31 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001523/0.00434, allocations: 74.47 kB / 313.1 MB, free: 50.27 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001984/0.004539, allocations: 136.9 kB / 313.2 MB, free: 50.21 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001261/0.004665, allocations: 65.56 kB / 313.3 MB, free: 50.2 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.793e-05/0.004703, allocations: 20.62 kB / 313.3 MB, free: 50.2 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.711e-05/0.00474, allocations: 22 kB / 313.3 MB, free: 50.2 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.707e-05/0.004777, allocations: 43.88 kB / 313.3 MB, free: 50.16 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.338e-05/0.00486, allocations: 80.08 kB / 313.4 MB, free: 50.13 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002806/0.005141, allocations: 234.6 kB / 313.7 MB, free: 50.04 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.005144, allocations: 0.5156 kB / 313.7 MB, free: 50.04 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.005145, allocations: 0 / 313.7 MB, free: 50.04 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.005151, allocations: 1.375 kB / 313.7 MB, free: 50.04 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.0006035/0.005754, allocations: 0.5456 MB / 314.2 MB, free: 49.55 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.214e-05/0.005786, allocations: 13.58 kB / 314.2 MB, free: 49.55 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.643e-05/0.005863, allocations: 35.5 kB / 314.2 MB, free: 49.54 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.68e-05/0.005949, allocations: 137.3 kB / 314.4 MB, free: 49.39 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.926e-05/0.005969, allocations: 15.59 kB / 314.4 MB, free: 49.38 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.731e-05/0.006016, allocations: 24.42 kB / 314.4 MB, free: 49.37 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000295/0.006311, allocations: 205.8 kB / 314.6 MB, free: 49.26 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.551e-05/0.006327, allocations: 4.141 kB / 314.6 MB, free: 49.25 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.919e-05/0.006346, allocations: 10.91 kB / 314.6 MB, free: 49.25 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.006353, allocations: 9.375 kB / 314.6 MB, free: 49.24 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002041/0.006557, allocations: 146.6 kB / 314.8 MB, free: 49.18 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000946/0.007503, allocations: 0.6725 MB / 315.5 MB, free: 48.69 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003069/0.00781, allocations: 200.4 kB / 315.7 MB, free: 48.58 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000226/0.008036, allocations: 139.4 kB / 315.8 MB, free: 48.48 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.875e-05/0.008055, allocations: 4 kB / 315.8 MB, free: 48.48 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002223/0.008277, allocations: 222.4 kB / 316 MB, free: 48.25 MB / 282.7 MB Notification: Performance of pre-optimization done (n=22): time 1.372e-06/0.008278, allocations: 4 kB / 316 MB, free: 48.25 MB / 282.7 MB Notification: Performance of matching and sorting (n=25): time 0.001028/0.009307, allocations: 0.8319 MB / 316.9 MB, free: 47.35 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.817e-05/0.009345, allocations: 140.5 kB / 317 MB, free: 47.18 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.17e-05/0.009426, allocations: 208.4 kB / 317.2 MB, free: 46.96 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.443e-05/0.009441, allocations: 29.7 kB / 317.2 MB, free: 46.93 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.895e-05/0.00949, allocations: 191.4 kB / 317.4 MB, free: 46.73 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.381e-05/0.009534, allocations: 91.31 kB / 317.5 MB, free: 46.64 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.971e-05/0.009603, allocations: 75.31 kB / 317.6 MB, free: 46.56 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.351e-05/0.009667, allocations: 0.5079 MB / 318.1 MB, free: 46.04 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.666e-05/0.009764, allocations: 90 kB / 318.2 MB, free: 45.95 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001304/0.009894, allocations: 200.1 kB / 318.4 MB, free: 45.71 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000219/0.01011, allocations: 292.9 kB / 318.6 MB, free: 45.37 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.01012, allocations: 4 kB / 318.7 MB, free: 45.37 MB / 282.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003179/0.01043, allocations: 350.6 kB / 319 MB, free: 45.01 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.275e-05/0.01046, allocations: 29.7 kB / 319 MB, free: 44.97 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.01046, allocations: 8.859 kB / 319 MB, free: 44.96 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.701e-05/0.01048, allocations: 4 kB / 319 MB, free: 44.96 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002045/0.01069, allocations: 67.86 kB / 319.1 MB, free: 44.89 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.835e-06/0.01069, allocations: 7.984 kB / 319.1 MB, free: 44.89 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.195e-05/0.01078, allocations: 12.19 kB / 319.1 MB, free: 44.88 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.373e-05/0.0108, allocations: 16 kB / 319.1 MB, free: 44.86 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.0001544/0.01095, allocations: 219.4 kB / 319.4 MB, free: 44.63 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.45e-05/0.01099, allocations: 31.91 kB / 319.4 MB, free: 44.6 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.034e-05/0.01103, allocations: 20.88 kB / 319.4 MB, free: 44.58 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.01103, allocations: 4 kB / 319.4 MB, free: 44.58 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.01103, allocations: 0 / 319.4 MB, free: 44.58 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.01104, allocations: 7.922 kB / 319.4 MB, free: 44.57 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007008/0.01174, allocations: 0.7408 MB / 320.2 MB, free: 43.77 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.01174, allocations: 3.938 kB / 320.2 MB, free: 43.77 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001842/0.01192, allocations: 35.98 kB / 320.2 MB, free: 43.73 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.01193, allocations: 7.938 kB / 320.2 MB, free: 43.72 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.84e-05/0.01195, allocations: 11.98 kB / 320.2 MB, free: 43.71 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.01195, allocations: 0 / 320.2 MB, free: 43.71 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.01195, allocations: 0 / 320.2 MB, free: 43.71 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004827/0.01243, allocations: 0.6133 MB / 320.8 MB, free: 43.05 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.904e-05/0.01245, allocations: 15.12 kB / 320.8 MB, free: 43.04 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.369e-05/0.01249, allocations: 20.05 kB / 320.9 MB, free: 43.02 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001101/0.0126, allocations: 4 kB / 320.9 MB, free: 43.02 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.334e-05/0.01265, allocations: 15.98 kB / 320.9 MB, free: 43 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.164e-05/0.01267, allocations: 11.98 kB / 320.9 MB, free: 42.99 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.662e-05/0.01273, allocations: 147.2 kB / 321 MB, free: 42.84 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01273, allocations: 0 / 321 MB, free: 42.84 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002852/0.01301, allocations: 48 kB / 321.1 MB, free: 42.8 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 9.421e-05/0.01311, allocations: 112 kB / 321.2 MB, free: 42.68 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003071/0.01341, allocations: 338.9 kB / 321.5 MB, free: 42.32 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.01342, allocations: 0 / 321.5 MB, free: 42.32 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001358/0.01355, allocations: 210.9 kB / 321.7 MB, free: 42.1 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002524/0.0138, allocations: 16.56 kB / 321.7 MB, free: 42.08 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007225/0.01453, allocations: 0.5674 MB / 322.3 MB, free: 41.48 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.757e-05/0.01459, allocations: 120.2 kB / 322.4 MB, free: 41.34 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 4.599e-05/0.01464, allocations: 17.48 kB / 322.4 MB, free: 41.32 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.912e-05/0.01469, allocations: 16.5 kB / 322.5 MB, free: 41.31 MB / 282.7 MB Notification: Performance of SimCode: time 4.71e-07/0.01469, allocations: 3.938 kB / 322.5 MB, free: 41.3 MB / 282.7 MB Notification: Performance of Templates: time 0.004961/0.01965, allocations: 1.637 MB / 324.1 MB, free: 39.73 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: 4.29619575093966]