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.006408/0.006408, allocations: 101.1 kB / 15.73 MB, free: 5.523 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.002058/0.002058, allocations: 197.5 kB / 16.67 MB, free: 5.461 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.525/1.525, allocations: 205.1 MB / 222.5 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04248/0.04248, allocations: 8.112 MB / 278 MB, free: 3.949 MB / 222.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.002409/0.002409, allocations: 71.41 kB / 386.2 MB, free: 47.45 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09676/0.09919, allocations: 48.32 MB / 434.5 MB, free: 9.055 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure): time 0.002937/0.1022, allocations: 1.97 MB / 436.5 MB, free: 7.078 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009115/0.1031, allocations: 0.5658 MB / 437 MB, free: 6.504 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001441/0.1033, allocations: 8 kB / 437 MB, free: 6.496 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 8.925e-05/0.1034, allocations: 27.72 kB / 437.1 MB, free: 6.469 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001773/0.1036, allocations: 47.55 kB / 437.1 MB, free: 6.422 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002188/0.1038, allocations: 51.94 kB / 437.2 MB, free: 6.371 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002067/0.104, allocations: 211.2 kB / 437.4 MB, free: 6.164 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002273/0.1043, allocations: 102.1 kB / 437.5 MB, free: 6.062 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000193/0.1045, allocations: 87.75 kB / 437.6 MB, free: 5.977 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001247/0.1046, allocations: 91.62 kB / 437.6 MB, free: 5.887 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.102e-05/0.1046, allocations: 20 kB / 437.7 MB, free: 5.867 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.441e-05/0.1047, allocations: 20 kB / 437.7 MB, free: 5.848 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.31e-05/0.1047, allocations: 47.89 kB / 437.7 MB, free: 5.801 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001052/0.1048, allocations: 99.53 kB / 437.8 MB, free: 5.703 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002173/0.105, allocations: 230.9 kB / 438.1 MB, free: 5.48 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.1051, allocations: 0 / 438.1 MB, free: 5.48 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1051, allocations: 0 / 438.1 MB, free: 5.48 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.153e-06/0.1051, allocations: 0 / 438.1 MB, free: 5.48 MB / 318.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.0006524/0.1057, allocations: 487.3 kB / 438.5 MB, free: 4.957 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.907e-05/0.1058, allocations: 11.89 kB / 438.5 MB, free: 4.945 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.735e-05/0.1058, allocations: 54.73 kB / 438.6 MB, free: 4.883 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.67e-05/0.1059, allocations: 16.75 kB / 438.6 MB, free: 4.867 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001078/0.106, allocations: 192 kB / 438.8 MB, free: 4.641 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.721e-05/0.106, allocations: 16.8 kB / 438.8 MB, free: 4.625 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.092e-05/0.1061, allocations: 20.38 kB / 438.8 MB, free: 4.605 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002718/0.1063, allocations: 199.4 kB / 439 MB, free: 4.402 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.1064, allocations: 4 kB / 439 MB, free: 4.398 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.923e-05/0.1064, allocations: 4 kB / 439 MB, free: 4.395 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.1064, allocations: 4 kB / 439 MB, free: 4.391 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001656/0.1066, allocations: 121.7 kB / 439.2 MB, free: 4.273 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009085/0.1075, allocations: 0.7173 MB / 439.9 MB, free: 3.492 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003193/0.1078, allocations: 271.5 kB / 440.1 MB, free: 3.199 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001813/0.108, allocations: 104.8 kB / 440.2 MB, free: 3.094 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.743e-05/0.108, allocations: 3.984 kB / 440.2 MB, free: 3.09 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002403/0.1083, allocations: 127.2 kB / 440.4 MB, free: 2.953 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.733e-06/0.1083, allocations: 0 / 440.4 MB, free: 2.953 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0009274/0.1092, allocations: 0.6444 MB / 441 MB, free: 2.258 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.128e-05/0.1093, allocations: 55.41 kB / 441.1 MB, free: 2.191 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.619e-05/0.1094, allocations: 137.7 kB / 441.2 MB, free: 2.047 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.787e-05/0.1094, allocations: 29.7 kB / 441.2 MB, free: 2.012 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.543e-05/0.1094, allocations: 132.2 kB / 441.4 MB, free: 1.879 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.103e-05/0.1095, allocations: 86.83 kB / 441.4 MB, free: 1.793 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.391e-05/0.1096, allocations: 61.36 kB / 441.5 MB, free: 1.727 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.067e-05/0.1096, allocations: 334.8 kB / 441.8 MB, free: 1.391 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.512e-05/0.1097, allocations: 59.97 kB / 441.9 MB, free: 1.332 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001103/0.1098, allocations: 127.9 kB / 442 MB, free: 1.176 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002217/0.11, allocations: 217 kB / 442.2 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.1101, allocations: 4 kB / 442.2 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.000287/0.1103, allocations: 247.6 kB / 442.5 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.1104, allocations: 8 kB / 442.5 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.109e-06/0.1104, allocations: 0 / 442.5 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.824e-05/0.1104, allocations: 7.984 kB / 442.5 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000194/0.1106, allocations: 63.84 kB / 442.6 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.225e-06/0.1106, allocations: 4.25 kB / 442.6 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.928e-05/0.1107, allocations: 15.94 kB / 442.6 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.436e-05/0.1107, allocations: 15.98 kB / 442.6 MB, free: 0.5742 MB / 318.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.0001369/0.1109, allocations: 141.8 kB / 442.7 MB, free: 436 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.221e-05/0.1109, allocations: 11.91 kB / 442.7 MB, free: 424 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.058e-05/0.1109, allocations: 16.84 kB / 442.8 MB, free: 408 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.111, allocations: 4 kB / 442.8 MB, free: 404 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.111, allocations: 0 / 442.8 MB, free: 404 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.161e-06/0.111, allocations: 11.92 kB / 442.8 MB, free: 392 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007538/0.1117, allocations: 0.6249 MB / 443.4 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.1118, allocations: 4 kB / 443.4 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001948/0.112, allocations: 39.92 kB / 443.4 MB, free: 15.65 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.299e-06/0.112, allocations: 3.938 kB / 443.4 MB, free: 15.65 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.966e-05/0.112, allocations: 11.98 kB / 443.5 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.112, allocations: 4.062 kB / 443.5 MB, free: 15.63 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.112, allocations: 4 kB / 443.5 MB, free: 15.63 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000457/0.1125, allocations: 373 kB / 443.8 MB, free: 15.24 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.038e-05/0.1125, allocations: 92.86 kB / 443.9 MB, free: 15.13 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.137e-05/0.1126, allocations: 8.031 kB / 443.9 MB, free: 15.12 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000104/0.1127, allocations: 11.94 kB / 443.9 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.937e-05/0.1127, allocations: 19.92 kB / 444 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.446e-05/0.1128, allocations: 15.98 kB / 444 MB, free: 15.08 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.165e-05/0.1129, allocations: 94.89 kB / 444.1 MB, free: 14.99 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1129, allocations: 4 kB / 444.1 MB, free: 14.98 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003168/0.1132, allocations: 44 kB / 444.1 MB, free: 14.94 MB / 334.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.0007861/0.114, allocations: 0.9285 MB / 445 MB, free: 13.98 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003148/0.1143, allocations: 180.1 kB / 445.2 MB, free: 13.8 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.1143, allocations: 0 / 445.2 MB, free: 13.8 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001376/0.1145, allocations: 96.41 kB / 445.3 MB, free: 13.71 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002694/0.1147, allocations: 18.56 kB / 445.3 MB, free: 13.7 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003045/0.1178, allocations: 2.312 MB / 447.6 MB, free: 11.24 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004368/0.1183, allocations: 0.7319 MB / 448.4 MB, free: 10.48 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.652e-05/0.1183, allocations: 17.53 kB / 448.4 MB, free: 10.46 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000116/0.1185, allocations: 55.42 kB / 448.4 MB, free: 10.41 MB / 334.1 MB Notification: Performance of SimCode: time 1.573e-06/0.1185, allocations: 0 / 448.4 MB, free: 10.41 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02313/0.1416, allocations: 3.423 MB / 451.9 MB, free: 7.117 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.641/7.783, allocations: 23.72 kB / 451.9 MB, free: 7.098 MB / 334.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)