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.001834/0.001834, 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.002308/0.002308, allocations: 210.5 kB / 22.24 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.419/1.419, allocations: 207.7 MB / 233.1 MB, free: 9.785 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.04943/0.04943, allocations: 8.188 MB / 293.5 MB, free: 13.47 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.002179/0.002179, allocations: 73.2 kB / 410.4 MB, free: 46.79 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0882/0.09038, allocations: 50.94 MB / 461.4 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure): time 0.003463/0.09384, allocations: 1.878 MB / 463.3 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009943/0.09484, allocations: 0.5587 MB / 463.8 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.308e-05/0.09491, allocations: 4 kB / 463.8 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.902e-05/0.095, allocations: 23.72 kB / 463.8 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001432/0.09514, allocations: 43.62 kB / 463.9 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001944/0.09534, allocations: 55.86 kB / 463.9 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002644/0.0956, allocations: 203.2 kB / 464.1 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002161/0.09582, allocations: 74.58 kB / 464.2 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001946/0.09601, allocations: 91.7 kB / 464.3 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001359/0.09615, allocations: 79.61 kB / 464.4 MB, free: 10.26 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.614e-05/0.09619, allocations: 28 kB / 464.4 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.882e-05/0.09623, allocations: 23.94 kB / 464.4 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.152e-05/0.09629, allocations: 39.91 kB / 464.5 MB, free: 10.17 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001182/0.0964, allocations: 87.64 kB / 464.6 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002743/0.09668, allocations: 219.2 kB / 464.8 MB, free: 9.871 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.09668, allocations: 0 / 464.8 MB, free: 9.871 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.09668, allocations: 0 / 464.8 MB, free: 9.871 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.09669, allocations: 0 / 464.8 MB, free: 9.871 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.0007908/0.09748, allocations: 421.9 kB / 465.2 MB, free: 9.43 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.09752, allocations: 11.98 kB / 465.2 MB, free: 9.418 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.259e-05/0.09759, allocations: 62.7 kB / 465.3 MB, free: 9.348 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.754e-05/0.09764, allocations: 16.84 kB / 465.3 MB, free: 9.332 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001425/0.09778, allocations: 130.3 kB / 465.4 MB, free: 9.18 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.475e-05/0.09781, allocations: 16.81 kB / 465.4 MB, free: 9.164 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.095e-05/0.09786, allocations: 24.38 kB / 465.4 MB, free: 9.141 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003499/0.09821, allocations: 199.3 kB / 465.6 MB, free: 8.938 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.538e-05/0.09822, allocations: 0 / 465.6 MB, free: 8.938 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.245e-05/0.09825, allocations: 8 kB / 465.6 MB, free: 8.93 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.455e-06/0.09826, allocations: 8 kB / 465.6 MB, free: 8.922 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002266/0.09848, allocations: 117.6 kB / 465.8 MB, free: 8.809 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001272/0.09975, allocations: 0.6174 MB / 466.4 MB, free: 8.141 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003984/0.1002, allocations: 170.5 kB / 466.5 MB, free: 7.965 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002222/0.1004, allocations: 92.81 kB / 466.6 MB, free: 7.871 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.716e-05/0.1004, allocations: 4 kB / 466.6 MB, free: 7.867 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000311/0.1007, allocations: 127.6 kB / 466.8 MB, free: 7.73 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.503e-06/0.1007, allocations: 0 / 466.8 MB, free: 7.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001152/0.1019, allocations: 0.5591 MB / 467.3 MB, free: 7.137 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.586e-05/0.1019, allocations: 59.39 kB / 467.4 MB, free: 7.066 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001178/0.102, allocations: 137.7 kB / 467.5 MB, free: 6.922 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.685e-05/0.1021, allocations: 33.7 kB / 467.5 MB, free: 6.883 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.315e-05/0.1022, allocations: 132.4 kB / 467.7 MB, free: 6.746 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.544e-05/0.1022, allocations: 83.31 kB / 467.8 MB, free: 6.664 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.425e-05/0.1023, allocations: 61.41 kB / 467.8 MB, free: 6.598 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002297/0.1026, allocations: 338.8 kB / 468.2 MB, free: 6.258 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001069/0.1027, allocations: 59.98 kB / 468.2 MB, free: 6.199 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000173/0.1028, allocations: 135.6 kB / 468.3 MB, free: 6.035 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002953/0.1031, allocations: 209 kB / 468.5 MB, free: 5.805 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.1031, allocations: 0 / 468.5 MB, free: 5.805 MB / 334.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003699/0.1035, allocations: 251.7 kB / 468.8 MB, free: 5.555 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.1035, allocations: 4 kB / 468.8 MB, free: 5.551 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.1035, allocations: 8 kB / 468.8 MB, free: 5.543 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.857e-05/0.1035, allocations: 4 kB / 468.8 MB, free: 5.539 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003019/0.1039, allocations: 63.91 kB / 468.9 MB, free: 5.477 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.264e-06/0.1039, allocations: 4.25 kB / 468.9 MB, free: 5.473 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.956e-05/0.104, allocations: 15.94 kB / 468.9 MB, free: 5.457 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.061e-05/0.104, allocations: 12 kB / 468.9 MB, free: 5.445 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.0001884/0.1042, allocations: 149.6 kB / 469 MB, free: 5.289 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.598e-05/0.1042, allocations: 11.94 kB / 469.1 MB, free: 5.277 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.996e-05/0.1042, allocations: 16.94 kB / 469.1 MB, free: 5.258 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.1042, allocations: 4 kB / 469.1 MB, free: 5.254 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.1043, allocations: 0 / 469.1 MB, free: 5.254 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-06/0.1043, allocations: 3.938 kB / 469.1 MB, free: 5.25 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008801/0.1051, allocations: 0.5782 MB / 469.7 MB, free: 4.617 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.489e-06/0.1051, allocations: 4 kB / 469.7 MB, free: 4.613 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001954/0.1053, allocations: 43.97 kB / 469.7 MB, free: 4.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.601e-06/0.1053, allocations: 3.938 kB / 469.7 MB, free: 4.566 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.859e-05/0.1054, allocations: 8 kB / 469.7 MB, free: 4.559 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.1054, allocations: 3.938 kB / 469.7 MB, free: 4.555 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1054, allocations: 4.078 kB / 469.7 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005017/0.1059, allocations: 389.1 kB / 470.1 MB, free: 4.148 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.073e-05/0.1059, allocations: 15.95 kB / 470.1 MB, free: 4.133 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.109e-05/0.1059, allocations: 8 kB / 470.1 MB, free: 4.125 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.993e-05/0.106, allocations: 8 kB / 470.1 MB, free: 4.117 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.244e-05/0.1061, allocations: 16.02 kB / 470.2 MB, free: 4.102 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.515e-05/0.1061, allocations: 15.92 kB / 470.2 MB, free: 4.086 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.055e-05/0.1062, allocations: 99.02 kB / 470.3 MB, free: 3.992 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1062, allocations: 0 / 470.3 MB, free: 3.992 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002874/0.1065, allocations: 48 kB / 470.3 MB, free: 3.945 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.0008875/0.1073, allocations: 0.9324 MB / 471.2 MB, free: 2.98 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003293/0.1077, allocations: 171.9 kB / 471.4 MB, free: 2.812 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.1077, allocations: 0 / 471.4 MB, free: 2.812 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001424/0.1078, allocations: 75.92 kB / 471.5 MB, free: 2.738 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002592/0.1081, allocations: 18.09 kB / 471.5 MB, free: 2.723 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002835/0.1109, allocations: 2.337 MB / 473.8 MB, free: 244 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001541/0.1111, allocations: 120.2 kB / 474 MB, free: 108 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.681e-05/0.1111, allocations: 21.62 kB / 474 MB, free: 84 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.499e-05/0.1112, allocations: 51.42 kB / 474 MB, free: 32 kB / 334.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1112, allocations: 0 / 474 MB, free: 32 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03206/0.1433, allocations: 3.908 MB / 477.9 MB, free: 12.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.82/10.96, allocations: 3.938 kB / 477.9 MB, free: 12.18 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithIntervalMeasure_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=50 --tolerance=1e-06 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.565412328578532] Failed to read output from testmodel.py, exit status != 0: 11.066068666987121 11.082203291 10.982514701 Calling exit ...