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.001222/0.001222, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001561/0.002783, allocations: 440 kB / 10.41 MB, free: 284 kB / 10.45 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.0007578/0.0007578, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009943/0.001752, allocations: 475.6 kB / 11.79 MB, free: 2.375 MB / 13.93 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.057/1.057, allocations: 158.6 MB / 171.2 MB, free: 2.512 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1797/1.236, allocations: 49.5 MB / 220.7 MB, free: 1.359 MB / 218.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.03332/0.03332, allocations: 6.415 MB / 227.8 MB, free: 10.22 MB / 234.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.006229/0.03955, allocations: 2.173 MB / 230 MB, free: 8.039 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.743e-06/1.743e-06, allocations: 0 / 231.2 MB, free: 6.82 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.963e-05/3.137e-05, allocations: 2.312 kB / 231.2 MB, free: 6.816 MB / 234.7 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.002781/0.002812, allocations: 2.077 MB / 233.3 MB, free: 4.723 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009131/0.003725, allocations: 0.6199 MB / 233.9 MB, free: 4.094 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.108e-05/0.003817, allocations: 4 kB / 233.9 MB, free: 4.09 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 6.991e-05/0.003886, allocations: 27.72 kB / 233.9 MB, free: 4.062 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001049/0.003991, allocations: 43.56 kB / 234 MB, free: 4.02 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002106/0.004202, allocations: 71.78 kB / 234.1 MB, free: 3.949 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003225/0.004524, allocations: 227 kB / 234.3 MB, free: 3.727 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000188/0.004712, allocations: 71.03 kB / 234.3 MB, free: 3.66 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000223/0.004935, allocations: 143.7 kB / 234.5 MB, free: 3.52 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001359/0.005071, allocations: 67.78 kB / 234.6 MB, free: 3.453 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.08e-05/0.005112, allocations: 20 kB / 234.6 MB, free: 3.434 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.729e-05/0.005139, allocations: 24 kB / 234.6 MB, free: 3.41 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 4.091e-05/0.00518, allocations: 27.94 kB / 234.6 MB, free: 3.383 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 6.868e-05/0.005249, allocations: 67.88 kB / 234.7 MB, free: 3.316 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002222/0.005471, allocations: 135.5 kB / 234.8 MB, free: 3.184 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.896e-05/0.00549, allocations: 4 kB / 234.8 MB, free: 3.18 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.005492, allocations: 0 / 234.8 MB, free: 3.18 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.256e-05/0.005504, allocations: 0 / 234.8 MB, free: 3.18 MB / 234.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.0007896/0.006294, allocations: 453.8 kB / 235.3 MB, free: 2.703 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.006336, allocations: 15.89 kB / 235.3 MB, free: 2.688 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.131e-05/0.006397, allocations: 36.91 kB / 235.3 MB, free: 2.652 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001254/0.006523, allocations: 125.5 kB / 235.4 MB, free: 2.504 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.141e-05/0.006544, allocations: 16.75 kB / 235.5 MB, free: 2.488 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.357e-05/0.006578, allocations: 24.38 kB / 235.5 MB, free: 2.465 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001907/0.006768, allocations: 168.7 kB / 235.6 MB, free: 2.289 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.00678, allocations: 192 / 235.6 MB, free: 2.289 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.669e-05/0.006797, allocations: 8.375 kB / 235.7 MB, free: 2.281 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.316e-05/0.00681, allocations: 7.938 kB / 235.7 MB, free: 2.273 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.545e-05/0.006905, allocations: 87.67 kB / 235.8 MB, free: 2.184 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007081/0.007613, allocations: 485.4 kB / 236.2 MB, free: 1.68 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002206/0.007834, allocations: 152.1 kB / 236.4 MB, free: 1.516 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001249/0.007959, allocations: 98.5 kB / 236.5 MB, free: 1.41 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.119e-05/0.00797, allocations: 4 kB / 236.5 MB, free: 1.406 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002355/0.008205, allocations: 196.4 kB / 236.7 MB, free: 1.184 MB / 234.7 MB Notification: Performance of pre-optimization done (n=22): time 5.952e-06/0.008211, allocations: 0 / 236.7 MB, free: 1.184 MB / 234.7 MB Notification: Performance of matching and sorting (n=25): time 0.0009478/0.009159, allocations: 0.6675 MB / 237.3 MB, free: 452 kB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.207e-05/0.009241, allocations: 178.1 kB / 237.5 MB, free: 236 kB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000103/0.009344, allocations: 142.5 kB / 237.6 MB, free: 80 kB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.96e-05/0.009364, allocations: 29.7 kB / 237.7 MB, free: 44 kB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.624e-05/0.00945, allocations: 136.7 kB / 237.8 MB, free: 15.91 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.627e-05/0.009496, allocations: 87.3 kB / 237.9 MB, free: 15.82 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.706e-05/0.009553, allocations: 57.69 kB / 237.9 MB, free: 15.76 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.00967, allocations: 326.8 kB / 238.3 MB, free: 15.43 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.256e-05/0.009722, allocations: 54.02 kB / 238.3 MB, free: 15.37 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.399e-05/0.009806, allocations: 126.2 kB / 238.4 MB, free: 15.21 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001664/0.009973, allocations: 223.2 kB / 238.7 MB, free: 14.95 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.009975, allocations: 0 / 238.7 MB, free: 14.95 MB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0001951/0.01017, allocations: 233.7 kB / 238.9 MB, free: 14.71 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.974e-05/0.01022, allocations: 33.7 kB / 238.9 MB, free: 14.67 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.01023, allocations: 0 / 238.9 MB, free: 14.67 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.737e-05/0.01025, allocations: 4 kB / 238.9 MB, free: 14.66 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002054/0.01045, allocations: 84.59 kB / 239 MB, free: 14.58 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.01046, allocations: 4 kB / 239 MB, free: 14.58 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.233e-05/0.01052, allocations: 11.95 kB / 239 MB, free: 14.57 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.479e-05/0.01053, allocations: 12 kB / 239 MB, free: 14.55 MB / 250.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.0001782/0.01071, allocations: 175.4 kB / 239.2 MB, free: 14.37 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.055e-05/0.01074, allocations: 23.98 kB / 239.2 MB, free: 14.34 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.407e-05/0.01078, allocations: 16.92 kB / 239.2 MB, free: 14.32 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.01078, allocations: 4 kB / 239.3 MB, free: 14.32 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.01078, allocations: 0 / 239.3 MB, free: 14.32 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.01079, allocations: 0 / 239.3 MB, free: 14.32 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005018/0.01129, allocations: 471.5 kB / 239.7 MB, free: 13.82 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.01129, allocations: 64 / 239.7 MB, free: 13.82 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001522/0.01144, allocations: 56.03 kB / 239.8 MB, free: 13.76 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.021e-05/0.01146, allocations: 15.89 kB / 239.8 MB, free: 13.75 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.815e-06/0.01147, allocations: 7.938 kB / 239.8 MB, free: 13.74 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.549e-05/0.01149, allocations: 8 kB / 239.8 MB, free: 13.73 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.01149, allocations: 3.984 kB / 239.8 MB, free: 13.73 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.01149, allocations: 0 / 239.8 MB, free: 13.73 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003134/0.01181, allocations: 414 kB / 240.2 MB, free: 13.28 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.444e-05/0.01183, allocations: 11.94 kB / 240.2 MB, free: 13.27 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.861e-05/0.0119, allocations: 19.92 kB / 240.2 MB, free: 13.25 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.692e-05/0.01195, allocations: 11.98 kB / 240.3 MB, free: 13.24 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.306e-05/0.01197, allocations: 8.031 kB / 240.3 MB, free: 13.23 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.286e-05/0.012, allocations: 32.77 kB / 240.3 MB, free: 13.2 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.012, allocations: 0 / 240.3 MB, free: 13.2 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001945/0.0122, allocations: 52 kB / 240.3 MB, free: 13.14 MB / 250.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 0.0001284/0.01232, allocations: 92.34 kB / 240.4 MB, free: 13.05 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002322/0.01256, allocations: 248.5 kB / 240.7 MB, free: 12.78 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.531e-05/0.01257, allocations: 8.172 kB / 240.7 MB, free: 12.77 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001202/0.01269, allocations: 177.8 kB / 240.9 MB, free: 12.57 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002192/0.01291, allocations: 91.39 kB / 240.9 MB, free: 12.47 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002726/0.01564, allocations: 0.4994 MB / 241.4 MB, free: 11.93 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.61e-05/0.0157, allocations: 79.98 kB / 241.5 MB, free: 11.84 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 7.426e-05/0.01578, allocations: 13.48 kB / 241.5 MB, free: 11.82 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001168/0.01589, allocations: 83.36 kB / 241.6 MB, free: 11.74 MB / 250.7 MB Notification: Performance of SimCode: time 1.362e-06/0.0159, allocations: 3.938 kB / 241.6 MB, free: 11.74 MB / 250.7 MB Notification: Performance of Templates: time 0.00447/0.02037, allocations: 1.79 MB / 243.4 MB, free: 9.945 MB / 250.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.7465261220932007]