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.001804/0.001804, allocations: 181.8 kB / 12.74 MB, free: 2.582 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.568/1.568, allocations: 194.3 MB / 207.5 MB, free: 3.387 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03601/0.03601, allocations: 7.907 MB / 260.4 MB, free: 13.77 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.001821/0.001821, allocations: 128.4 kB / 307.2 MB, free: 14.88 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.854e-05/3.868e-05, allocations: 4 kB / 361.3 MB, free: 8.594 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2295/0.2295, allocations: 46.2 MB / 407.5 MB, free: 67.02 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07972/0.3093, allocations: 72.55 MB / 480.1 MB, free: 10.36 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001425/0.3095, allocations: 51.97 kB / 480.1 MB, free: 10.31 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007311/0.3168, allocations: 2.853 MB / 483 MB, free: 7.457 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.3169, allocations: 0 / 483 MB, free: 7.457 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.003e-05/0.3169, allocations: 4 kB / 483 MB, free: 7.453 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.0005451/0.3174, allocations: 442.9 kB / 483.4 MB, free: 6.977 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.492e-05/0.3175, allocations: 12.03 kB / 483.4 MB, free: 6.965 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.959e-05/0.3176, allocations: 54.73 kB / 483.5 MB, free: 6.902 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.587e-05/0.3176, allocations: 23.67 kB / 483.5 MB, free: 6.879 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001423/0.3178, allocations: 182.8 kB / 483.7 MB, free: 6.66 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.899e-05/0.3178, allocations: 24.36 kB / 483.7 MB, free: 6.637 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.231e-05/0.3179, allocations: 20 kB / 483.7 MB, free: 6.617 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000329/0.3182, allocations: 183.3 kB / 483.9 MB, free: 6.43 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/0.3182, allocations: 4 kB / 483.9 MB, free: 6.426 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.942e-05/0.3183, allocations: 4 kB / 483.9 MB, free: 6.422 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.283e-06/0.3183, allocations: 4 kB / 483.9 MB, free: 6.418 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002077/0.3185, allocations: 121.7 kB / 484.1 MB, free: 6.301 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00111/0.3196, allocations: 0.7368 MB / 484.8 MB, free: 5.5 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003885/0.32, allocations: 259.5 kB / 485 MB, free: 5.219 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002113/0.3202, allocations: 108.8 kB / 485.2 MB, free: 5.109 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.687e-05/0.3203, allocations: 4 kB / 485.2 MB, free: 5.105 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002207/0.3205, allocations: 120.8 kB / 485.3 MB, free: 4.973 MB / 330.7 MB Notification: Performance of pre-optimization done (n=21): time 3.066e-06/0.3205, allocations: 0 / 485.3 MB, free: 4.973 MB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.0009232/0.3214, allocations: 0.5823 MB / 485.9 MB, free: 4.344 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.93e-05/0.3215, allocations: 63.27 kB / 485.9 MB, free: 4.27 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.822e-05/0.3216, allocations: 124.8 kB / 486 MB, free: 4.145 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.245e-05/0.3216, allocations: 33.7 kB / 486.1 MB, free: 4.105 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.654e-05/0.3217, allocations: 140.2 kB / 486.2 MB, free: 3.965 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.582e-05/0.3217, allocations: 74.91 kB / 486.3 MB, free: 3.891 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.038e-05/0.3218, allocations: 8 kB / 486.3 MB, free: 3.883 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001171/0.3219, allocations: 327.1 kB / 486.6 MB, free: 3.555 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.8e-05/0.322, allocations: 60.62 kB / 486.7 MB, free: 3.496 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000165/0.3222, allocations: 124 kB / 486.8 MB, free: 3.344 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001275/0.3223, allocations: 86 kB / 486.9 MB, free: 3.262 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.3223, allocations: 0 / 486.9 MB, free: 3.262 MB / 330.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003333/0.3226, allocations: 239.8 kB / 487.1 MB, free: 3.023 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.3227, allocations: 7.984 kB / 487.1 MB, free: 3.016 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.3227, allocations: 4 kB / 487.1 MB, free: 3.012 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.3227, allocations: 8.25 kB / 487.1 MB, free: 3.004 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002091/0.3229, allocations: 59.92 kB / 487.2 MB, free: 2.945 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.023e-05/0.3229, allocations: 7.984 kB / 487.2 MB, free: 2.938 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.227e-05/0.323, allocations: 8 kB / 487.2 MB, free: 2.93 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.72e-05/0.3231, allocations: 12 kB / 487.2 MB, free: 2.918 MB / 330.7 MB Warning: Assuming fixed start value for the following 1 variables: intervalMeasure.w:DISCRETE(fixed = false ) "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 () * 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.0001443/0.3232, allocations: 128.8 kB / 487.3 MB, free: 2.785 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.346e-05/0.3232, allocations: 15.8 kB / 487.4 MB, free: 2.77 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.427e-05/0.3233, allocations: 28.75 kB / 487.4 MB, free: 2.738 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.3233, allocations: 0 / 487.4 MB, free: 2.738 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.175e-06/0.3233, allocations: 7.984 kB / 487.4 MB, free: 2.73 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.3233, allocations: 7.875 kB / 487.4 MB, free: 2.723 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007731/0.3241, allocations: 0.6212 MB / 488 MB, free: 2.039 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.3241, allocations: 0 / 488 MB, free: 2.039 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001883/0.3243, allocations: 43.92 kB / 488.1 MB, free: 1.996 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.3243, allocations: 0 / 488.1 MB, free: 1.996 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.941e-05/0.3244, allocations: 11.98 kB / 488.1 MB, free: 1.984 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.476e-06/0.3244, allocations: 3.953 kB / 488.1 MB, free: 1.98 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.3244, allocations: 4 kB / 488.1 MB, free: 1.977 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004374/0.3248, allocations: 400.3 kB / 488.5 MB, free: 1.551 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.361e-05/0.3249, allocations: 92.88 kB / 488.6 MB, free: 1.441 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.871e-05/0.3249, allocations: 11.94 kB / 488.6 MB, free: 1.43 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001021/0.325, allocations: 12.03 kB / 488.6 MB, free: 1.418 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.237e-05/0.3251, allocations: 11.98 kB / 488.6 MB, free: 1.406 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.63e-05/0.3251, allocations: 12 kB / 488.6 MB, free: 1.395 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.871e-05/0.3252, allocations: 99.27 kB / 488.7 MB, free: 1.297 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3252, allocations: 0 / 488.7 MB, free: 1.297 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002655/0.3254, allocations: 48 kB / 488.8 MB, free: 1.25 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) * 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.0007383/0.3262, allocations: 1.077 MB / 489.8 MB, free: 140 kB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000278/0.3265, allocations: 172.5 kB / 490 MB, free: 15.97 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3265, allocations: 0 / 490 MB, free: 15.97 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001294/0.3266, allocations: 88.44 kB / 490.1 MB, free: 15.88 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001492/0.3268, allocations: 8.062 kB / 490.1 MB, free: 15.88 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001107/0.3279, allocations: 0.576 MB / 490.7 MB, free: 15.25 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003326/0.3282, allocations: 0.7364 MB / 491.4 MB, free: 14.49 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 5.961e-05/0.3283, allocations: 17.53 kB / 491.4 MB, free: 14.48 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.697e-05/0.3284, allocations: 55.42 kB / 491.5 MB, free: 14.42 MB / 346.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3284, allocations: 0 / 491.5 MB, free: 14.42 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01485/0.3433, allocations: 3.038 MB / 494.5 MB, free: 11.54 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000179/0.3435, allocations: 183.1 kB / 494.7 MB, free: 11.32 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.65/1.994, allocations: 0 / 494.7 MB, free: 11.32 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)