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.001674/0.001674, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.002379/0.002379, allocations: 214.6 kB / 22.25 MB, free: 5.078 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.506/1.506, allocations: 207.6 MB / 233 MB, free: 10.01 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.0517/0.0517, allocations: 8.2 MB / 293.5 MB, free: 13.65 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.002411/0.002411, allocations: 76.23 kB / 410.4 MB, free: 46.86 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08767/0.09008, allocations: 50.93 MB / 461.4 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure): time 0.003419/0.0935, allocations: 1.969 MB / 463.4 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001027/0.09453, allocations: 0.586 MB / 463.9 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.833e-05/0.0946, allocations: 4 kB / 463.9 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.661e-05/0.09469, allocations: 31.72 kB / 464 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000124/0.09481, allocations: 39.58 kB / 464 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000192/0.09501, allocations: 59.91 kB / 464.1 MB, free: 10.65 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002512/0.09526, allocations: 211.1 kB / 464.3 MB, free: 10.44 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001972/0.09545, allocations: 82.58 kB / 464.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001688/0.09562, allocations: 83.78 kB / 464.4 MB, free: 10.28 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001496/0.09577, allocations: 95.59 kB / 464.5 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.997e-05/0.09581, allocations: 20 kB / 464.6 MB, free: 10.17 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.612e-05/0.09585, allocations: 24 kB / 464.6 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.862e-05/0.0959, allocations: 47.84 kB / 464.6 MB, free: 10.1 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001112/0.09601, allocations: 95.59 kB / 464.7 MB, free: 10 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002984/0.09631, allocations: 223.2 kB / 464.9 MB, free: 9.785 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.09631, allocations: 0 / 464.9 MB, free: 9.785 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.09631, allocations: 0 / 464.9 MB, free: 9.785 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.032e-05/0.09632, allocations: 0 / 464.9 MB, free: 9.785 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.0007159/0.09704, allocations: 417.9 kB / 465.3 MB, free: 9.348 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/0.09708, allocations: 15.98 kB / 465.4 MB, free: 9.332 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.357e-05/0.09715, allocations: 58.72 kB / 465.4 MB, free: 9.266 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.88e-05/0.0972, allocations: 24.78 kB / 465.4 MB, free: 9.242 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001266/0.09733, allocations: 126.2 kB / 465.6 MB, free: 9.094 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.52e-05/0.09735, allocations: 12.81 kB / 465.6 MB, free: 9.082 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.043e-05/0.0974, allocations: 28.38 kB / 465.6 MB, free: 9.055 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003385/0.09774, allocations: 195.4 kB / 465.8 MB, free: 8.855 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.412e-05/0.09776, allocations: 0 / 465.8 MB, free: 8.855 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.841e-05/0.09779, allocations: 12 kB / 465.8 MB, free: 8.844 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.623e-06/0.09779, allocations: 4 kB / 465.8 MB, free: 8.84 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002112/0.098, allocations: 121.7 kB / 465.9 MB, free: 8.723 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00113/0.09913, allocations: 0.6603 MB / 466.6 MB, free: 8.012 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004036/0.09954, allocations: 173.8 kB / 466.8 MB, free: 7.836 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002259/0.09976, allocations: 108.2 kB / 466.9 MB, free: 7.73 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.379e-05/0.09978, allocations: 0 / 466.9 MB, free: 7.73 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003677/0.1001, allocations: 123.6 kB / 467 MB, free: 7.598 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.363e-06/0.1001, allocations: 0 / 467 MB, free: 7.598 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001286/0.1014, allocations: 0.5668 MB / 467.6 MB, free: 6.996 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.037e-05/0.1015, allocations: 59.41 kB / 467.6 MB, free: 6.926 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000119/0.1016, allocations: 129.8 kB / 467.7 MB, free: 6.789 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.319e-05/0.1016, allocations: 33.7 kB / 467.8 MB, free: 6.75 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.175e-05/0.1017, allocations: 140.3 kB / 467.9 MB, free: 6.605 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.84e-05/0.1018, allocations: 83.31 kB / 468 MB, free: 6.523 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.241e-05/0.1019, allocations: 57.45 kB / 468 MB, free: 6.461 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.102, allocations: 326.8 kB / 468.4 MB, free: 6.133 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001122/0.1021, allocations: 63.97 kB / 468.4 MB, free: 6.07 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001635/0.1023, allocations: 135.7 kB / 468.6 MB, free: 5.906 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002943/0.1026, allocations: 205 kB / 468.8 MB, free: 5.68 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/0.1026, allocations: 0 / 468.8 MB, free: 5.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.00047/0.1031, allocations: 255.7 kB / 469 MB, free: 5.426 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.1031, allocations: 4 kB / 469 MB, free: 5.422 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.929e-06/0.1031, allocations: 4 kB / 469 MB, free: 5.418 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.699e-05/0.1031, allocations: 7.984 kB / 469 MB, free: 5.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002306/0.1033, allocations: 59.86 kB / 469.1 MB, free: 5.352 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.946e-06/0.1033, allocations: 4 kB / 469.1 MB, free: 5.348 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.471e-05/0.1034, allocations: 19.88 kB / 469.1 MB, free: 5.328 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.679e-05/0.1035, allocations: 16.25 kB / 469.1 MB, free: 5.312 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.0001727/0.1036, allocations: 145.7 kB / 469.3 MB, free: 5.16 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.084e-05/0.1037, allocations: 11.95 kB / 469.3 MB, free: 5.148 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.746e-05/0.1037, allocations: 16.94 kB / 469.3 MB, free: 5.129 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.053e-06/0.1037, allocations: 0 / 469.3 MB, free: 5.129 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.191e-06/0.1037, allocations: 7.922 kB / 469.3 MB, free: 5.121 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.1037, allocations: 3.938 kB / 469.3 MB, free: 5.117 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008936/0.1046, allocations: 0.5899 MB / 469.9 MB, free: 4.473 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.1046, allocations: 0 / 469.9 MB, free: 4.473 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002147/0.1048, allocations: 51.91 kB / 469.9 MB, free: 4.422 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.1048, allocations: 3.938 kB / 469.9 MB, free: 4.418 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.702e-05/0.1049, allocations: 8 kB / 470 MB, free: 4.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.06e-06/0.1049, allocations: 4 kB / 470 MB, free: 4.406 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.1049, allocations: 4 kB / 470 MB, free: 4.402 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004944/0.1054, allocations: 381.2 kB / 470.3 MB, free: 4.008 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.111e-05/0.1054, allocations: 19.83 kB / 470.4 MB, free: 3.988 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.085e-05/0.1054, allocations: 4 kB / 470.4 MB, free: 3.984 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001099/0.1055, allocations: 11.97 kB / 470.4 MB, free: 3.973 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.956e-05/0.1056, allocations: 19.97 kB / 470.4 MB, free: 3.953 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.035e-05/0.1056, allocations: 4 kB / 470.4 MB, free: 3.949 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.444e-05/0.1057, allocations: 103.3 kB / 470.5 MB, free: 3.848 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1057, allocations: 0 / 470.5 MB, free: 3.848 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002999/0.106, allocations: 48 kB / 470.5 MB, free: 3.801 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.0008403/0.1068, allocations: 0.9247 MB / 471.5 MB, free: 2.844 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003456/0.1071, allocations: 167.9 kB / 471.6 MB, free: 2.68 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.1071, allocations: 0 / 471.6 MB, free: 2.68 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001396/0.1073, allocations: 83.84 kB / 471.7 MB, free: 2.598 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000255/0.1075, allocations: 16.55 kB / 471.7 MB, free: 2.582 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002995/0.1105, allocations: 2.325 MB / 474.1 MB, free: 112 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000396/0.1109, allocations: 0.7281 MB / 474.8 MB, free: 15.36 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.939e-05/0.111, allocations: 21.64 kB / 474.8 MB, free: 15.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001105/0.1111, allocations: 59.41 kB / 474.9 MB, free: 15.28 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1111, allocations: 0 / 474.9 MB, free: 15.28 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03035/0.1415, allocations: 3.652 MB / 478.5 MB, free: 11.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/11.48, allocations: 15.84 kB / 478.5 MB, free: 11.67 MB / 350.1 MB " [Timeout remaining time 648] (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: 14.315961904998403] Failed to read output from testmodel.py, exit status != 0: 11.598094472996308 11.614600143 11.514802498 Calling exit ...