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.004195/0.004195, allocations: 177.2 kB / 15.12 MB, free: 5.973 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.032/1.032, allocations: 194.5 MB / 210.3 MB, free: 7.551 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03539/0.03539, allocations: 8.1 MB / 263.6 MB, free: 2.16 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.001537/0.001537, allocations: 112.7 kB / 310.6 MB, free: 27.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003083/0.0003083, allocations: 12 kB / 367.2 MB, free: 2.309 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1593/0.1596, allocations: 46.2 MB / 413.5 MB, free: 47.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06983/0.2294, allocations: 72.65 MB / 486.1 MB, free: 13.16 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001222/0.2296, allocations: 47.98 kB / 486.1 MB, free: 13.11 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006673/0.2363, allocations: 2.842 MB / 489 MB, free: 10.27 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.276e-06/0.2363, allocations: 0 / 489 MB, free: 10.27 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.057e-05/0.2363, allocations: 3.938 kB / 489 MB, free: 10.27 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.0005373/0.2369, allocations: 455.7 kB / 489.4 MB, free: 9.777 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.313e-05/0.2369, allocations: 8.031 kB / 489.4 MB, free: 9.77 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.295e-05/0.237, allocations: 23.77 kB / 489.5 MB, free: 9.746 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001252/0.2371, allocations: 178.9 kB / 489.6 MB, free: 9.531 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.621e-05/0.2371, allocations: 16.44 kB / 489.7 MB, free: 9.516 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.344e-05/0.2372, allocations: 31.84 kB / 489.7 MB, free: 9.484 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003056/0.2375, allocations: 187.3 kB / 489.9 MB, free: 9.297 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.391e-05/0.2375, allocations: 8 kB / 489.9 MB, free: 9.289 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.157e-05/0.2375, allocations: 8 kB / 489.9 MB, free: 9.281 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.2376, allocations: 4 kB / 489.9 MB, free: 9.277 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001975/0.2378, allocations: 121.6 kB / 490 MB, free: 9.16 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001018/0.2388, allocations: 0.7407 MB / 490.8 MB, free: 8.355 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003419/0.2391, allocations: 259.6 kB / 491 MB, free: 8.074 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.276e-05/0.2392, allocations: 8 kB / 491 MB, free: 8.066 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002147/0.2394, allocations: 120.8 kB / 491.1 MB, free: 7.934 MB / 330.7 MB Notification: Performance of pre-optimization done (n=21): time 1.553e-06/0.2394, allocations: 0 / 491.1 MB, free: 7.934 MB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.0009692/0.2404, allocations: 0.6458 MB / 491.8 MB, free: 7.238 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.396e-05/0.2404, allocations: 59.27 kB / 491.8 MB, free: 7.168 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.299e-05/0.2405, allocations: 127 kB / 492 MB, free: 7.039 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.951e-05/0.2405, allocations: 33.7 kB / 492 MB, free: 7 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.222e-05/0.2406, allocations: 136.1 kB / 492.1 MB, free: 6.859 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.722e-05/0.2407, allocations: 78.84 kB / 492.2 MB, free: 6.781 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.043e-05/0.2407, allocations: 8 kB / 492.2 MB, free: 6.773 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.262e-05/0.2408, allocations: 319.2 kB / 492.5 MB, free: 6.453 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.539e-05/0.2409, allocations: 67.97 kB / 492.6 MB, free: 6.387 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001325/0.241, allocations: 124.6 kB / 492.7 MB, free: 6.234 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001228/0.2411, allocations: 93.03 kB / 492.8 MB, free: 6.145 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-06/0.2411, allocations: 4 kB / 492.8 MB, free: 6.141 MB / 330.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003077/0.2415, allocations: 247.8 kB / 493 MB, free: 5.895 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.36e-05/0.2415, allocations: 8 kB / 493.1 MB, free: 5.887 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.2415, allocations: 0 / 493.1 MB, free: 5.887 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/0.2415, allocations: 4 kB / 493.1 MB, free: 5.883 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002111/0.2417, allocations: 59.91 kB / 493.1 MB, free: 5.824 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.586e-06/0.2417, allocations: 8.062 kB / 493.1 MB, free: 5.816 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.885e-05/0.2418, allocations: 20.23 kB / 493.1 MB, free: 5.797 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.612e-05/0.2419, allocations: 12 kB / 493.2 MB, free: 5.785 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.0001406/0.242, allocations: 141.7 kB / 493.3 MB, free: 5.637 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.907e-05/0.242, allocations: 15.84 kB / 493.3 MB, free: 5.621 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.411e-05/0.2421, allocations: 20.84 kB / 493.3 MB, free: 5.605 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.983e-06/0.2421, allocations: 0 / 493.3 MB, free: 5.605 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.2421, allocations: 0 / 493.3 MB, free: 5.605 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-06/0.2421, allocations: 3.984 kB / 493.3 MB, free: 5.602 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006747/0.2428, allocations: 0.6231 MB / 494 MB, free: 4.918 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.2428, allocations: 0 / 494 MB, free: 4.918 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002106/0.243, allocations: 43.91 kB / 494 MB, free: 4.875 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.468e-06/0.243, allocations: 4 kB / 494 MB, free: 4.871 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.569e-05/0.243, allocations: 8.062 kB / 494 MB, free: 4.863 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.2431, allocations: 4 kB / 494 MB, free: 4.859 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.2431, allocations: 3.984 kB / 494 MB, free: 4.855 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004177/0.2435, allocations: 422.4 kB / 494.4 MB, free: 4.41 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.845e-05/0.2435, allocations: 92.92 kB / 494.5 MB, free: 4.301 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.471e-05/0.2436, allocations: 8 kB / 494.5 MB, free: 4.293 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000106/0.2437, allocations: 15.95 kB / 494.5 MB, free: 4.277 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.791e-05/0.2437, allocations: 16.02 kB / 494.6 MB, free: 4.262 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.97e-05/0.2437, allocations: 8 kB / 494.6 MB, free: 4.254 MB / 330.7 MB Notification: Performance of sorting global known variables: time 4.457e-05/0.2438, allocations: 96.02 kB / 494.7 MB, free: 4.16 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2438, allocations: 0 / 494.7 MB, free: 4.16 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000263/0.2441, allocations: 48 kB / 494.7 MB, free: 4.113 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: 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.0001039/0.2442, allocations: 119.2 kB / 494.8 MB, free: 3.988 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002487/0.2444, allocations: 175.8 kB / 495 MB, free: 3.816 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.2444, allocations: 0 / 495 MB, free: 3.816 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001154/0.2446, allocations: 91.8 kB / 495.1 MB, free: 3.727 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001361/0.2447, allocations: 13.86 kB / 495.1 MB, free: 3.715 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008685/0.2456, allocations: 0.7252 MB / 495.8 MB, free: 2.957 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002314/0.2458, allocations: 0.7364 MB / 496.6 MB, free: 2.195 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 5.737e-05/0.2459, allocations: 17.53 kB / 496.6 MB, free: 2.18 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.751e-05/0.2459, allocations: 19.44 kB / 496.6 MB, free: 2.16 MB / 330.7 MB Notification: Performance of SimCode: time 5.81e-07/0.2459, allocations: 0 / 496.6 MB, free: 2.16 MB / 330.7 MB Notification: Performance of Templates: time 0.003068/0.249, allocations: 1.298 MB / 497.9 MB, free: 0.8945 MB / 330.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)