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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) 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.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter") translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001061/0.001061, allocations: 181 kB / 16.12 MB, free: 5.543 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.606/1.606, allocations: 194.5 MB / 211.3 MB, free: 7.707 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03887/0.03887, allocations: 8.1 MB / 264.6 MB, free: 2.285 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001606/0.001606, allocations: 119.8 kB / 311.6 MB, free: 26.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005087/0.0005092, allocations: 12 kB / 368.5 MB, free: 2.027 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2597/0.2603, allocations: 46.19 MB / 414.7 MB, free: 47.81 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08743/0.3477, allocations: 72.74 MB / 487.4 MB, free: 12.92 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002033/0.348, allocations: 47.98 kB / 487.5 MB, free: 12.87 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007404/0.3554, allocations: 2.913 MB / 490.4 MB, free: 9.969 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3554, allocations: 192 / 490.4 MB, free: 9.969 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.156e-05/0.3555, allocations: 8 kB / 490.4 MB, free: 9.961 MB / 330.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.0006309/0.3561, allocations: 469 kB / 490.8 MB, free: 9.441 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.309e-05/0.3561, allocations: 8.031 kB / 490.9 MB, free: 9.434 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.769e-05/0.3562, allocations: 20.75 kB / 490.9 MB, free: 9.414 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00014/0.3564, allocations: 188.1 kB / 491.1 MB, free: 9.191 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.918e-05/0.3564, allocations: 16.75 kB / 491.1 MB, free: 9.176 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.268e-05/0.3564, allocations: 20.38 kB / 491.1 MB, free: 9.156 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003182/0.3568, allocations: 182.7 kB / 491.3 MB, free: 8.977 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.534e-05/0.3568, allocations: 4.188 kB / 491.3 MB, free: 8.973 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.138e-05/0.3568, allocations: 7.938 kB / 491.3 MB, free: 8.965 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.554e-06/0.3568, allocations: 4 kB / 491.3 MB, free: 8.961 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001991/0.357, allocations: 117.1 kB / 491.4 MB, free: 8.848 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001172/0.3582, allocations: 0.7278 MB / 492.1 MB, free: 8.055 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003641/0.3586, allocations: 252.4 kB / 492.4 MB, free: 7.781 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002142/0.3588, allocations: 112.8 kB / 492.5 MB, free: 7.668 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.016e-05/0.3589, allocations: 4 kB / 492.5 MB, free: 7.664 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002836/0.3592, allocations: 186.7 kB / 492.7 MB, free: 7.457 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 2.585e-06/0.3592, allocations: 4 kB / 492.7 MB, free: 7.453 MB / 330.7 MB Notification: Performance of matching and sorting (n=25): time 0.001249/0.3604, allocations: 0.782 MB / 493.5 MB, free: 6.594 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.244e-05/0.3606, allocations: 140.5 kB / 493.6 MB, free: 6.426 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001016/0.3607, allocations: 135.4 kB / 493.7 MB, free: 6.285 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.578e-05/0.3607, allocations: 29.7 kB / 493.8 MB, free: 6.25 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.072e-05/0.3608, allocations: 140.4 kB / 493.9 MB, free: 6.109 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.508e-05/0.3609, allocations: 82.89 kB / 494 MB, free: 6.027 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.25e-05/0.3609, allocations: 12 kB / 494 MB, free: 6.016 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.361, allocations: 322.8 kB / 494.3 MB, free: 5.691 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001104/0.3611, allocations: 60.3 kB / 494.4 MB, free: 5.629 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001639/0.3613, allocations: 134.9 kB / 494.5 MB, free: 5.473 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003209/0.3616, allocations: 265 kB / 494.8 MB, free: 5.176 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.3617, allocations: 3.938 kB / 494.8 MB, free: 5.172 MB / 330.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004307/0.3621, allocations: 292.1 kB / 495 MB, free: 4.875 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.941e-05/0.3621, allocations: 37.64 kB / 495.1 MB, free: 4.832 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.3621, allocations: 0 / 495.1 MB, free: 4.832 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.3622, allocations: 7.938 kB / 495.1 MB, free: 4.824 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002201/0.3624, allocations: 60.16 kB / 495.1 MB, free: 4.766 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.119e-05/0.3624, allocations: 8 kB / 495.2 MB, free: 4.758 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001025/0.3625, allocations: 8 kB / 495.2 MB, free: 4.75 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.059e-05/0.3626, allocations: 16 kB / 495.2 MB, free: 4.734 MB / 330.7 MB Warning: Assuming fixed start value for the following 1 variables: pulseCounter.w:DISCRETE(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,$PRE.pulseCounter.count,pulseCounter.count,$whenCondition2,$whenCondition1,$whenCondition3,$PRE.pulseCounter.next_phi,pulseCounter.next_phi,$PRE.pulseCounter.prev_phi,pulseCounter.prev_phi) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002278/0.3628, allocations: 177 kB / 495.3 MB, free: 4.547 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.218e-05/0.3628, allocations: 19.8 kB / 495.4 MB, free: 4.527 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.677e-05/0.3629, allocations: 20.84 kB / 495.4 MB, free: 4.508 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.3629, allocations: 3.938 kB / 495.4 MB, free: 4.504 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.3629, allocations: 4 kB / 495.4 MB, free: 4.5 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.638e-06/0.3629, allocations: 0 / 495.4 MB, free: 4.5 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009495/0.3639, allocations: 0.7084 MB / 496.1 MB, free: 3.723 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.3639, allocations: 0 / 496.1 MB, free: 3.723 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001836/0.3641, allocations: 43.92 kB / 496.1 MB, free: 3.68 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.3641, allocations: 0 / 496.1 MB, free: 3.68 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.351e-05/0.3641, allocations: 15.98 kB / 496.2 MB, free: 3.664 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.3641, allocations: 0 / 496.2 MB, free: 3.664 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.3641, allocations: 0 / 496.2 MB, free: 3.664 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000574/0.3647, allocations: 462.5 kB / 496.6 MB, free: 3.184 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.52e-05/0.3648, allocations: 92.92 kB / 496.7 MB, free: 3.074 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.246e-05/0.3648, allocations: 4 kB / 496.7 MB, free: 3.07 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001123/0.3649, allocations: 12 kB / 496.7 MB, free: 3.059 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.666e-05/0.365, allocations: 16.02 kB / 496.7 MB, free: 3.043 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.206e-05/0.365, allocations: 8 kB / 496.7 MB, free: 3.035 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.502e-05/0.3651, allocations: 100.8 kB / 496.8 MB, free: 2.938 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3651, allocations: 0 / 496.8 MB, free: 2.938 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002928/0.3654, allocations: 64 kB / 496.9 MB, free: 2.875 MB / 330.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.w,idealSensor.flange.phi) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001293/0.3655, allocations: 123.2 kB / 497 MB, free: 2.742 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003415/0.3659, allocations: 251.5 kB / 497.3 MB, free: 2.484 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.3659, allocations: 0 / 497.3 MB, free: 2.484 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001969/0.3661, allocations: 194 kB / 497.5 MB, free: 2.285 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000238/0.3663, allocations: 22.86 kB / 497.5 MB, free: 2.27 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001235/0.3676, allocations: 0.7578 MB / 498.2 MB, free: 1.48 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000331/0.3679, allocations: 0.7321 MB / 499 MB, free: 0.7227 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 6.143e-05/0.368, allocations: 21.53 kB / 499 MB, free: 0.7031 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.929e-05/0.3681, allocations: 19.44 kB / 499 MB, free: 0.6875 MB / 330.7 MB Notification: Performance of SimCode: time 4.31e-07/0.3681, allocations: 3.938 kB / 499 MB, free: 0.6836 MB / 330.7 MB Notification: Performance of Templates: time 0.004195/0.3723, allocations: 1.485 MB / 0.4888 GB, free: 15.23 MB / 346.7 MB make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.makefile (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)