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.001315/0.001315, allocations: 100.3 kB / 19.7 MB, free: 2.012 MB / 14.72 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.001531/0.001531, allocations: 218.2 kB / 22.99 MB, free: 4.914 MB / 14.72 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.365/1.365, allocations: 207.7 MB / 233.8 MB, free: 9.805 MB / 190.1 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.05125/0.05125, allocations: 8.189 MB / 294.3 MB, free: 13.48 MB / 238.1 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: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaByExample requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002314/0.002314, allocations: 77.08 kB / 411.7 MB, free: 46.49 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06772/0.07003, allocations: 50.94 MB / 462.6 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.003538/0.07357, allocations: 1.895 MB / 464.5 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001287/0.07485, allocations: 0.5932 MB / 465.1 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001036/0.07496, allocations: 7.938 kB / 465.1 MB, free: 10.28 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001145/0.07507, allocations: 23.72 kB / 465.1 MB, free: 10.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001384/0.07521, allocations: 51.55 kB / 465.2 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002453/0.07546, allocations: 63.86 kB / 465.3 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003072/0.07576, allocations: 215.2 kB / 465.5 MB, free: 9.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000244/0.07601, allocations: 78.28 kB / 465.5 MB, free: 9.855 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001801/0.07619, allocations: 95.64 kB / 465.6 MB, free: 9.762 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001699/0.07636, allocations: 71.69 kB / 465.7 MB, free: 9.691 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.821e-05/0.0764, allocations: 27.94 kB / 465.7 MB, free: 9.664 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.005e-05/0.07644, allocations: 24 kB / 465.8 MB, free: 9.641 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.859e-05/0.07648, allocations: 35.91 kB / 465.8 MB, free: 9.605 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001931/0.07668, allocations: 91.64 kB / 465.9 MB, free: 9.516 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002845/0.07696, allocations: 235 kB / 466.1 MB, free: 9.285 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.07697, allocations: 0 / 466.1 MB, free: 9.285 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.07697, allocations: 0 / 466.1 MB, free: 9.285 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.348e-06/0.07698, allocations: 0 / 466.1 MB, free: 9.285 MB / 334.1 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.000867/0.07784, allocations: 439.7 kB / 466.5 MB, free: 8.816 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.96e-05/0.07788, allocations: 11.98 kB / 466.6 MB, free: 8.805 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.826e-05/0.07796, allocations: 24.8 kB / 466.6 MB, free: 8.781 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001376/0.0781, allocations: 122.3 kB / 466.7 MB, free: 8.637 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.912e-05/0.07812, allocations: 20.75 kB / 466.7 MB, free: 8.617 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.718e-05/0.0782, allocations: 28.25 kB / 466.7 MB, free: 8.59 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003704/0.07857, allocations: 216.1 kB / 467 MB, free: 8.367 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.537e-05/0.07859, allocations: 3.984 kB / 467 MB, free: 8.363 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.952e-05/0.07861, allocations: 8 kB / 467 MB, free: 8.355 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.134e-06/0.07862, allocations: 4 kB / 467 MB, free: 8.352 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002766/0.07889, allocations: 146.8 kB / 467.1 MB, free: 8.203 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001304/0.0802, allocations: 0.5701 MB / 467.7 MB, free: 7.594 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004068/0.0806, allocations: 180.2 kB / 467.9 MB, free: 7.402 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003037/0.08091, allocations: 130.7 kB / 468 MB, free: 7.266 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.139e-05/0.08093, allocations: 11.86 kB / 468 MB, free: 7.254 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003537/0.08128, allocations: 212.6 kB / 468.2 MB, free: 7.016 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.563e-06/0.08128, allocations: 4 kB / 468.2 MB, free: 7.012 MB / 334.1 MB Notification: Performance of matching and sorting (n=25): time 0.001516/0.0828, allocations: 0.7845 MB / 469 MB, free: 6.152 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000122/0.08292, allocations: 144.4 kB / 469.1 MB, free: 5.98 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001164/0.08304, allocations: 137.7 kB / 469.3 MB, free: 5.836 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.464e-05/0.08307, allocations: 33.7 kB / 469.3 MB, free: 5.797 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001321/0.08321, allocations: 136.7 kB / 469.4 MB, free: 5.656 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.489e-05/0.08328, allocations: 79.33 kB / 469.5 MB, free: 5.578 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.133e-05/0.08336, allocations: 61.66 kB / 469.6 MB, free: 5.512 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.08351, allocations: 330.8 kB / 469.9 MB, free: 5.18 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001627/0.08367, allocations: 90 kB / 470 MB, free: 5.082 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001926/0.08386, allocations: 166.1 kB / 470.1 MB, free: 4.887 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000381/0.08424, allocations: 260.2 kB / 470.4 MB, free: 4.594 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-06/0.08424, allocations: 0 / 470.4 MB, free: 4.594 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005297/0.08477, allocations: 329.9 kB / 470.7 MB, free: 4.254 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.774e-05/0.08481, allocations: 37.69 kB / 470.8 MB, free: 4.211 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.08482, allocations: 4 kB / 470.8 MB, free: 4.207 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.747e-05/0.08484, allocations: 7.938 kB / 470.8 MB, free: 4.199 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002125/0.08505, allocations: 63.84 kB / 470.8 MB, free: 4.137 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.166e-06/0.08506, allocations: 4 kB / 470.8 MB, free: 4.133 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001309/0.08519, allocations: 12.25 kB / 470.9 MB, free: 4.121 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.752e-05/0.08521, allocations: 19.94 kB / 470.9 MB, free: 4.102 MB / 334.1 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.0002296/0.08544, allocations: 175.4 kB / 471 MB, free: 3.914 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.912e-05/0.08547, allocations: 15.91 kB / 471.1 MB, free: 3.898 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.813e-05/0.08552, allocations: 16.94 kB / 471.1 MB, free: 3.879 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-05/0.08554, allocations: 3.938 kB / 471.1 MB, free: 3.875 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.08554, allocations: 7.984 kB / 471.1 MB, free: 3.867 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.08555, allocations: 0 / 471.1 MB, free: 3.867 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001068/0.08661, allocations: 0.6473 MB / 471.7 MB, free: 3.164 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.858e-06/0.08662, allocations: 4 kB / 471.7 MB, free: 3.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002219/0.08684, allocations: 35.98 kB / 471.8 MB, free: 3.125 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.632e-06/0.08685, allocations: 3.984 kB / 471.8 MB, free: 3.121 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.936e-05/0.08686, allocations: 8 kB / 471.8 MB, free: 3.113 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.08687, allocations: 4 kB / 471.8 MB, free: 3.109 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.08687, allocations: 0 / 471.8 MB, free: 3.109 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007778/0.08765, allocations: 0.5408 MB / 472.3 MB, free: 2.527 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.898e-05/0.08767, allocations: 7.953 kB / 472.3 MB, free: 2.52 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.92e-05/0.08771, allocations: 20.09 kB / 472.4 MB, free: 2.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001452/0.08785, allocations: 8 kB / 472.4 MB, free: 2.492 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.284e-05/0.08793, allocations: 15.97 kB / 472.4 MB, free: 2.477 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.929e-05/0.08796, allocations: 11.98 kB / 472.4 MB, free: 2.465 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.244e-05/0.08804, allocations: 100.8 kB / 472.5 MB, free: 2.367 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.08804, allocations: 0 / 472.5 MB, free: 2.367 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003191/0.08835, allocations: 52 kB / 472.5 MB, free: 2.316 MB / 334.1 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.0001539/0.08851, allocations: 114 kB / 472.7 MB, free: 2.199 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004743/0.08898, allocations: 299.2 kB / 472.9 MB, free: 1.883 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.08898, allocations: 0 / 472.9 MB, free: 1.883 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002728/0.08926, allocations: 188.9 kB / 473.1 MB, free: 1.68 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000272/0.08953, allocations: 17.19 kB / 473.1 MB, free: 1.664 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001198/0.09073, allocations: 0.6607 MB / 473.8 MB, free: 0.957 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001535/0.09088, allocations: 124.1 kB / 473.9 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.732e-05/0.09093, allocations: 15.44 kB / 473.9 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of SimCode: time 3.41e-07/0.09093, allocations: 3.938 kB / 473.9 MB, free: 0.793 MB / 334.1 MB Notification: Performance of Templates: time 0.0048/0.09573, allocations: 2.231 MB / 476.2 MB, free: 14.56 MB / 350.1 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=480 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.584379616193473] Failed to read output from testmodel.py, exit status != 0: 0.1042544711381197 0.12296166200000001 0.042358101 Calling exit ...