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.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001353/0.001353, allocations: 103.4 kB / 18.19 MB, free: 4.117 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001314/0.001314, allocations: 193.9 kB / 21.34 MB, free: 0.9766 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.444/1.444, allocations: 207.6 MB / 231.9 MB, free: 3.211 MB / 174.1 MB [Timeout remaining time 88] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.05377/0.05377, allocations: 8.214 MB / 292.2 MB, free: 7.133 MB / 238.1 MB [Timeout remaining time 90] 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter") translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter") [Timeout 660] Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.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.002254/0.002254, allocations: 71.89 kB / 408.9 MB, free: 15.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2433/0.2456, allocations: 50.89 MB / 459.8 MB, free: 3.906 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.00266/0.2483, allocations: 2.004 MB / 461.8 MB, free: 2.336 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008481/0.2491, allocations: 0.6229 MB / 462.4 MB, free: 1.832 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.088e-05/0.2492, allocations: 2.75 kB / 462.4 MB, free: 1.832 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 7.52e-05/0.2492, allocations: 27.84 kB / 462.5 MB, free: 1.809 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001518/0.2494, allocations: 43.69 kB / 462.5 MB, free: 1.77 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001877/0.2496, allocations: 65.48 kB / 462.6 MB, free: 1.715 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002049/0.2498, allocations: 223.1 kB / 462.8 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001514/0.2499, allocations: 86.45 kB / 462.9 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000123/0.2501, allocations: 83.52 kB / 463 MB, free: 1.477 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001449/0.2502, allocations: 93.73 kB / 463 MB, free: 1.41 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.223e-05/0.2502, allocations: 21.19 kB / 463.1 MB, free: 1.41 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.555e-05/0.2503, allocations: 20.88 kB / 463.1 MB, free: 1.41 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.471e-05/0.2503, allocations: 41.7 kB / 463.1 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.726e-05/0.2504, allocations: 102.6 kB / 463.2 MB, free: 1.309 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001998/0.2506, allocations: 233.8 kB / 463.5 MB, free: 1.137 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.2506, allocations: 0 / 463.5 MB, free: 1.137 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.2506, allocations: 0 / 463.5 MB, free: 1.137 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.52e-06/0.2506, allocations: 5.062 kB / 463.5 MB, free: 1.133 MB / 318.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.0006343/0.2512, allocations: 0.4965 MB / 464 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.28e-05/0.2513, allocations: 14.28 kB / 464 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.054e-05/0.2513, allocations: 22.77 kB / 464 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.884e-05/0.2514, allocations: 197.2 kB / 464.2 MB, free: 416 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.564e-05/0.2514, allocations: 14.41 kB / 464.2 MB, free: 412 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.321e-05/0.2515, allocations: 27.08 kB / 464.2 MB, free: 400 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002793/0.2518, allocations: 195.6 kB / 464.4 MB, free: 272 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.424e-05/0.2518, allocations: 1.438 kB / 464.4 MB, free: 272 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.943e-05/0.2518, allocations: 5.344 kB / 464.4 MB, free: 268 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-06/0.2518, allocations: 4.562 kB / 464.4 MB, free: 268 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002139/0.252, allocations: 118.9 kB / 464.5 MB, free: 212 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001157/0.2532, allocations: 0.7114 MB / 465.3 MB, free: 15.58 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003788/0.2536, allocations: 225.8 kB / 465.5 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002543/0.2538, allocations: 92.53 kB / 465.6 MB, free: 15.36 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.082e-05/0.2538, allocations: 2.469 kB / 465.6 MB, free: 15.36 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002707/0.2541, allocations: 177.9 kB / 465.7 MB, free: 15.2 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 2.074e-06/0.2541, allocations: 4 kB / 465.7 MB, free: 15.2 MB / 334.1 MB Notification: Performance of matching and sorting (n=25): time 0.001403/0.2555, allocations: 0.8002 MB / 466.5 MB, free: 14.58 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.999e-05/0.2556, allocations: 138 kB / 466.7 MB, free: 14.42 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001239/0.2557, allocations: 137.2 kB / 466.8 MB, free: 14.29 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.859e-05/0.2557, allocations: 36.19 kB / 466.9 MB, free: 14.25 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.47e-05/0.2558, allocations: 133.8 kB / 467 MB, free: 14.13 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.265e-05/0.2559, allocations: 81.61 kB / 467.1 MB, free: 14.06 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.538e-05/0.256, allocations: 58.7 kB / 467.1 MB, free: 14.02 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.2561, allocations: 326.3 kB / 467.4 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000129/0.2563, allocations: 61.34 kB / 467.5 MB, free: 13.66 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000184/0.2565, allocations: 132 kB / 467.6 MB, free: 13.55 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003393/0.2568, allocations: 268 kB / 467.9 MB, free: 13.33 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.2568, allocations: 0 / 467.9 MB, free: 13.33 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004751/0.2573, allocations: 293.2 kB / 468.2 MB, free: 13.16 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.99e-05/0.2573, allocations: 40.72 kB / 468.2 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.326e-06/0.2573, allocations: 5.156 kB / 468.2 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.041e-05/0.2573, allocations: 4.75 kB / 468.2 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002205/0.2576, allocations: 66.84 kB / 468.3 MB, free: 13.1 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/0.2576, allocations: 3.469 kB / 468.3 MB, free: 13.1 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001035/0.2577, allocations: 16.53 kB / 468.3 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.004e-05/0.2577, allocations: 14.28 kB / 468.3 MB, free: 13.08 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.0002194/0.2579, allocations: 180.1 kB / 468.5 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.469e-05/0.258, allocations: 16.55 kB / 468.5 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.518e-05/0.258, allocations: 22.81 kB / 468.5 MB, free: 12.88 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.258, allocations: 2.188 kB / 468.5 MB, free: 12.88 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.95e-06/0.258, allocations: 5 kB / 468.5 MB, free: 12.88 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.258, allocations: 3.984 kB / 468.6 MB, free: 12.87 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001017/0.259, allocations: 0.6962 MB / 469.2 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.499e-06/0.259, allocations: 5.266 kB / 469.3 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001951/0.2592, allocations: 39.52 kB / 469.3 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.2592, allocations: 2.719 kB / 469.3 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.715e-05/0.2593, allocations: 12.81 kB / 469.3 MB, free: 12.28 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.741e-06/0.2593, allocations: 5.344 kB / 469.3 MB, free: 12.28 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.2593, allocations: 0 / 469.3 MB, free: 12.28 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006351/0.2599, allocations: 463.9 kB / 469.8 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.565e-05/0.26, allocations: 89.11 kB / 469.9 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.848e-05/0.26, allocations: 9.156 kB / 469.9 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001214/0.2601, allocations: 13.47 kB / 469.9 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.653e-05/0.2602, allocations: 14.89 kB / 469.9 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.577e-05/0.2602, allocations: 14.86 kB / 469.9 MB, free: 11.83 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.586e-05/0.2603, allocations: 99.08 kB / 470 MB, free: 11.75 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2603, allocations: 0 / 470 MB, free: 11.75 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003165/0.2606, allocations: 55.19 kB / 470.1 MB, free: 11.74 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.0001268/0.2607, allocations: 115.1 kB / 470.2 MB, free: 11.64 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003813/0.2611, allocations: 250.1 kB / 470.4 MB, free: 11.49 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.2611, allocations: 0 / 470.4 MB, free: 11.49 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001861/0.2613, allocations: 148.8 kB / 470.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002747/0.2616, allocations: 20.03 kB / 470.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001078/0.2626, allocations: 0.6321 MB / 471.2 MB, free: 10.87 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004055/0.263, allocations: 0.7387 MB / 471.9 MB, free: 10.14 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.649e-05/0.2631, allocations: 18.09 kB / 472 MB, free: 10.13 MB / 334.1 MB Notification: Performance of SimCode: time 5.71e-07/0.2631, allocations: 0 / 472 MB, free: 10.13 MB / 334.1 MB Notification: Performance of Templates: time 0.004341/0.2674, allocations: 2.14 MB / 474.1 MB, free: 9.008 MB / 334.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]