Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.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.PlantWithIntervalMeasure,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure") translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001265/0.001265, allocations: 185.1 kB / 16.13 MB, free: 5.66 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.445/1.445, allocations: 194.5 MB / 211.3 MB, free: 2.945 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03649/0.03649, allocations: 8.111 MB / 264.6 MB, free: 12.59 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.001589/0.001589, allocations: 112.1 kB / 311.6 MB, free: 13.48 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000409/0.0004091, allocations: 16 kB / 368.5 MB, free: 4.496 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.216/0.2165, allocations: 46.2 MB / 414.7 MB, free: 65.91 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08437/0.3009, allocations: 72.66 MB / 487.4 MB, free: 9.141 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001911/0.3011, allocations: 55.97 kB / 487.4 MB, free: 9.086 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007714/0.3089, allocations: 2.845 MB / 490.3 MB, free: 6.238 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.295e-06/0.3089, allocations: 0 / 490.3 MB, free: 6.238 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.513e-05/0.3089, allocations: 4 kB / 490.3 MB, free: 6.234 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.0007138/0.3096, allocations: 455 kB / 490.7 MB, free: 5.742 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.3097, allocations: 8.031 kB / 490.7 MB, free: 5.734 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.896e-05/0.3098, allocations: 20.75 kB / 490.7 MB, free: 5.715 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001598/0.3099, allocations: 192.2 kB / 490.9 MB, free: 5.488 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.7e-05/0.31, allocations: 16.75 kB / 490.9 MB, free: 5.473 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.931e-05/0.31, allocations: 28.38 kB / 491 MB, free: 5.445 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003394/0.3104, allocations: 191.8 kB / 491.2 MB, free: 5.25 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.754e-05/0.3104, allocations: 192 / 491.2 MB, free: 5.25 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.49e-05/0.3104, allocations: 11.94 kB / 491.2 MB, free: 5.238 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.3105, allocations: 4 kB / 491.2 MB, free: 5.234 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002191/0.3107, allocations: 117.7 kB / 491.3 MB, free: 5.121 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001187/0.3119, allocations: 0.733 MB / 492 MB, free: 4.324 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004999/0.3124, allocations: 269.2 kB / 492.3 MB, free: 4.035 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00024/0.3126, allocations: 109.2 kB / 492.4 MB, free: 3.926 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.772e-05/0.3127, allocations: 3.953 kB / 492.4 MB, free: 3.922 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002753/0.313, allocations: 131.3 kB / 492.5 MB, free: 3.781 MB / 330.7 MB Notification: Performance of pre-optimization done (n=21): time 1.813e-06/0.313, allocations: 0 / 492.5 MB, free: 3.781 MB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.00119/0.3142, allocations: 0.6347 MB / 493.2 MB, free: 3.094 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.597e-05/0.3142, allocations: 63.2 kB / 493.2 MB, free: 3.02 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001247/0.3144, allocations: 137 kB / 493.3 MB, free: 2.879 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.725e-05/0.3144, allocations: 29.7 kB / 493.4 MB, free: 2.844 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.965e-05/0.3145, allocations: 132.2 kB / 493.5 MB, free: 2.707 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.079e-05/0.3146, allocations: 86.84 kB / 493.6 MB, free: 2.621 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.035e-05/0.3146, allocations: 4 kB / 493.6 MB, free: 2.617 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.3147, allocations: 326.8 kB / 493.9 MB, free: 2.289 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00012/0.3149, allocations: 59.97 kB / 494 MB, free: 2.23 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001485/0.315, allocations: 123.7 kB / 494.1 MB, free: 2.078 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003123/0.3153, allocations: 220.9 kB / 494.3 MB, free: 1.836 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.3154, allocations: 0 / 494.3 MB, free: 1.836 MB / 330.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003846/0.3157, allocations: 251.6 kB / 494.6 MB, free: 1.586 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.215e-05/0.3158, allocations: 8 kB / 494.6 MB, free: 1.578 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.782e-06/0.3158, allocations: 0 / 494.6 MB, free: 1.578 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.549e-05/0.3158, allocations: 4 kB / 494.6 MB, free: 1.574 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002138/0.316, allocations: 64.16 kB / 494.6 MB, free: 1.512 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.05e-05/0.316, allocations: 7.938 kB / 494.6 MB, free: 1.504 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001308/0.3162, allocations: 11.98 kB / 494.7 MB, free: 1.492 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.917e-05/0.3162, allocations: 15.94 kB / 494.7 MB, free: 1.477 MB / 330.7 MB Warning: Assuming fixed start value for the following 1 variables: intervalMeasure.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: 10 ($PRE.intervalMeasure.last_time,intervalMeasure.last_time,$PRE.intervalMeasure.w,intervalMeasure.w,$whenCondition2,$whenCondition1,$PRE.intervalMeasure.next_phi,intervalMeasure.next_phi,$PRE.intervalMeasure.prev_phi,intervalMeasure.prev_phi) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * 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.000174/0.3164, allocations: 143.9 kB / 494.8 MB, free: 1.328 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.451e-05/0.3164, allocations: 15.81 kB / 494.8 MB, free: 1.312 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.688e-05/0.3165, allocations: 16.84 kB / 494.8 MB, free: 1.301 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.3165, allocations: 4 kB / 494.8 MB, free: 1.297 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.3165, allocations: 7.938 kB / 494.8 MB, free: 1.289 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.3165, allocations: 3.984 kB / 494.9 MB, free: 1.285 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008483/0.3174, allocations: 0.6247 MB / 495.5 MB, free: 0.5977 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.3174, allocations: 0 / 495.5 MB, free: 0.5977 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001972/0.3176, allocations: 43.92 kB / 495.5 MB, free: 0.5547 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.605e-06/0.3176, allocations: 7.938 kB / 495.5 MB, free: 0.5469 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.051e-05/0.3176, allocations: 7.984 kB / 495.5 MB, free: 0.5391 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.3176, allocations: 4 kB / 495.5 MB, free: 0.5352 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3176, allocations: 0 / 495.5 MB, free: 0.5352 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004802/0.3181, allocations: 380.9 kB / 495.9 MB, free: 144 kB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.632e-05/0.3182, allocations: 97.06 kB / 496 MB, free: 28 kB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.706e-05/0.3182, allocations: 4 kB / 496 MB, free: 24 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001002/0.3183, allocations: 4 kB / 496 MB, free: 20 kB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.372e-05/0.3184, allocations: 23.97 kB / 496 MB, free: 15.99 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.903e-05/0.3185, allocations: 8 kB / 496 MB, free: 15.98 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.83e-05/0.3185, allocations: 95.2 kB / 496.1 MB, free: 15.89 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3185, allocations: 4 kB / 496.1 MB, free: 15.89 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003002/0.3188, allocations: 52 kB / 496.2 MB, free: 15.84 MB / 346.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: 6 ($whenCondition2,$whenCondition1,intervalMeasure.w,intervalMeasure.next_phi,intervalMeasure.prev_phi,intervalMeasure.last_time) * Number of discrete states: 3 (intervalMeasure.prev_phi,intervalMeasure.next_phi,intervalMeasure.last_time) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0001324/0.319, allocations: 108.4 kB / 496.3 MB, free: 15.72 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003065/0.3193, allocations: 183.9 kB / 496.5 MB, free: 15.54 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3193, allocations: 0 / 496.5 MB, free: 15.54 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000139/0.3195, allocations: 88.47 kB / 496.6 MB, free: 15.46 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002396/0.3197, allocations: 8.469 kB / 496.6 MB, free: 15.45 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001289/0.321, allocations: 0.7479 MB / 497.3 MB, free: 14.67 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003957/0.3214, allocations: 0.7325 MB / 498.1 MB, free: 13.91 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 7.16e-05/0.3215, allocations: 17.53 kB / 498.1 MB, free: 13.89 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.559e-05/0.3215, allocations: 23.38 kB / 498.1 MB, free: 13.87 MB / 346.7 MB Notification: Performance of SimCode: time 2.1e-07/0.3216, allocations: 4 kB / 498.1 MB, free: 13.87 MB / 346.7 MB Notification: Performance of Templates: time 0.004218/0.3258, allocations: 1.385 MB / 499.5 MB, free: 12.51 MB / 346.7 MB make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.makefile (rm -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.pipe >> ../files/ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.sim & ./ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.pipe 2>&1)