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: "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithIntervalMeasure",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithIntervalMeasure",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.004737/0.004737, allocations: 174.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.398/1.398, allocations: 194.5 MB / 210.3 MB, free: 7.637 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.0367/0.0367, allocations: 8.096 MB / 263.6 MB, free: 2.246 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.001598/0.001598, allocations: 116.4 kB / 310.6 MB, free: 27.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003988/0.0003988, allocations: 12 kB / 367.4 MB, free: 2.211 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2487/0.2491, allocations: 46.19 MB / 413.6 MB, free: 47.56 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08527/0.3344, allocations: 72.64 MB / 486.2 MB, free: 13.13 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001837/0.3346, allocations: 48.52 kB / 486.2 MB, free: 13.09 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00731/0.3419, allocations: 2.854 MB / 489.1 MB, free: 10.25 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.355e-06/0.342, allocations: 0 / 489.1 MB, free: 10.25 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.58e-05/0.342, allocations: 4 kB / 489.1 MB, free: 10.24 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.0006361/0.3426, allocations: 459.7 kB / 489.5 MB, free: 9.746 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.961e-05/0.3427, allocations: 8.031 kB / 489.6 MB, free: 9.738 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.854e-05/0.3428, allocations: 58.53 kB / 489.6 MB, free: 9.672 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.342e-05/0.3428, allocations: 23.7 kB / 489.6 MB, free: 9.648 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001555/0.343, allocations: 179.1 kB / 489.8 MB, free: 9.434 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.076e-05/0.343, allocations: 20.44 kB / 489.8 MB, free: 9.414 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.716e-05/0.3431, allocations: 23.89 kB / 489.9 MB, free: 9.391 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000339/0.3434, allocations: 191.3 kB / 490 MB, free: 9.199 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.56e-05/0.3435, allocations: 0 / 490 MB, free: 9.199 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.485e-05/0.3435, allocations: 12 kB / 490.1 MB, free: 9.188 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.3435, allocations: 4 kB / 490.1 MB, free: 9.184 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002106/0.3437, allocations: 121.6 kB / 490.2 MB, free: 9.066 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001167/0.3449, allocations: 0.7292 MB / 490.9 MB, free: 8.273 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003745/0.3453, allocations: 264.1 kB / 491.2 MB, free: 7.988 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.859e-05/0.3453, allocations: 7.984 kB / 491.2 MB, free: 7.98 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002494/0.3456, allocations: 120.8 kB / 491.3 MB, free: 7.848 MB / 330.7 MB Notification: Performance of pre-optimization done (n=21): time 1.623e-06/0.3456, allocations: 0 / 491.3 MB, free: 7.848 MB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.001094/0.3467, allocations: 0.6497 MB / 491.9 MB, free: 7.148 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.854e-05/0.3467, allocations: 63.25 kB / 492 MB, free: 7.074 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.875e-05/0.3468, allocations: 118.8 kB / 492.1 MB, free: 6.953 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.582e-05/0.3469, allocations: 29.7 kB / 492.1 MB, free: 6.918 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.734e-05/0.347, allocations: 136.1 kB / 492.3 MB, free: 6.777 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.869e-05/0.347, allocations: 78.86 kB / 492.4 MB, free: 6.699 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.488e-06/0.347, allocations: 4 kB / 492.4 MB, free: 6.695 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.3472, allocations: 335.1 kB / 492.7 MB, free: 6.359 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.386e-05/0.3473, allocations: 63.98 kB / 492.7 MB, free: 6.297 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001435/0.3474, allocations: 132.5 kB / 492.9 MB, free: 6.137 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001257/0.3475, allocations: 81.16 kB / 493 MB, free: 6.059 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.3476, allocations: 0 / 493 MB, free: 6.059 MB / 330.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003257/0.3479, allocations: 251.8 kB / 493.2 MB, free: 5.809 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.3479, allocations: 8 kB / 493.2 MB, free: 5.801 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.3479, allocations: 256 / 493.2 MB, free: 5.801 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.3479, allocations: 8 kB / 493.2 MB, free: 5.793 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002199/0.3482, allocations: 63.91 kB / 493.3 MB, free: 5.73 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.256e-06/0.3482, allocations: 7.938 kB / 493.3 MB, free: 5.723 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.792e-05/0.3483, allocations: 8 kB / 493.3 MB, free: 5.715 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.578e-05/0.3483, allocations: 15.94 kB / 493.3 MB, free: 5.699 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.0001507/0.3485, allocations: 149.7 kB / 493.5 MB, free: 5.543 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.167e-05/0.3485, allocations: 15.91 kB / 493.5 MB, free: 5.527 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.91e-05/0.3485, allocations: 20.84 kB / 493.5 MB, free: 5.512 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.3485, allocations: 4 kB / 493.5 MB, free: 5.508 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.3486, allocations: 0 / 493.5 MB, free: 5.508 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.3486, allocations: 3.984 kB / 493.5 MB, free: 5.504 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007181/0.3493, allocations: 0.6192 MB / 494.1 MB, free: 4.824 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.3493, allocations: 4 kB / 494.1 MB, free: 4.82 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002007/0.3495, allocations: 39.92 kB / 494.2 MB, free: 4.781 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.3495, allocations: 0 / 494.2 MB, free: 4.781 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.052e-05/0.3495, allocations: 11.98 kB / 494.2 MB, free: 4.77 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.3496, allocations: 0 / 494.2 MB, free: 4.77 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.3496, allocations: 4 kB / 494.2 MB, free: 4.766 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000447/0.35, allocations: 422.5 kB / 494.6 MB, free: 4.32 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.635e-05/0.3501, allocations: 88.92 kB / 494.7 MB, free: 4.215 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.049e-05/0.3501, allocations: 11.95 kB / 494.7 MB, free: 4.203 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001033/0.3502, allocations: 4 kB / 494.7 MB, free: 4.199 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.591e-05/0.3503, allocations: 19.97 kB / 494.7 MB, free: 4.18 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.492e-05/0.3503, allocations: 4 kB / 494.7 MB, free: 4.176 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.933e-05/0.3504, allocations: 104 kB / 494.8 MB, free: 4.074 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3504, allocations: 0 / 494.8 MB, free: 4.074 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002721/0.3507, allocations: 48 kB / 494.9 MB, free: 4.027 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.0007117/0.3514, allocations: 1.089 MB / 496 MB, free: 2.898 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002686/0.3517, allocations: 188.3 kB / 496.1 MB, free: 2.715 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.3517, allocations: 0 / 496.1 MB, free: 2.715 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001197/0.3518, allocations: 89.41 kB / 496.2 MB, free: 2.629 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001465/0.3519, allocations: 8.625 kB / 496.2 MB, free: 2.621 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002048/0.354, allocations: 2.563 MB / 498.8 MB, free: 15.96 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002719/0.3543, allocations: 0.7364 MB / 499.5 MB, free: 15.2 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 5.989e-05/0.3544, allocations: 13.55 kB / 499.5 MB, free: 15.18 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.221e-05/0.3544, allocations: 55.41 kB / 499.6 MB, free: 15.13 MB / 346.7 MB Notification: Performance of SimCode: time 2.2e-07/0.3544, allocations: 0 / 499.6 MB, free: 15.13 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01386/0.3683, allocations: 2.92 MB / 0.4907 GB, free: 12.37 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00022/0.3686, allocations: 217.4 kB / 0.491 GB, free: 12.12 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.531/1.899, allocations: 8.016 kB / 0.491 GB, free: 12.12 MB / 346.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithIntervalMeasure_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithIntervalMeasure.fmu > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.pipe 2>&1)