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.005249/0.005249, allocations: 101.2 kB / 15.73 MB, free: 5.996 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.002122/0.002122, allocations: 185.5 kB / 16.67 MB, free: 5.93 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.473/1.473, allocations: 205.1 MB / 222.6 MB, free: 4.5 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04305/0.04305, allocations: 8.112 MB / 278 MB, free: 13.06 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.001464/0.001464, allocations: 63.91 kB / 386.2 MB, free: 9.527 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.288/0.2895, allocations: 48.3 MB / 434.5 MB, free: 7.461 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure): time 0.003116/0.2927, allocations: 1.956 MB / 436.5 MB, free: 6.094 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000961/0.2936, allocations: 0.5712 MB / 437 MB, free: 5.68 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.789e-05/0.2937, allocations: 6.844 kB / 437 MB, free: 5.676 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 7.385e-05/0.2938, allocations: 26.31 kB / 437.1 MB, free: 5.66 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001386/0.294, allocations: 51.56 kB / 437.1 MB, free: 5.621 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002057/0.2942, allocations: 49.97 kB / 437.2 MB, free: 5.594 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002303/0.2944, allocations: 209.5 kB / 437.4 MB, free: 5.492 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002505/0.2947, allocations: 99.03 kB / 437.5 MB, free: 5.441 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001911/0.2949, allocations: 83.61 kB / 437.5 MB, free: 5.402 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001272/0.295, allocations: 89.3 kB / 437.6 MB, free: 5.355 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.059e-05/0.295, allocations: 22 kB / 437.7 MB, free: 5.355 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.4e-05/0.2951, allocations: 20.62 kB / 437.7 MB, free: 5.355 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.71e-05/0.2951, allocations: 49.16 kB / 437.7 MB, free: 5.32 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001207/0.2953, allocations: 103.4 kB / 437.8 MB, free: 5.258 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002783/0.2956, allocations: 221 kB / 438 MB, free: 5.176 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.2956, allocations: 1.125 kB / 438 MB, free: 5.176 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2956, allocations: 0 / 438 MB, free: 5.176 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.602e-06/0.2956, allocations: 0 / 438 MB, free: 5.176 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.0006509/0.2962, allocations: 490 kB / 438.5 MB, free: 4.746 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/0.2963, allocations: 17.77 kB / 438.5 MB, free: 4.738 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.575e-05/0.2963, allocations: 54.44 kB / 438.6 MB, free: 4.688 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.598e-05/0.2964, allocations: 18.94 kB / 438.6 MB, free: 4.68 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.759e-05/0.2965, allocations: 191.6 kB / 438.8 MB, free: 4.461 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.107e-05/0.2965, allocations: 17.25 kB / 438.8 MB, free: 4.453 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.727e-05/0.2966, allocations: 23.89 kB / 438.8 MB, free: 4.445 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003123/0.2969, allocations: 192.3 kB / 439 MB, free: 4.352 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.759e-05/0.2969, allocations: 4.75 kB / 439 MB, free: 4.348 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.961e-05/0.2969, allocations: 6.219 kB / 439 MB, free: 4.344 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/0.297, allocations: 6.188 kB / 439 MB, free: 4.344 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002287/0.2972, allocations: 118.7 kB / 439.2 MB, free: 4.305 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001114/0.2983, allocations: 0.7274 MB / 439.9 MB, free: 3.773 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004407/0.2988, allocations: 265.3 kB / 440.1 MB, free: 3.598 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000224/0.299, allocations: 115 kB / 440.3 MB, free: 3.551 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.808e-05/0.299, allocations: 2.219 kB / 440.3 MB, free: 3.551 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002922/0.2993, allocations: 123.4 kB / 440.4 MB, free: 3.477 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 2.064e-06/0.2993, allocations: 0 / 440.4 MB, free: 3.477 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001057/0.3004, allocations: 0.6512 MB / 441 MB, free: 3.035 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.92e-05/0.3005, allocations: 63.34 kB / 441.1 MB, free: 2.965 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.599e-05/0.3005, allocations: 136 kB / 441.2 MB, free: 2.848 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.681e-05/0.3006, allocations: 31.58 kB / 441.3 MB, free: 2.812 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.084e-05/0.3006, allocations: 137.2 kB / 441.4 MB, free: 2.691 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.67e-05/0.3007, allocations: 87.23 kB / 441.5 MB, free: 2.621 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.861e-05/0.3008, allocations: 58.44 kB / 441.5 MB, free: 2.582 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.226e-05/0.3008, allocations: 332.7 kB / 441.9 MB, free: 2.258 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001321/0.301, allocations: 62.91 kB / 441.9 MB, free: 2.234 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001552/0.3011, allocations: 130.5 kB / 442 MB, free: 2.129 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002886/0.3014, allocations: 207.9 kB / 442.2 MB, free: 1.98 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.3014, allocations: 0.5312 kB / 442.2 MB, free: 1.98 MB / 318.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0004452/0.3019, allocations: 257.1 kB / 442.5 MB, free: 1.859 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/0.3019, allocations: 6.25 kB / 442.5 MB, free: 1.859 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.897e-06/0.3019, allocations: 2.188 kB / 442.5 MB, free: 1.859 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.269e-05/0.302, allocations: 3.938 kB / 442.5 MB, free: 1.859 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002334/0.3022, allocations: 68.3 kB / 442.6 MB, free: 1.848 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.427e-06/0.3022, allocations: 4.125 kB / 442.6 MB, free: 1.848 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.921e-05/0.3023, allocations: 16.02 kB / 442.6 MB, free: 1.836 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.615e-05/0.3023, allocations: 13.88 kB / 442.6 MB, free: 1.832 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.0001507/0.3025, allocations: 141.3 kB / 442.7 MB, free: 1.695 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.205e-05/0.3025, allocations: 10.83 kB / 442.8 MB, free: 1.691 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.493e-05/0.3026, allocations: 19.53 kB / 442.8 MB, free: 1.676 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.3026, allocations: 2.75 kB / 442.8 MB, free: 1.676 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.3026, allocations: 3.469 kB / 442.8 MB, free: 1.676 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.3026, allocations: 5.312 kB / 442.8 MB, free: 1.672 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007132/0.3033, allocations: 0.6248 MB / 443.4 MB, free: 1.219 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.3033, allocations: 1.344 kB / 443.4 MB, free: 1.219 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001949/0.3035, allocations: 45.83 kB / 443.5 MB, free: 1.211 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/0.3036, allocations: 5.094 kB / 443.5 MB, free: 1.207 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.907e-05/0.3036, allocations: 5.469 kB / 443.5 MB, free: 1.207 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.3036, allocations: 1.062 kB / 443.5 MB, free: 1.207 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.3036, allocations: 1.156 kB / 443.5 MB, free: 1.207 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004334/0.304, allocations: 387.6 kB / 443.8 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.055e-05/0.3041, allocations: 94.58 kB / 443.9 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.941e-05/0.3041, allocations: 7.281 kB / 443.9 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001016/0.3042, allocations: 4.75 kB / 444 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.14e-05/0.3043, allocations: 20.14 kB / 444 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.612e-05/0.3043, allocations: 12.77 kB / 444 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.048e-05/0.3044, allocations: 102.8 kB / 444.1 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3044, allocations: 0 / 444.1 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002981/0.3047, allocations: 47.56 kB / 444.1 MB, free: 0.75 MB / 318.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.0006205/0.3053, allocations: 0.9373 MB / 445.1 MB, free: 15.96 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000334/0.3057, allocations: 177.3 kB / 445.2 MB, free: 15.91 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.3057, allocations: 4 kB / 445.2 MB, free: 15.91 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001471/0.3058, allocations: 87.2 kB / 445.3 MB, free: 15.88 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002604/0.3061, allocations: 18.09 kB / 445.3 MB, free: 15.87 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002653/0.3087, allocations: 2.309 MB / 447.7 MB, free: 14 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002945/0.3091, allocations: 0.726 MB / 448.4 MB, free: 13.3 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.137e-05/0.3091, allocations: 21.64 kB / 448.4 MB, free: 13.3 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.044e-05/0.3092, allocations: 54.56 kB / 448.5 MB, free: 13.26 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3092, allocations: 0 / 448.5 MB, free: 13.26 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02146/0.3307, allocations: 3.369 MB / 451.8 MB, free: 12.2 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.049/8.38, allocations: 10.34 kB / 451.8 MB, free: 12.19 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 & python3 -m fmpy simulate --output-file ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithIntervalMeasure.fmu > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.pipe 2>&1)