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.003908/0.003908, allocations: 174.7 kB / 15.12 MB, free: 5.977 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.072/1.072, allocations: 194.5 MB / 210.3 MB, free: 7.539 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03785/0.03785, allocations: 8.088 MB / 263.6 MB, free: 2.156 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.001526/0.001526, allocations: 124.5 kB / 310.6 MB, free: 27.01 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003183/0.0003183, allocations: 8 kB / 367.3 MB, free: 2.289 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1716/0.1719, allocations: 46.2 MB / 413.5 MB, free: 47.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07015/0.2421, allocations: 72.71 MB / 486.2 MB, free: 13.07 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001275/0.2423, allocations: 47.98 kB / 486.2 MB, free: 13.02 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006833/0.2491, allocations: 2.903 MB / 489.1 MB, free: 10.12 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2491, allocations: 4 kB / 489.1 MB, free: 10.12 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.313e-06/0.2491, allocations: 0 / 489.1 MB, free: 10.12 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.0005071/0.2497, allocations: 476.8 kB / 489.6 MB, free: 9.598 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.162e-05/0.2497, allocations: 12.03 kB / 489.6 MB, free: 9.586 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.832e-05/0.2498, allocations: 19.77 kB / 489.6 MB, free: 9.566 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001205/0.2499, allocations: 187 kB / 489.8 MB, free: 9.344 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.802e-05/0.2499, allocations: 12.38 kB / 489.8 MB, free: 9.332 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.711e-05/0.25, allocations: 24 kB / 489.8 MB, free: 9.309 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002658/0.2502, allocations: 178.1 kB / 490 MB, free: 9.133 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.304e-05/0.2503, allocations: 3.938 kB / 490 MB, free: 9.129 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.197e-05/0.2503, allocations: 12 kB / 490 MB, free: 9.117 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.2503, allocations: 4 kB / 490 MB, free: 9.113 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000179/0.2505, allocations: 112.9 kB / 490.1 MB, free: 9.004 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001013/0.2515, allocations: 0.7279 MB / 490.9 MB, free: 8.211 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003006/0.2518, allocations: 243.6 kB / 491.1 MB, free: 7.945 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.349e-05/0.2518, allocations: 8.172 kB / 491.1 MB, free: 7.938 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002319/0.2521, allocations: 183.2 kB / 491.3 MB, free: 7.73 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 1.693e-06/0.2521, allocations: 0 / 491.3 MB, free: 7.73 MB / 330.7 MB Notification: Performance of matching and sorting (n=25): time 0.001083/0.2532, allocations: 0.8677 MB / 492.2 MB, free: 6.77 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.24e-05/0.2532, allocations: 140.5 kB / 492.3 MB, free: 6.602 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.012e-05/0.2533, allocations: 132.2 kB / 492.4 MB, free: 6.469 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.296e-05/0.2534, allocations: 29.7 kB / 492.4 MB, free: 6.434 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.495e-05/0.2534, allocations: 136.5 kB / 492.6 MB, free: 6.297 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.557e-05/0.2535, allocations: 86.8 kB / 492.7 MB, free: 6.211 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.578e-06/0.2535, allocations: 4 kB / 492.7 MB, free: 6.207 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.298e-05/0.2536, allocations: 330.8 kB / 493 MB, free: 5.875 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001006/0.2537, allocations: 66.97 kB / 493.1 MB, free: 5.809 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001359/0.2539, allocations: 136.5 kB / 493.2 MB, free: 5.648 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001379/0.254, allocations: 103.4 kB / 493.3 MB, free: 5.543 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.254, allocations: 7.938 kB / 493.3 MB, free: 5.535 MB / 330.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003548/0.2544, allocations: 296.1 kB / 493.6 MB, free: 5.234 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.179e-05/0.2544, allocations: 33.7 kB / 493.6 MB, free: 5.195 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.2544, allocations: 4 kB / 493.6 MB, free: 5.191 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/0.2544, allocations: 4 kB / 493.6 MB, free: 5.188 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002007/0.2546, allocations: 59.84 kB / 493.7 MB, free: 5.129 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.256e-06/0.2547, allocations: 8.188 kB / 493.7 MB, free: 5.121 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.427e-05/0.2548, allocations: 19.98 kB / 493.7 MB, free: 5.102 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.565e-05/0.2548, allocations: 12 kB / 493.7 MB, free: 5.09 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.0001633/0.255, allocations: 175.7 kB / 493.9 MB, free: 4.902 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.573e-05/0.255, allocations: 15.89 kB / 493.9 MB, free: 4.887 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.215e-05/0.255, allocations: 20.84 kB / 493.9 MB, free: 4.867 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.255, allocations: 0 / 493.9 MB, free: 4.867 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.2551, allocations: 4 kB / 493.9 MB, free: 4.863 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.2551, allocations: 4 kB / 493.9 MB, free: 4.859 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007598/0.2558, allocations: 0.698 MB / 494.6 MB, free: 4.094 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.2558, allocations: 4 kB / 494.6 MB, free: 4.09 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000201/0.256, allocations: 43.97 kB / 494.7 MB, free: 4.047 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.037e-06/0.2561, allocations: 8.062 kB / 494.7 MB, free: 4.039 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.763e-05/0.2561, allocations: 4 kB / 494.7 MB, free: 4.035 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.2561, allocations: 0 / 494.7 MB, free: 4.035 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.2561, allocations: 3.953 kB / 494.7 MB, free: 4.031 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005011/0.2566, allocations: 0.4901 MB / 495.2 MB, free: 3.5 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.646e-05/0.2566, allocations: 85.02 kB / 495.3 MB, free: 3.398 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.434e-05/0.2567, allocations: 12.03 kB / 495.3 MB, free: 3.387 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001137/0.2568, allocations: 12 kB / 495.3 MB, free: 3.375 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.767e-05/0.2569, allocations: 7.984 kB / 495.3 MB, free: 3.367 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.52e-05/0.2569, allocations: 15.98 kB / 495.3 MB, free: 3.352 MB / 330.7 MB Notification: Performance of sorting global known variables: time 4.912e-05/0.2569, allocations: 95.27 kB / 495.4 MB, free: 3.258 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.2569, allocations: 0 / 495.4 MB, free: 3.258 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002741/0.2572, allocations: 59.95 kB / 495.5 MB, free: 3.199 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.0001053/0.2573, allocations: 123.2 kB / 495.6 MB, free: 3.07 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003071/0.2577, allocations: 255.5 kB / 495.8 MB, free: 2.809 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.2577, allocations: 0 / 495.8 MB, free: 2.809 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001703/0.2578, allocations: 199.3 kB / 496 MB, free: 2.602 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001365/0.258, allocations: 20.47 kB / 496.1 MB, free: 2.582 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009088/0.2589, allocations: 0.7454 MB / 496.8 MB, free: 1.809 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002384/0.2591, allocations: 0.7363 MB / 497.5 MB, free: 1.047 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 5.418e-05/0.2592, allocations: 17.53 kB / 497.6 MB, free: 1.031 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.14e-05/0.2592, allocations: 19.44 kB / 497.6 MB, free: 1.016 MB / 330.7 MB Notification: Performance of SimCode: time 3.01e-07/0.2593, allocations: 7.938 kB / 497.6 MB, free: 1.008 MB / 330.7 MB Notification: Performance of Templates: time 0.003298/0.2626, allocations: 1.397 MB / 499 MB, free: 15.64 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)