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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) 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.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001236/0.001236, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001364/0.001364, allocations: 194.6 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.319/1.319, allocations: 205.1 MB / 222.4 MB, free: 4.602 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04197/0.04197, allocations: 8.101 MB / 277.9 MB, free: 13.17 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaByExample requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001436/0.001437, allocations: 71.91 kB / 337.3 MB, free: 26.43 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07298/0.07443, allocations: 48.3 MB / 385.6 MB, free: 10.09 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure): time 0.002878/0.07734, allocations: 1.962 MB / 387.6 MB, free: 8.102 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000802/0.07816, allocations: 0.558 MB / 388.1 MB, free: 7.535 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.316e-05/0.07824, allocations: 4 kB / 388.1 MB, free: 7.531 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.086e-05/0.07831, allocations: 27.72 kB / 388.1 MB, free: 7.504 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001238/0.07844, allocations: 51.55 kB / 388.2 MB, free: 7.453 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000163/0.07862, allocations: 55.88 kB / 388.2 MB, free: 7.398 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001955/0.07882, allocations: 223.1 kB / 388.5 MB, free: 7.18 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001904/0.07902, allocations: 98.16 kB / 388.6 MB, free: 7.086 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001375/0.07916, allocations: 75.78 kB / 388.6 MB, free: 7.012 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001158/0.07929, allocations: 87.62 kB / 388.7 MB, free: 6.926 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.273e-05/0.07933, allocations: 24 kB / 388.7 MB, free: 6.902 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.251e-05/0.07937, allocations: 20 kB / 388.8 MB, free: 6.883 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.138e-05/0.07942, allocations: 47.83 kB / 388.8 MB, free: 6.836 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.938e-05/0.07953, allocations: 103.6 kB / 388.9 MB, free: 6.734 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002032/0.07973, allocations: 227.5 kB / 389.1 MB, free: 6.512 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.07975, allocations: 4 kB / 389.1 MB, free: 6.508 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.07975, allocations: 0 / 389.1 MB, free: 6.508 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.496e-06/0.07977, allocations: 0 / 389.1 MB, free: 6.508 MB / 286.1 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.000648/0.08042, allocations: 491.3 kB / 389.6 MB, free: 5.977 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.43e-05/0.08046, allocations: 11.89 kB / 389.6 MB, free: 5.965 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.938e-05/0.08053, allocations: 54.73 kB / 389.7 MB, free: 5.902 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.273e-05/0.08059, allocations: 20.75 kB / 389.7 MB, free: 5.883 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001382/0.08073, allocations: 188.1 kB / 389.9 MB, free: 5.66 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.798e-05/0.08075, allocations: 12.81 kB / 389.9 MB, free: 5.648 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.163e-05/0.0808, allocations: 28.28 kB / 389.9 MB, free: 5.621 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003067/0.08111, allocations: 195.4 kB / 390.1 MB, free: 5.422 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/0.08113, allocations: 0 / 390.1 MB, free: 5.422 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.985e-05/0.08116, allocations: 8 kB / 390.1 MB, free: 5.414 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.273e-06/0.08117, allocations: 8 kB / 390.1 MB, free: 5.406 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001887/0.08136, allocations: 113.7 kB / 390.2 MB, free: 5.297 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001023/0.08239, allocations: 0.729 MB / 391 MB, free: 4.504 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003773/0.08278, allocations: 267.6 kB / 391.2 MB, free: 4.215 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002014/0.083, allocations: 108.4 kB / 391.3 MB, free: 4.109 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.433e-05/0.08302, allocations: 4 kB / 391.3 MB, free: 4.105 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002362/0.08326, allocations: 127.3 kB / 391.5 MB, free: 3.969 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 2.825e-06/0.08327, allocations: 0 / 391.5 MB, free: 3.969 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.0009906/0.08427, allocations: 0.6417 MB / 392.1 MB, free: 3.273 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.567e-05/0.08432, allocations: 55.41 kB / 392.2 MB, free: 3.207 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.468e-05/0.08442, allocations: 129.8 kB / 392.3 MB, free: 3.07 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.329e-05/0.08445, allocations: 33.7 kB / 392.3 MB, free: 3.031 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.648e-05/0.08454, allocations: 140.1 kB / 392.5 MB, free: 2.887 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.036e-05/0.08462, allocations: 82.84 kB / 392.5 MB, free: 2.805 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.082e-05/0.0847, allocations: 53.7 kB / 392.6 MB, free: 2.746 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000122/0.08483, allocations: 330.8 kB / 392.9 MB, free: 2.414 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.918e-05/0.08493, allocations: 59.97 kB / 393 MB, free: 2.355 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002297/0.08517, allocations: 139.4 kB / 393.1 MB, free: 2.188 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003031/0.08548, allocations: 214.1 kB / 393.3 MB, free: 1.953 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.0855, allocations: 0 / 393.3 MB, free: 1.953 MB / 286.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003434/0.08585, allocations: 255.6 kB / 393.6 MB, free: 1.699 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.08587, allocations: 8.609 kB / 393.6 MB, free: 1.691 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.08588, allocations: 4 kB / 393.6 MB, free: 1.688 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.412e-05/0.0859, allocations: 8.25 kB / 393.6 MB, free: 1.68 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002023/0.08611, allocations: 55.86 kB / 393.6 MB, free: 1.625 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.919e-06/0.08613, allocations: 7.984 kB / 393.7 MB, free: 1.617 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.719e-05/0.08622, allocations: 11.94 kB / 393.7 MB, free: 1.605 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.743e-05/0.08624, allocations: 16 kB / 393.7 MB, free: 1.59 MB / 286.1 MB Warning: Assuming fixed start value for the following 1 variables: intervalMeasure.w:DISCRETE(flow=false 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 (intervalMeasure.last_time,$PRE.intervalMeasure.last_time,$PRE.intervalMeasure.w,intervalMeasure.w,intervalMeasure.prev_phi,$PRE.intervalMeasure.prev_phi,intervalMeasure.next_phi,$PRE.intervalMeasure.next_phi,$whenCondition1,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001435/0.08639, allocations: 141.8 kB / 393.8 MB, free: 1.441 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.3e-05/0.08642, allocations: 11.81 kB / 393.8 MB, free: 1.43 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.061e-05/0.08647, allocations: 24.83 kB / 393.9 MB, free: 1.41 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.08648, allocations: 4 kB / 393.9 MB, free: 1.406 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.08648, allocations: 0 / 393.9 MB, free: 1.406 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.08649, allocations: 3.938 kB / 393.9 MB, free: 1.402 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007313/0.08723, allocations: 0.6183 MB / 394.5 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.08725, allocations: 8 kB / 394.5 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001808/0.08743, allocations: 39.92 kB / 394.5 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.899e-06/0.08745, allocations: 7.984 kB / 394.5 MB, free: 0.668 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.511e-05/0.08747, allocations: 4 kB / 394.5 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.08748, allocations: 4 kB / 394.5 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.08748, allocations: 0 / 394.5 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000412/0.0879, allocations: 388.8 kB / 394.9 MB, free: 264 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.856e-05/0.08795, allocations: 85.02 kB / 395 MB, free: 160 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.494e-05/0.08799, allocations: 8 kB / 395 MB, free: 152 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000102/0.0881, allocations: 11.94 kB / 395 MB, free: 140 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.146e-05/0.08814, allocations: 19.91 kB / 395 MB, free: 120 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.984e-05/0.08817, allocations: 12 kB / 395.1 MB, free: 108 kB / 286.1 MB Notification: Performance of sorting global known variables: time 4.817e-05/0.08822, allocations: 95.27 kB / 395.2 MB, free: 12 kB / 286.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.08823, allocations: 0 / 395.2 MB, free: 12 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002881/0.08852, allocations: 48.05 kB / 395.2 MB, free: 15.96 MB / 302.1 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.flange_a.phi,inertia1.w) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006543/0.08918, allocations: 0.9329 MB / 396.1 MB, free: 15 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003001/0.08949, allocations: 196 kB / 396.3 MB, free: 14.8 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.08951, allocations: 4 kB / 396.3 MB, free: 14.8 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001197/0.08963, allocations: 83.91 kB / 396.4 MB, free: 14.72 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002355/0.08987, allocations: 18.28 kB / 396.4 MB, free: 14.7 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002178/0.09206, allocations: 2.307 MB / 398.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002512/0.09232, allocations: 0.7319 MB / 399.5 MB, free: 11.49 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.354e-05/0.09238, allocations: 17.53 kB / 399.5 MB, free: 11.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.544e-05/0.09247, allocations: 55.42 kB / 399.5 MB, free: 11.42 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.09248, allocations: 4 kB / 399.5 MB, free: 11.42 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07688/0.1694, allocations: 3.276 MB / 402.8 MB, free: 8.23 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.254/7.423, allocations: 16.47 kB / 402.8 MB, free: 8.219 MB / 302.1 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/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)