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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001362/0.001362, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001505/0.001505, allocations: 216.5 kB / 22.25 MB, free: 5.262 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.375/1.375, allocations: 207.7 MB / 233.1 MB, free: 9.777 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.049/0.049, allocations: 8.185 MB / 293.5 MB, free: 13.46 MB / 238.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.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.003202/0.003202, allocations: 77.98 kB / 410.4 MB, free: 47 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07647/0.07968, allocations: 50.93 MB / 461.4 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure): time 0.003572/0.08325, allocations: 1.877 MB / 463.3 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001297/0.08455, allocations: 0.5626 MB / 463.8 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000189/0.08474, allocations: 4 kB / 463.8 MB, free: 10.97 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001119/0.08485, allocations: 23.72 kB / 463.8 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002333/0.08508, allocations: 43.62 kB / 463.9 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002472/0.08533, allocations: 55.86 kB / 463.9 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002546/0.08558, allocations: 203.2 kB / 464.1 MB, free: 10.65 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000213/0.0858, allocations: 74.58 kB / 464.2 MB, free: 10.58 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002134/0.08601, allocations: 103.6 kB / 464.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001353/0.08614, allocations: 67.69 kB / 464.4 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.991e-05/0.08618, allocations: 31.94 kB / 464.4 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.764e-05/0.08622, allocations: 20 kB / 464.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.051e-05/0.08627, allocations: 43.84 kB / 464.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001091/0.08638, allocations: 87.64 kB / 464.6 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002702/0.08665, allocations: 219.2 kB / 464.8 MB, free: 10.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.173e-06/0.08666, allocations: 3.984 kB / 464.8 MB, free: 10.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.08666, allocations: 0 / 464.8 MB, free: 10.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.181e-06/0.08667, allocations: 0 / 464.8 MB, free: 10.02 MB / 334.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.0007477/0.08741, allocations: 418 kB / 465.2 MB, free: 9.578 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/0.08746, allocations: 11.98 kB / 465.2 MB, free: 9.566 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.947e-05/0.08754, allocations: 58.72 kB / 465.3 MB, free: 9.5 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.592e-05/0.08759, allocations: 16.84 kB / 465.3 MB, free: 9.484 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00013/0.08772, allocations: 130.3 kB / 465.4 MB, free: 9.332 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.008e-05/0.08775, allocations: 16.81 kB / 465.4 MB, free: 9.316 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.125e-05/0.0878, allocations: 28.36 kB / 465.4 MB, free: 9.289 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003335/0.08813, allocations: 199.3 kB / 465.6 MB, free: 9.086 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.417e-05/0.08814, allocations: 0 / 465.6 MB, free: 9.086 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.232e-05/0.08817, allocations: 8 kB / 465.6 MB, free: 9.078 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.652e-06/0.08817, allocations: 4 kB / 465.6 MB, free: 9.074 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002095/0.08838, allocations: 125.7 kB / 465.8 MB, free: 8.953 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001158/0.08954, allocations: 0.6136 MB / 466.4 MB, free: 8.289 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004034/0.08994, allocations: 166.5 kB / 466.5 MB, free: 8.117 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002238/0.09017, allocations: 92.81 kB / 466.6 MB, free: 8.023 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.791e-05/0.09019, allocations: 4 kB / 466.6 MB, free: 8.02 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003165/0.0905, allocations: 131.5 kB / 466.8 MB, free: 7.879 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.603e-06/0.0905, allocations: 0 / 466.8 MB, free: 7.879 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001106/0.09161, allocations: 0.5591 MB / 467.3 MB, free: 7.285 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.894e-05/0.09167, allocations: 55.41 kB / 467.4 MB, free: 7.219 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001154/0.09178, allocations: 133.8 kB / 467.5 MB, free: 7.078 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.731e-05/0.09181, allocations: 33.7 kB / 467.5 MB, free: 7.039 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.769e-05/0.09191, allocations: 140.3 kB / 467.7 MB, free: 6.895 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.793e-05/0.09198, allocations: 83.31 kB / 467.8 MB, free: 6.812 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.524e-05/0.09207, allocations: 61.41 kB / 467.8 MB, free: 6.746 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.09222, allocations: 334.8 kB / 468.2 MB, free: 6.41 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001054/0.09233, allocations: 59.97 kB / 468.2 MB, free: 6.352 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001719/0.0925, allocations: 135.6 kB / 468.3 MB, free: 6.188 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003001/0.0928, allocations: 205 kB / 468.5 MB, free: 5.961 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.0928, allocations: 4 kB / 468.5 MB, free: 5.957 MB / 334.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003711/0.09317, allocations: 259.6 kB / 468.8 MB, free: 5.699 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.09319, allocations: 4 kB / 468.8 MB, free: 5.695 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.186e-06/0.0932, allocations: 4 kB / 468.8 MB, free: 5.691 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.994e-05/0.09322, allocations: 7.984 kB / 468.8 MB, free: 5.684 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002217/0.09344, allocations: 59.91 kB / 468.9 MB, free: 5.625 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.033e-06/0.09345, allocations: 256 / 468.9 MB, free: 5.625 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.472e-05/0.09354, allocations: 19.94 kB / 468.9 MB, free: 5.605 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.741e-05/0.09356, allocations: 12 kB / 468.9 MB, free: 5.594 MB / 334.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.0001822/0.09374, allocations: 145.7 kB / 469 MB, free: 5.441 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.236e-05/0.09376, allocations: 11.89 kB / 469.1 MB, free: 5.43 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.15e-05/0.09382, allocations: 20.94 kB / 469.1 MB, free: 5.406 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.389e-06/0.09382, allocations: 4 kB / 469.1 MB, free: 5.402 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.09383, allocations: 0 / 469.1 MB, free: 5.402 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.348e-06/0.09383, allocations: 7.922 kB / 469.1 MB, free: 5.395 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008518/0.09469, allocations: 0.5704 MB / 469.7 MB, free: 4.77 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.631e-06/0.09469, allocations: 7.984 kB / 469.7 MB, free: 4.762 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001859/0.09488, allocations: 35.98 kB / 469.7 MB, free: 4.727 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.88e-06/0.09488, allocations: 3.938 kB / 469.7 MB, free: 4.723 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.754e-05/0.0949, allocations: 8 kB / 469.7 MB, free: 4.715 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.0949, allocations: 0 / 469.7 MB, free: 4.715 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.0949, allocations: 4 kB / 469.7 MB, free: 4.711 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000516/0.09542, allocations: 389.1 kB / 470.1 MB, free: 4.309 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.41e-05/0.09544, allocations: 19.95 kB / 470.1 MB, free: 4.289 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.912e-05/0.09547, allocations: 8 kB / 470.1 MB, free: 4.281 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001038/0.09558, allocations: 12.03 kB / 470.1 MB, free: 4.27 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.58e-05/0.09563, allocations: 15.97 kB / 470.2 MB, free: 4.254 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.201e-05/0.09565, allocations: 8 kB / 470.2 MB, free: 4.246 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.911e-05/0.09573, allocations: 103.1 kB / 470.3 MB, free: 4.148 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.09573, allocations: 3.938 kB / 470.3 MB, free: 4.145 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002848/0.09602, allocations: 44 kB / 470.3 MB, free: 4.102 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.0008554/0.09687, allocations: 0.9362 MB / 471.2 MB, free: 3.133 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003106/0.09718, allocations: 171.9 kB / 471.4 MB, free: 2.965 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.09719, allocations: 0 / 471.4 MB, free: 2.965 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001296/0.09732, allocations: 83.89 kB / 471.5 MB, free: 2.883 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002478/0.09756, allocations: 18.73 kB / 471.5 MB, free: 2.867 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002757/0.1003, allocations: 2.34 MB / 473.9 MB, free: 392 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001217/0.1004, allocations: 116.2 kB / 474 MB, free: 260 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.034e-05/0.1005, allocations: 21.64 kB / 474 MB, free: 236 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.61e-05/0.1006, allocations: 55.42 kB / 474 MB, free: 180 kB / 334.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1006, allocations: 0 / 474 MB, free: 180 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03066/0.1313, allocations: 3.9 MB / 477.9 MB, free: 12.32 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.95/11.09, allocations: 7.875 kB / 478 MB, free: 12.31 MB / 350.1 MB " [Timeout remaining time 649] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.749707351904362] Failed to read output from testmodel.py, exit status != 0: 11.19320665486157 11.212506862 11.122643496 Calling exit ...