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.001223/0.001223, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.001426/0.001426, allocations: 217.5 kB / 23.04 MB, free: 5.074 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.435/1.435, allocations: 207.6 MB / 233.8 MB, free: 9.969 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.04867/0.04867, allocations: 8.182 MB / 294.3 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithIntervalMeasure",fmuType="cs",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.002101/0.002101, allocations: 66.67 kB / 411.2 MB, free: 46.97 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0827/0.0848, allocations: 50.93 MB / 462.2 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure): time 0.003169/0.08797, allocations: 1.969 MB / 464.1 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009636/0.08894, allocations: 0.5899 MB / 464.7 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.925e-05/0.089, allocations: 4 kB / 464.7 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 7.432e-05/0.08908, allocations: 23.73 kB / 464.8 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001301/0.08921, allocations: 47.55 kB / 464.8 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000189/0.0894, allocations: 51.94 kB / 464.9 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002345/0.08963, allocations: 215.2 kB / 465.1 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000202/0.08983, allocations: 86.56 kB / 465.2 MB, free: 10.47 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001817/0.09002, allocations: 87.72 kB / 465.2 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001393/0.09016, allocations: 87.62 kB / 465.3 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.384e-05/0.09019, allocations: 20 kB / 465.3 MB, free: 10.28 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.608e-05/0.09023, allocations: 20 kB / 465.4 MB, free: 10.26 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.291e-05/0.09028, allocations: 51.83 kB / 465.4 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001071/0.09039, allocations: 95.59 kB / 465.5 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000268/0.09065, allocations: 227.1 kB / 465.7 MB, free: 9.895 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.09066, allocations: 0 / 465.7 MB, free: 9.895 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.09066, allocations: 4 kB / 465.7 MB, free: 9.891 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.016e-05/0.09067, allocations: 3.938 kB / 465.7 MB, free: 9.887 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.0007373/0.09141, allocations: 413.9 kB / 466.1 MB, free: 9.453 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.09145, allocations: 11.98 kB / 466.1 MB, free: 9.441 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.209e-05/0.09147, allocations: 16.62 kB / 466.2 MB, free: 9.426 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.341e-05/0.09153, allocations: 50.73 kB / 466.2 MB, free: 9.367 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.513e-05/0.09159, allocations: 24.84 kB / 466.2 MB, free: 9.344 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001352/0.09172, allocations: 126.2 kB / 466.4 MB, free: 9.195 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.251e-05/0.09174, allocations: 16.8 kB / 466.4 MB, free: 9.18 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.667e-05/0.0918, allocations: 24.38 kB / 466.4 MB, free: 9.156 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003356/0.09214, allocations: 195.2 kB / 466.6 MB, free: 8.957 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.542e-05/0.09215, allocations: 0 / 466.6 MB, free: 8.957 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.217e-05/0.09217, allocations: 12 kB / 466.6 MB, free: 8.945 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.672e-05/0.09219, allocations: 4 kB / 466.6 MB, free: 8.941 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002101/0.0924, allocations: 117.7 kB / 466.7 MB, free: 8.828 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001149/0.09355, allocations: 0.6642 MB / 467.4 MB, free: 8.113 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003828/0.09393, allocations: 170.5 kB / 467.6 MB, free: 7.938 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002161/0.09415, allocations: 96.44 kB / 467.6 MB, free: 7.844 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.652e-05/0.09417, allocations: 11.94 kB / 467.7 MB, free: 7.832 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002868/0.09445, allocations: 123.6 kB / 467.8 MB, free: 7.699 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.492e-06/0.09445, allocations: 0 / 467.8 MB, free: 7.699 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001111/0.09556, allocations: 0.5669 MB / 468.3 MB, free: 7.098 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.629e-05/0.09562, allocations: 59.34 kB / 468.4 MB, free: 7.027 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001113/0.09573, allocations: 129.8 kB / 468.5 MB, free: 6.891 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.737e-05/0.09577, allocations: 33.7 kB / 468.6 MB, free: 6.852 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.739e-05/0.09587, allocations: 136.3 kB / 468.7 MB, free: 6.711 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.975e-05/0.09594, allocations: 79.33 kB / 468.8 MB, free: 6.633 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.952e-05/0.09603, allocations: 57.45 kB / 468.8 MB, free: 6.57 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001556/0.09618, allocations: 330.8 kB / 469.2 MB, free: 6.238 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001065/0.09629, allocations: 59.98 kB / 469.2 MB, free: 6.18 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001836/0.09647, allocations: 135.7 kB / 469.3 MB, free: 6.016 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002962/0.09677, allocations: 205 kB / 469.5 MB, free: 5.789 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.09677, allocations: 0 / 469.5 MB, free: 5.789 MB / 334.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003828/0.09715, allocations: 259.9 kB / 469.8 MB, free: 5.531 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.722e-05/0.09717, allocations: 4 kB / 469.8 MB, free: 5.527 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.09718, allocations: 4 kB / 469.8 MB, free: 5.523 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/0.0972, allocations: 4 kB / 469.8 MB, free: 5.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002249/0.09742, allocations: 63.91 kB / 469.9 MB, free: 5.457 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.135e-05/0.09743, allocations: 7.875 kB / 469.9 MB, free: 5.449 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.066e-05/0.09752, allocations: 15.95 kB / 469.9 MB, free: 5.434 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.76e-05/0.09754, allocations: 12 kB / 469.9 MB, free: 5.422 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.0001891/0.09773, allocations: 153.7 kB / 470.1 MB, free: 5.262 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.28e-05/0.09775, allocations: 11.94 kB / 470.1 MB, free: 5.25 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.809e-05/0.09781, allocations: 16.94 kB / 470.1 MB, free: 5.23 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-06/0.09781, allocations: 0 / 470.1 MB, free: 5.23 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.136e-05/0.09782, allocations: 7.938 kB / 470.1 MB, free: 5.223 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.868e-06/0.09783, allocations: 0 / 470.1 MB, free: 5.223 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008619/0.09869, allocations: 0.5977 MB / 470.7 MB, free: 4.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.09869, allocations: 4 kB / 470.7 MB, free: 4.566 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002059/0.0989, allocations: 43.92 kB / 470.7 MB, free: 4.523 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.746e-06/0.0989, allocations: 3.938 kB / 470.7 MB, free: 4.52 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.098e-05/0.09892, allocations: 11.98 kB / 470.8 MB, free: 4.508 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.09892, allocations: 0 / 470.8 MB, free: 4.508 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.09893, allocations: 4 kB / 470.8 MB, free: 4.504 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005035/0.09943, allocations: 385.2 kB / 471.1 MB, free: 4.105 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.38e-05/0.09945, allocations: 15.92 kB / 471.2 MB, free: 4.09 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.98e-05/0.09949, allocations: 8 kB / 471.2 MB, free: 4.082 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.836e-05/0.09959, allocations: 4 kB / 471.2 MB, free: 4.078 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.896e-05/0.09966, allocations: 19.91 kB / 471.2 MB, free: 4.059 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.537e-05/0.09969, allocations: 12 kB / 471.2 MB, free: 4.047 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.553e-05/0.09975, allocations: 91.27 kB / 471.3 MB, free: 3.957 MB / 334.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.09975, allocations: 0 / 471.3 MB, free: 3.957 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002876/0.1, allocations: 52 kB / 471.3 MB, free: 3.906 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.0008357/0.1009, allocations: 0.9262 MB / 472.3 MB, free: 2.949 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003171/0.1012, allocations: 167.8 kB / 472.4 MB, free: 2.785 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.1012, allocations: 0 / 472.4 MB, free: 2.785 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001339/0.1013, allocations: 87.78 kB / 472.5 MB, free: 2.699 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002543/0.1016, allocations: 12.61 kB / 472.5 MB, free: 2.688 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0028/0.1044, allocations: 2.333 MB / 474.9 MB, free: 212 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005021/0.1049, allocations: 0.7281 MB / 475.6 MB, free: 15.45 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.584e-05/0.1049, allocations: 17.64 kB / 475.6 MB, free: 15.44 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002241/0.1052, allocations: 63.41 kB / 475.7 MB, free: 15.38 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1052, allocations: 0 / 475.7 MB, free: 15.38 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02447/0.1296, allocations: 3.679 MB / 479.3 MB, free: 11.76 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.82/10.95, allocations: 11.98 kB / 479.4 MB, free: 11.75 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.586835655965842] Failed to read output from testmodel.py, exit status != 0: 11.107898000977002 11.126042974 11.032369714 Calling exit ...