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.005703/0.005703, allocations: 99.48 kB / 15.73 MB, free: 6.02 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.001228/0.001228, allocations: 195.8 kB / 16.68 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.399/1.399, allocations: 205.1 MB / 222.5 MB, free: 4.512 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04896/0.04896, allocations: 8.113 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.002048/0.002048, allocations: 75.88 kB / 386.2 MB, free: 9.508 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.241/0.243, allocations: 48.29 MB / 434.5 MB, free: 7.465 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure): time 0.002825/0.2459, allocations: 1.959 MB / 436.5 MB, free: 6.098 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008712/0.2468, allocations: 0.5705 MB / 437 MB, free: 5.684 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001126/0.2469, allocations: 6.781 kB / 437 MB, free: 5.68 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 7.871e-05/0.247, allocations: 25.28 kB / 437.1 MB, free: 5.664 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001437/0.2472, allocations: 42.69 kB / 437.1 MB, free: 5.633 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002089/0.2474, allocations: 59.66 kB / 437.2 MB, free: 5.598 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000222/0.2476, allocations: 209.1 kB / 437.4 MB, free: 5.496 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002145/0.2478, allocations: 99.2 kB / 437.5 MB, free: 5.445 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001976/0.248, allocations: 82.62 kB / 437.5 MB, free: 5.406 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001492/0.2482, allocations: 89.91 kB / 437.6 MB, free: 5.359 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.994e-05/0.2482, allocations: 21.94 kB / 437.7 MB, free: 5.359 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.354e-05/0.2483, allocations: 20.47 kB / 437.7 MB, free: 5.359 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.441e-05/0.2483, allocations: 46.25 kB / 437.7 MB, free: 5.328 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.772e-05/0.2484, allocations: 102.6 kB / 437.8 MB, free: 5.266 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002783/0.2487, allocations: 225.2 kB / 438 MB, free: 5.18 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.2487, allocations: 0 / 438 MB, free: 5.18 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.2487, allocations: 0.6562 kB / 438 MB, free: 5.18 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.112e-05/0.2488, allocations: 1.438 kB / 438 MB, free: 5.18 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.0007/0.2495, allocations: 489.1 kB / 438.5 MB, free: 4.75 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.2495, allocations: 17.48 kB / 438.5 MB, free: 4.742 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.794e-05/0.2496, allocations: 54.64 kB / 438.6 MB, free: 4.691 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.123e-05/0.2496, allocations: 19.08 kB / 438.6 MB, free: 4.684 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001033/0.2497, allocations: 187.4 kB / 438.8 MB, free: 4.469 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.071e-05/0.2498, allocations: 17.62 kB / 438.8 MB, free: 4.461 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.183e-05/0.2498, allocations: 24.06 kB / 438.8 MB, free: 4.453 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003188/0.2501, allocations: 195.8 kB / 439 MB, free: 4.355 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.545e-05/0.2502, allocations: 1.438 kB / 439 MB, free: 4.355 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.218e-05/0.2502, allocations: 6.25 kB / 439 MB, free: 4.352 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.2502, allocations: 8.812 kB / 439 MB, free: 4.348 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002009/0.2504, allocations: 126.9 kB / 439.2 MB, free: 4.301 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001057/0.2515, allocations: 0.7197 MB / 439.9 MB, free: 3.777 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003887/0.2519, allocations: 261.4 kB / 440.1 MB, free: 3.605 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002134/0.2521, allocations: 115.6 kB / 440.3 MB, free: 3.559 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.746e-05/0.2521, allocations: 1.281 kB / 440.3 MB, free: 3.559 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000252/0.2524, allocations: 131.7 kB / 440.4 MB, free: 3.477 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.783e-06/0.2524, allocations: 0 / 440.4 MB, free: 3.477 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001063/0.2535, allocations: 0.6514 MB / 441 MB, free: 3.035 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.404e-05/0.2535, allocations: 59.62 kB / 441.1 MB, free: 2.969 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.898e-05/0.2536, allocations: 132 kB / 441.2 MB, free: 2.855 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.988e-05/0.2536, allocations: 35.92 kB / 441.3 MB, free: 2.816 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.9e-05/0.2537, allocations: 134.9 kB / 441.4 MB, free: 2.695 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.582e-05/0.2538, allocations: 88.3 kB / 441.5 MB, free: 2.625 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.942e-05/0.2539, allocations: 58.31 kB / 441.5 MB, free: 2.586 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.416e-05/0.2539, allocations: 327.4 kB / 441.9 MB, free: 2.266 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000131/0.2541, allocations: 63.3 kB / 441.9 MB, free: 2.242 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001513/0.2542, allocations: 133.7 kB / 442 MB, free: 2.133 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002939/0.2545, allocations: 209.4 kB / 442.2 MB, free: 1.984 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.2545, allocations: 1.156 kB / 442.2 MB, free: 1.984 MB / 318.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0004452/0.255, allocations: 256.1 kB / 442.5 MB, free: 1.863 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.147e-05/0.255, allocations: 6.891 kB / 442.5 MB, free: 1.863 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.255, allocations: 2.188 kB / 442.5 MB, free: 1.863 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.96e-05/0.2551, allocations: 4.625 kB / 442.5 MB, free: 1.863 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002132/0.2553, allocations: 60.48 kB / 442.6 MB, free: 1.855 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.119e-05/0.2553, allocations: 5.812 kB / 442.6 MB, free: 1.855 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.871e-05/0.2554, allocations: 16.33 kB / 442.6 MB, free: 1.844 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.893e-05/0.2554, allocations: 13.64 kB / 442.6 MB, free: 1.84 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.0001416/0.2556, allocations: 146.2 kB / 442.7 MB, free: 1.699 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.383e-05/0.2556, allocations: 11.42 kB / 442.8 MB, free: 1.695 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.076e-05/0.2556, allocations: 15.91 kB / 442.8 MB, free: 1.684 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.2557, allocations: 3.469 kB / 442.8 MB, free: 1.684 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.2557, allocations: 0 / 442.8 MB, free: 1.684 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.2557, allocations: 5.438 kB / 442.8 MB, free: 1.68 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000697/0.2564, allocations: 0.6304 MB / 443.4 MB, free: 1.227 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.2564, allocations: 0 / 443.4 MB, free: 1.227 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001836/0.2566, allocations: 44.08 kB / 443.5 MB, free: 1.219 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.11e-06/0.2566, allocations: 6.688 kB / 443.5 MB, free: 1.215 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.801e-05/0.2566, allocations: 8.531 kB / 443.5 MB, free: 1.211 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.2566, allocations: 1.375 kB / 443.5 MB, free: 1.211 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.2566, allocations: 1.375 kB / 443.5 MB, free: 1.211 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003981/0.257, allocations: 385.7 kB / 443.9 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.436e-05/0.2571, allocations: 90.39 kB / 443.9 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.016e-05/0.2571, allocations: 7.266 kB / 443.9 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001032/0.2572, allocations: 17.47 kB / 444 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.827e-05/0.2573, allocations: 12.5 kB / 444 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.314e-05/0.2573, allocations: 11.53 kB / 444 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.85e-05/0.2574, allocations: 103 kB / 444.1 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2574, allocations: 0 / 444.1 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002998/0.2577, allocations: 47.88 kB / 444.1 MB, free: 0.7539 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.0006063/0.2583, allocations: 0.9338 MB / 445.1 MB, free: 15.97 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003345/0.2586, allocations: 184.6 kB / 445.2 MB, free: 15.91 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.2587, allocations: 1.312 kB / 445.2 MB, free: 15.91 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001423/0.2588, allocations: 86.09 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.0002536/0.2591, allocations: 14.09 kB / 445.3 MB, free: 15.88 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002903/0.262, allocations: 2.306 MB / 447.7 MB, free: 14.01 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003912/0.2624, allocations: 0.7257 MB / 448.4 MB, free: 13.32 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.483e-05/0.2625, allocations: 20.47 kB / 448.4 MB, free: 13.31 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.609e-05/0.2626, allocations: 54.78 kB / 448.5 MB, free: 13.27 MB / 334.1 MB Notification: Performance of SimCode: time 2.144e-06/0.2626, allocations: 1.375 kB / 448.5 MB, free: 13.27 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02615/0.2887, allocations: 3.371 MB / 451.8 MB, free: 12.2 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.895/8.184, allocations: 9.156 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)