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.001001/0.001001, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001029/0.001029, allocations: 193.3 kB / 16.14 MB, free: 6.707 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.261/1.261, allocations: 205.1 MB / 222 MB, free: 4.777 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03925/0.03925, allocations: 8.112 MB / 277.4 MB, free: 13.38 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.001339/0.001339, allocations: 75.88 kB / 336.6 MB, free: 26.86 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07263/0.07398, allocations: 48.29 MB / 384.9 MB, free: 10.52 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure): time 0.002976/0.07699, allocations: 2.023 MB / 386.9 MB, free: 8.477 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007491/0.07775, allocations: 0.5581 MB / 387.5 MB, free: 7.91 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.644e-05/0.07782, allocations: 4 kB / 387.5 MB, free: 7.906 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.492e-05/0.07789, allocations: 23.84 kB / 387.5 MB, free: 7.883 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001092/0.07801, allocations: 35.69 kB / 387.5 MB, free: 7.848 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001625/0.07818, allocations: 43.95 kB / 387.6 MB, free: 7.805 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001746/0.07836, allocations: 203.2 kB / 387.8 MB, free: 7.605 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000163/0.07853, allocations: 82.73 kB / 387.9 MB, free: 7.527 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001461/0.07868, allocations: 87.66 kB / 388 MB, free: 7.441 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.92e-05/0.07879, allocations: 91.59 kB / 388 MB, free: 7.352 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.238e-05/0.07883, allocations: 20 kB / 388.1 MB, free: 7.332 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.128e-05/0.07887, allocations: 16 kB / 388.1 MB, free: 7.316 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.7e-05/0.07892, allocations: 39.84 kB / 388.1 MB, free: 7.277 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.805e-05/0.07901, allocations: 91.59 kB / 388.2 MB, free: 7.188 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002003/0.07922, allocations: 211.5 kB / 388.4 MB, free: 6.98 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.07923, allocations: 0 / 388.4 MB, free: 6.98 MB / 286.1 MB Notification: Performance of FrontEnd: time 7.61e-07/0.07923, allocations: 4 kB / 388.4 MB, free: 6.977 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.308e-06/0.07924, allocations: 0 / 388.4 MB, free: 6.977 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.0006875/0.07993, allocations: 491.3 kB / 388.9 MB, free: 6.445 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.07998, allocations: 12.03 kB / 388.9 MB, free: 6.434 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.624e-05/0.08004, allocations: 54.72 kB / 389 MB, free: 6.371 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.494e-05/0.08009, allocations: 20.75 kB / 389 MB, free: 6.352 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001337/0.08023, allocations: 176.2 kB / 389.2 MB, free: 6.141 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.976e-05/0.08026, allocations: 16.81 kB / 389.2 MB, free: 6.125 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.182e-05/0.08031, allocations: 36.27 kB / 389.2 MB, free: 6.09 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003066/0.08062, allocations: 199.3 kB / 389.4 MB, free: 5.887 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/0.08064, allocations: 0 / 389.4 MB, free: 5.887 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.819e-05/0.08068, allocations: 12 kB / 389.4 MB, free: 5.875 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.08069, allocations: 4 kB / 389.4 MB, free: 5.871 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001954/0.08089, allocations: 113.7 kB / 389.5 MB, free: 5.762 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001088/0.08199, allocations: 0.7291 MB / 390.3 MB, free: 4.969 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003997/0.0824, allocations: 263.5 kB / 390.5 MB, free: 4.684 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002044/0.08261, allocations: 116.5 kB / 390.6 MB, free: 4.57 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.317e-05/0.08264, allocations: 7.984 kB / 390.6 MB, free: 4.562 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002449/0.08289, allocations: 123.3 kB / 390.8 MB, free: 4.43 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.403e-06/0.0829, allocations: 0 / 390.8 MB, free: 4.43 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.00102/0.08392, allocations: 0.6379 MB / 391.4 MB, free: 3.738 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.166e-05/0.08397, allocations: 59.41 kB / 391.5 MB, free: 3.668 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001013/0.08408, allocations: 125.8 kB / 391.6 MB, free: 3.535 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.197e-05/0.08411, allocations: 33.7 kB / 391.6 MB, free: 3.496 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.924e-05/0.08419, allocations: 136.1 kB / 391.7 MB, free: 3.355 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.669e-05/0.08426, allocations: 82.83 kB / 391.8 MB, free: 3.273 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.934e-05/0.08434, allocations: 57.7 kB / 391.9 MB, free: 3.211 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001189/0.08446, allocations: 326.8 kB / 392.2 MB, free: 2.883 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001109/0.08458, allocations: 63.97 kB / 392.3 MB, free: 2.82 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001493/0.08473, allocations: 135.4 kB / 392.4 MB, free: 2.656 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002727/0.08501, allocations: 213 kB / 392.6 MB, free: 2.422 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.08502, allocations: 4 kB / 392.6 MB, free: 2.418 MB / 286.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003532/0.08538, allocations: 251.7 kB / 392.9 MB, free: 2.168 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.08541, allocations: 14.44 kB / 392.9 MB, free: 2.156 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.08542, allocations: 0 / 392.9 MB, free: 2.156 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.626e-05/0.08544, allocations: 4 kB / 392.9 MB, free: 2.152 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002057/0.08565, allocations: 63.91 kB / 392.9 MB, free: 2.09 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.317e-06/0.08567, allocations: 4 kB / 392.9 MB, free: 2.086 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.915e-05/0.08576, allocations: 15.92 kB / 393 MB, free: 2.07 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.507e-05/0.08578, allocations: 8 kB / 393 MB, free: 2.062 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.0001624/0.08595, allocations: 147 kB / 393.1 MB, free: 1.91 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.252e-05/0.08598, allocations: 15.81 kB / 393.1 MB, free: 1.895 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.091e-05/0.08602, allocations: 16.84 kB / 393.1 MB, free: 1.879 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.08603, allocations: 4 kB / 393.1 MB, free: 1.875 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.08605, allocations: 0 / 393.1 MB, free: 1.875 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.683e-06/0.08606, allocations: 7.922 kB / 393.1 MB, free: 1.867 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008049/0.08687, allocations: 0.6144 MB / 393.8 MB, free: 1.191 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.08688, allocations: 3.938 kB / 393.8 MB, free: 1.188 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001922/0.08708, allocations: 39.98 kB / 393.8 MB, free: 1.148 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.08709, allocations: 0 / 393.8 MB, free: 1.148 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.029e-05/0.08712, allocations: 15.92 kB / 393.8 MB, free: 1.133 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.907e-06/0.08712, allocations: 4 kB / 393.8 MB, free: 1.129 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.08713, allocations: 0 / 393.8 MB, free: 1.129 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004627/0.0876, allocations: 389 kB / 394.2 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.641e-05/0.08765, allocations: 85.02 kB / 394.3 MB, free: 0.625 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.125e-05/0.08769, allocations: 12.03 kB / 394.3 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001025/0.0878, allocations: 8 kB / 394.3 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.946e-05/0.08785, allocations: 15.98 kB / 394.3 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.015e-05/0.08788, allocations: 11.98 kB / 394.3 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.815e-05/0.08795, allocations: 95.27 kB / 394.4 MB, free: 496 kB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.08796, allocations: 0 / 394.4 MB, free: 496 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002889/0.08825, allocations: 48 kB / 394.5 MB, free: 448 kB / 286.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.0007364/0.089, allocations: 0.9444 MB / 395.4 MB, free: 15.46 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002868/0.0893, allocations: 188.1 kB / 395.6 MB, free: 15.27 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.08931, allocations: 0 / 395.6 MB, free: 15.27 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001176/0.08943, allocations: 83.92 kB / 395.7 MB, free: 15.19 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002445/0.08968, allocations: 15.98 kB / 395.7 MB, free: 15.18 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002529/0.09222, allocations: 2.385 MB / 398.1 MB, free: 12.65 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002576/0.09249, allocations: 0.7241 MB / 398.8 MB, free: 11.9 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.52e-05/0.09255, allocations: 21.55 kB / 398.8 MB, free: 11.88 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.045e-05/0.09265, allocations: 59.41 kB / 398.9 MB, free: 11.82 MB / 302.1 MB Notification: Performance of SimCode: time 2e-07/0.09265, allocations: 0 / 398.9 MB, free: 11.82 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01246/0.1051, allocations: 3.061 MB / 401.9 MB, free: 8.875 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001849/0.1053, allocations: 240 kB / 402.2 MB, free: 8.625 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.863/1.968, allocations: 4 kB / 402.2 MB, free: 8.621 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)