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.001042/0.001042, allocations: 179.4 kB / 7.652 MB, free: 1.418 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.341/1.341, allocations: 194.3 MB / 202.4 MB, free: 12.96 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04473/0.04473, allocations: 7.914 MB / 255.2 MB, free: 8.172 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.001769/0.001769, allocations: 120.6 kB / 301.9 MB, free: 32.18 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.996e-05/1.998e-05, allocations: 4 kB / 354.4 MB, free: 11.67 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2604/0.2605, allocations: 46.18 MB / 400.6 MB, free: 46.38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09435/0.3549, allocations: 71.89 MB / 472.5 MB, free: 3.008 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001532/0.3551, allocations: 51.98 kB / 472.5 MB, free: 2.957 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007191/0.3623, allocations: 2.819 MB / 475.3 MB, free: 216 kB / 314.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3623, allocations: 0 / 475.3 MB, free: 216 kB / 314.7 MB Notification: Performance of Transformations before backend: time 9.608e-06/0.3624, allocations: 4.812 kB / 475.3 MB, free: 212 kB / 314.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.0006001/0.363, allocations: 446.3 kB / 475.8 MB, free: 15.73 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.245e-05/0.363, allocations: 8.031 kB / 475.8 MB, free: 15.72 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.572e-05/0.3631, allocations: 32.62 kB / 475.8 MB, free: 15.69 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001692/0.3633, allocations: 179.1 kB / 476 MB, free: 15.48 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.32e-05/0.3633, allocations: 8 kB / 476 MB, free: 15.47 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.244e-05/0.3634, allocations: 12.53 kB / 476 MB, free: 15.46 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002165/0.3636, allocations: 105.5 kB / 476.1 MB, free: 15.36 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002714/0.3639, allocations: 159.2 kB / 476.3 MB, free: 15.2 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.529e-05/0.3639, allocations: 0.75 kB / 476.3 MB, free: 15.2 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.962e-05/0.3639, allocations: 0 / 476.3 MB, free: 15.2 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.679e-05/0.3639, allocations: 12.73 kB / 476.3 MB, free: 15.18 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001084/0.365, allocations: 0.6839 MB / 477 MB, free: 14.46 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003629/0.3654, allocations: 255.2 kB / 477.2 MB, free: 14.19 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001896/0.3656, allocations: 103 kB / 477.3 MB, free: 14.09 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.828e-05/0.3656, allocations: 8.625 kB / 477.3 MB, free: 14.08 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002196/0.3659, allocations: 126.9 kB / 477.4 MB, free: 13.95 MB / 330.7 MB Notification: Performance of pre-optimization done (n=21): time 1.714e-06/0.3659, allocations: 4.844 kB / 477.5 MB, free: 13.94 MB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.0009349/0.3668, allocations: 0.5411 MB / 478 MB, free: 13.36 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.721e-05/0.3669, allocations: 60.11 kB / 478.1 MB, free: 13.29 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001017/0.367, allocations: 114.9 kB / 478.2 MB, free: 13.17 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.13e-05/0.367, allocations: 33.7 kB / 478.2 MB, free: 13.13 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.369e-05/0.3671, allocations: 136.8 kB / 478.3 MB, free: 12.99 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.254e-05/0.3671, allocations: 68.14 kB / 478.4 MB, free: 12.93 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.075e-06/0.3672, allocations: 0 / 478.4 MB, free: 12.93 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.3673, allocations: 331.9 kB / 478.7 MB, free: 12.59 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.731e-05/0.3674, allocations: 52 kB / 478.8 MB, free: 12.54 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001367/0.3675, allocations: 116.5 kB / 478.9 MB, free: 12.4 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001286/0.3677, allocations: 78.02 kB / 479 MB, free: 12.33 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/0.3677, allocations: 3.953 kB / 479 MB, free: 12.32 MB / 330.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0002991/0.368, allocations: 215.9 kB / 479.2 MB, free: 12.11 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.368, allocations: 8 kB / 479.2 MB, free: 12.1 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.368, allocations: 0 / 479.2 MB, free: 12.1 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.797e-05/0.3681, allocations: 4 kB / 479.2 MB, free: 12.1 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000223/0.3683, allocations: 72.09 kB / 479.3 MB, free: 12.03 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.205e-06/0.3683, allocations: 4 kB / 479.3 MB, free: 12.02 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.649e-05/0.3684, allocations: 4.562 kB / 479.3 MB, free: 12.02 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.866e-05/0.3684, allocations: 8 kB / 479.3 MB, free: 12.01 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.0001377/0.3686, allocations: 121.1 kB / 479.4 MB, free: 11.89 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002473/0.3688, allocations: 181.4 kB / 479.6 MB, free: 11.7 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.941e-05/0.3689, allocations: 12.84 kB / 479.6 MB, free: 11.69 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.625e-05/0.3689, allocations: 12.75 kB / 479.6 MB, free: 11.68 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.3689, allocations: 8 kB / 479.6 MB, free: 11.68 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.3689, allocations: 0 / 479.6 MB, free: 11.68 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.3689, allocations: 6.422 kB / 479.6 MB, free: 11.67 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007135/0.3697, allocations: 0.5705 MB / 480.2 MB, free: 11.05 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.3697, allocations: 0 / 480.2 MB, free: 11.05 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001917/0.3699, allocations: 47.91 kB / 480.2 MB, free: 11 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.3699, allocations: 0 / 480.2 MB, free: 11 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.678e-05/0.3699, allocations: 4 kB / 480.2 MB, free: 11 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.786e-06/0.3699, allocations: 5.562 kB / 480.2 MB, free: 11 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.3699, allocations: 3.953 kB / 480.2 MB, free: 11 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004261/0.3704, allocations: 390.6 kB / 480.6 MB, free: 10.58 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.224e-05/0.3704, allocations: 92.88 kB / 480.7 MB, free: 10.47 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.919e-05/0.3705, allocations: 4.031 kB / 480.7 MB, free: 10.47 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.906e-05/0.3706, allocations: 4 kB / 480.7 MB, free: 10.46 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.879e-05/0.3706, allocations: 15.98 kB / 480.7 MB, free: 10.45 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.78e-05/0.3707, allocations: 11.98 kB / 480.7 MB, free: 10.44 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.688e-05/0.3707, allocations: 97.28 kB / 480.8 MB, free: 10.34 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3707, allocations: 0 / 480.8 MB, free: 10.34 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002918/0.371, allocations: 40 kB / 480.9 MB, free: 10.3 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.0008355/0.3719, allocations: 1.054 MB / 481.9 MB, free: 9.207 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002735/0.3722, allocations: 155.9 kB / 482.1 MB, free: 9.055 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.3722, allocations: 0 / 482.1 MB, free: 9.055 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001163/0.3723, allocations: 87.86 kB / 482.2 MB, free: 8.969 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001637/0.3725, allocations: 1.438 kB / 482.2 MB, free: 8.969 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001203/0.3737, allocations: 0.5594 MB / 482.7 MB, free: 8.398 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003533/0.374, allocations: 0.7361 MB / 483.5 MB, free: 7.633 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 5.744e-05/0.3741, allocations: 14.98 kB / 483.5 MB, free: 7.621 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.798e-05/0.3742, allocations: 59.41 kB / 483.5 MB, free: 7.562 MB / 330.7 MB Notification: Performance of SimCode: time 2.8e-07/0.3742, allocations: 0 / 483.5 MB, free: 7.562 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02241/0.3966, allocations: 2.695 MB / 486.2 MB, free: 4.914 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001972/0.3969, allocations: 183.6 kB / 486.4 MB, free: 4.719 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.695/2.092, allocations: 3.656 kB / 486.4 MB, free: 4.719 MB / 330.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)