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.000967/0.000967, allocations: 93.06 kB / 19.65 MB, free: 280 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.0009905/0.0009905, 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.9836/0.9836, allocations: 158.6 MB / 184.9 MB, free: 2.918 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.02984/0.02984, allocations: 6.409 MB / 243.7 MB, free: 8.719 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.753e-06/1.753e-06, allocations: 0 / 310.7 MB, free: 51.98 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.288e-05/3.463e-05, allocations: 6.141 kB / 310.8 MB, free: 51.98 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.002676/0.002711, allocations: 2.023 MB / 312.8 MB, free: 50.67 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009684/0.003679, allocations: 0.6091 MB / 313.4 MB, free: 50.26 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001039/0.003783, allocations: 3.906 kB / 313.4 MB, free: 50.26 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 8.265e-05/0.003866, allocations: 25.41 kB / 313.4 MB, free: 50.24 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001771/0.004043, allocations: 52.16 kB / 313.5 MB, free: 50.2 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003074/0.004351, allocations: 66.92 kB / 313.5 MB, free: 50.16 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002914/0.004642, allocations: 232.4 kB / 313.8 MB, free: 50.05 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001735/0.004815, allocations: 66.22 kB / 313.8 MB, free: 50.02 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002575/0.005073, allocations: 138.3 kB / 314 MB, free: 49.96 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000122/0.005195, allocations: 72.55 kB / 314 MB, free: 49.93 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.288e-05/0.005238, allocations: 21.91 kB / 314 MB, free: 49.93 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.937e-05/0.005267, allocations: 20.59 kB / 314.1 MB, free: 49.93 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.81e-05/0.005305, allocations: 36.7 kB / 314.1 MB, free: 49.91 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.993e-05/0.005395, allocations: 79.03 kB / 314.2 MB, free: 49.88 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002141/0.005609, allocations: 145.2 kB / 314.3 MB, free: 49.8 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.134e-06/0.005611, allocations: 1.969 kB / 314.3 MB, free: 49.8 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.005613, allocations: 0 / 314.3 MB, free: 49.8 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.181e-06/0.005619, allocations: 0 / 314.3 MB, free: 49.8 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.0005245/0.006143, allocations: 0.5354 MB / 314.9 MB, free: 49.32 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.006183, allocations: 14.61 kB / 314.9 MB, free: 49.31 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.242e-05/0.006256, allocations: 35.44 kB / 314.9 MB, free: 49.3 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.783e-05/0.006344, allocations: 136.2 kB / 315 MB, free: 49.15 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.79e-05/0.006362, allocations: 13.88 kB / 315.1 MB, free: 49.14 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.597e-05/0.006397, allocations: 24.53 kB / 315.1 MB, free: 49.14 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002203/0.006618, allocations: 171 kB / 315.2 MB, free: 49.04 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/0.006632, allocations: 5.516 kB / 315.3 MB, free: 49.04 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.57e-05/0.006647, allocations: 9.75 kB / 315.3 MB, free: 49.03 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.809e-06/0.006657, allocations: 13.44 kB / 315.3 MB, free: 49.02 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001359/0.006793, allocations: 99.52 kB / 315.4 MB, free: 48.98 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007534/0.007547, allocations: 0.6102 MB / 316 MB, free: 48.52 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002138/0.00776, allocations: 164.8 kB / 316.1 MB, free: 48.34 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001256/0.007886, allocations: 105.3 kB / 316.2 MB, free: 48.23 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.596e-06/0.007895, allocations: 4 kB / 316.3 MB, free: 48.23 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000151/0.008046, allocations: 220.2 kB / 316.5 MB, free: 47.98 MB / 282.7 MB Notification: Performance of pre-optimization done (n=22): time 2.334e-06/0.008048, allocations: 0 / 316.5 MB, free: 47.98 MB / 282.7 MB Notification: Performance of matching and sorting (n=25): time 0.0007763/0.008824, allocations: 0.739 MB / 317.2 MB, free: 47.17 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.759e-05/0.008862, allocations: 140.5 kB / 317.3 MB, free: 47 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.013e-05/0.008922, allocations: 193.8 kB / 317.5 MB, free: 46.79 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.649e-06/0.008932, allocations: 29.7 kB / 317.6 MB, free: 46.76 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.598e-05/0.008978, allocations: 183.4 kB / 317.7 MB, free: 46.57 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.248e-05/0.00901, allocations: 83.28 kB / 317.8 MB, free: 46.49 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.037e-05/0.009061, allocations: 67.3 kB / 317.9 MB, free: 46.41 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.636e-05/0.009107, allocations: 0.5 MB / 318.4 MB, free: 45.9 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.305e-05/0.00916, allocations: 70 kB / 318.5 MB, free: 45.82 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.982e-05/0.00924, allocations: 163.5 kB / 318.6 MB, free: 45.62 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001509/0.009391, allocations: 236.9 kB / 318.8 MB, free: 45.34 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.009393, allocations: 8 kB / 318.9 MB, free: 45.33 MB / 282.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002261/0.009619, allocations: 294.7 kB / 319.1 MB, free: 45.03 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.335e-05/0.009642, allocations: 29.7 kB / 319.2 MB, free: 44.99 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.742e-06/0.009649, allocations: 4 kB / 319.2 MB, free: 44.99 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.009663, allocations: 4 kB / 319.2 MB, free: 44.98 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001475/0.009811, allocations: 67.91 kB / 319.2 MB, free: 44.92 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.009818, allocations: 4.25 kB / 319.2 MB, free: 44.91 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.748e-05/0.009875, allocations: 15.94 kB / 319.3 MB, free: 44.9 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.085e-05/0.009886, allocations: 8 kB / 319.3 MB, free: 44.89 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.0001124/0.009998, allocations: 227.8 kB / 319.5 MB, free: 44.65 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.414e-05/0.01002, allocations: 27.91 kB / 319.5 MB, free: 44.62 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.533e-05/0.01005, allocations: 12.94 kB / 319.5 MB, free: 44.62 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.798e-06/0.01005, allocations: 5.219 kB / 319.5 MB, free: 44.61 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.01006, allocations: 0 / 319.5 MB, free: 44.61 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.01006, allocations: 3.938 kB / 319.5 MB, free: 44.61 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004671/0.01053, allocations: 0.6745 MB / 320.2 MB, free: 43.88 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.01053, allocations: 0 / 320.2 MB, free: 43.88 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001093/0.01064, allocations: 43.98 kB / 320.3 MB, free: 43.83 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.496e-06/0.01064, allocations: 3.938 kB / 320.3 MB, free: 43.83 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.381e-05/0.01065, allocations: 4 kB / 320.3 MB, free: 43.82 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/0.01066, allocations: 0 / 320.3 MB, free: 43.82 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.01066, allocations: 4 kB / 320.3 MB, free: 43.82 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003143/0.01097, allocations: 0.5431 MB / 320.8 MB, free: 43.23 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.292e-05/0.01099, allocations: 18.56 kB / 320.8 MB, free: 43.21 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.24e-05/0.01101, allocations: 8 kB / 320.8 MB, free: 43.21 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.841e-05/0.01107, allocations: 12 kB / 320.9 MB, free: 43.2 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.081e-05/0.01111, allocations: 15.97 kB / 320.9 MB, free: 43.18 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.652e-05/0.01113, allocations: 12 kB / 320.9 MB, free: 43.17 MB / 282.7 MB Notification: Performance of sorting global known variables: time 2.755e-05/0.01115, allocations: 136.4 kB / 321 MB, free: 43.04 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01115, allocations: 0 / 321 MB, free: 43.04 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001873/0.01134, allocations: 59.94 kB / 321.1 MB, free: 42.98 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.024e-05/0.01142, allocations: 116.6 kB / 321.2 MB, free: 42.86 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002179/0.01164, allocations: 273.9 kB / 321.5 MB, free: 42.56 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.01164, allocations: 0 / 321.5 MB, free: 42.56 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 8.101e-05/0.01172, allocations: 181.9 kB / 321.6 MB, free: 42.37 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001757/0.0119, allocations: 19.94 kB / 321.7 MB, free: 42.35 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007516/0.01265, allocations: 0.5523 MB / 322.2 MB, free: 41.77 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.77e-05/0.01269, allocations: 79.98 kB / 322.3 MB, free: 41.67 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.623e-05/0.01272, allocations: 17.48 kB / 322.3 MB, free: 41.66 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.659e-05/0.01276, allocations: 16.5 kB / 322.3 MB, free: 41.64 MB / 282.7 MB Notification: Performance of SimCode: time 8.42e-07/0.01276, allocations: 0 / 322.3 MB, free: 41.64 MB / 282.7 MB Notification: Performance of Templates: time 0.003247/0.01601, allocations: 1.682 MB / 324 MB, free: 40 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: 2.929872868116945]