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.001916/0.001916, allocations: 116.1 kB / 17.16 MB, free: 6.023 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.002198/0.002198, allocations: 205.6 kB / 20.13 MB, free: 3.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.439/1.439, allocations: 207.6 MB / 230.5 MB, free: 4.062 MB / 174.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.05038/0.05038, allocations: 8.2 MB / 290.6 MB, free: 8.113 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.002254/0.002254, allocations: 75.84 kB / 406 MB, free: 1.406 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2767/0.279, allocations: 50.89 MB / 456.9 MB, free: 3.652 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure): time 0.002712/0.2817, allocations: 1.976 MB / 458.8 MB, free: 2.105 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000783/0.2825, allocations: 0.5654 MB / 459.4 MB, free: 1.648 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.82e-05/0.2826, allocations: 7.406 kB / 459.4 MB, free: 1.645 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 6.073e-05/0.2826, allocations: 27.28 kB / 459.4 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001378/0.2828, allocations: 51.86 kB / 459.5 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001797/0.2829, allocations: 50.75 kB / 459.5 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002141/0.2832, allocations: 214.4 kB / 459.7 MB, free: 1.402 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001729/0.2833, allocations: 68.41 kB / 459.8 MB, free: 1.359 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001583/0.2835, allocations: 88.81 kB / 459.9 MB, free: 1.309 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001087/0.2836, allocations: 87.06 kB / 460 MB, free: 1.246 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.708e-05/0.2836, allocations: 20.84 kB / 460 MB, free: 1.246 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.015e-05/0.2837, allocations: 22.34 kB / 460 MB, free: 1.246 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.115e-05/0.2837, allocations: 52.48 kB / 460.1 MB, free: 1.199 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.334e-05/0.2838, allocations: 96 kB / 460.2 MB, free: 1.137 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002233/0.284, allocations: 230.6 kB / 460.4 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.284, allocations: 4.844 kB / 460.4 MB, free: 0.957 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.284, allocations: 0 / 460.4 MB, free: 0.957 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.234e-06/0.284, allocations: 0 / 460.4 MB, free: 0.957 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.0006893/0.2847, allocations: 490.5 kB / 460.9 MB, free: 0.5 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/0.2848, allocations: 17.05 kB / 460.9 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.69e-05/0.2848, allocations: 5.219 kB / 460.9 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.909e-05/0.2848, allocations: 53.36 kB / 460.9 MB, free: 448 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.751e-05/0.2849, allocations: 18.59 kB / 461 MB, free: 440 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001253/0.285, allocations: 191 kB / 461.2 MB, free: 216 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.64e-05/0.285, allocations: 11.94 kB / 461.2 MB, free: 212 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.737e-05/0.2851, allocations: 22.91 kB / 461.2 MB, free: 204 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002989/0.2854, allocations: 201.2 kB / 461.4 MB, free: 68 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.632e-05/0.2854, allocations: 0 / 461.4 MB, free: 68 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.235e-05/0.2854, allocations: 13.75 kB / 461.4 MB, free: 56 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.365e-06/0.2854, allocations: 5.75 kB / 461.4 MB, free: 56 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001911/0.2856, allocations: 119.4 kB / 461.5 MB, free: 0 / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001267/0.2869, allocations: 0.7206 MB / 462.2 MB, free: 15.37 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004446/0.2873, allocations: 247.6 kB / 462.5 MB, free: 15.18 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002367/0.2875, allocations: 106.3 kB / 462.6 MB, free: 15.12 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.785e-05/0.2876, allocations: 1.375 kB / 462.6 MB, free: 15.12 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003269/0.2879, allocations: 126 kB / 462.7 MB, free: 15.03 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.543e-06/0.2879, allocations: 0 / 462.7 MB, free: 15.03 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001312/0.2892, allocations: 0.655 MB / 463.4 MB, free: 14.55 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.9e-05/0.2893, allocations: 55.78 kB / 463.4 MB, free: 14.49 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001254/0.2894, allocations: 128 kB / 463.5 MB, free: 14.37 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.921e-05/0.2894, allocations: 31.55 kB / 463.6 MB, free: 14.34 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00011/0.2895, allocations: 144.7 kB / 463.7 MB, free: 14.2 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.623e-05/0.2896, allocations: 84.58 kB / 463.8 MB, free: 14.12 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.839e-05/0.2897, allocations: 61.48 kB / 463.9 MB, free: 14.08 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.2899, allocations: 330.9 kB / 464.2 MB, free: 13.75 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001124/0.29, allocations: 60.94 kB / 464.2 MB, free: 13.72 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001747/0.2902, allocations: 130.5 kB / 464.4 MB, free: 13.61 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003139/0.2905, allocations: 213.5 kB / 464.6 MB, free: 13.45 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.2905, allocations: 1.531 kB / 464.6 MB, free: 13.45 MB / 334.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003941/0.2909, allocations: 253.5 kB / 464.8 MB, free: 13.32 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.2909, allocations: 6.188 kB / 464.8 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.2909, allocations: 2.344 kB / 464.8 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.362e-05/0.2909, allocations: 7.422 kB / 464.8 MB, free: 13.31 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002291/0.2911, allocations: 58.7 kB / 464.9 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.166e-05/0.2912, allocations: 7.25 kB / 464.9 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.893e-05/0.2913, allocations: 21.66 kB / 464.9 MB, free: 13.28 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.948e-05/0.2913, allocations: 8.531 kB / 464.9 MB, free: 13.28 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.0002054/0.2915, allocations: 141.3 kB / 465.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.523e-05/0.2915, allocations: 10.3 kB / 465.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.183e-05/0.2916, allocations: 19.25 kB / 465.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.017e-06/0.2916, allocations: 3.188 kB / 465.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.128e-05/0.2916, allocations: 7.922 kB / 465.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.2916, allocations: 0 / 465.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009771/0.2926, allocations: 0.6266 MB / 465.7 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.055e-06/0.2926, allocations: 1.062 kB / 465.7 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002222/0.2928, allocations: 44.36 kB / 465.8 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.658e-06/0.2928, allocations: 2.312 kB / 465.8 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.207e-05/0.2928, allocations: 10.36 kB / 465.8 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.559e-06/0.2928, allocations: 5.344 kB / 465.8 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.2928, allocations: 5.156 kB / 465.8 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005261/0.2934, allocations: 381 kB / 466.2 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.655e-05/0.2934, allocations: 101.3 kB / 466.3 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.669e-05/0.2934, allocations: 2.406 kB / 466.3 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000103/0.2935, allocations: 7.344 kB / 466.3 MB, free: 12.19 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.183e-05/0.2936, allocations: 23.41 kB / 466.3 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.226e-05/0.2936, allocations: 6.625 kB / 466.3 MB, free: 12.18 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.802e-05/0.2937, allocations: 98.27 kB / 466.4 MB, free: 12.09 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2937, allocations: 1.25 kB / 466.4 MB, free: 12.09 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002984/0.294, allocations: 47.34 kB / 466.5 MB, free: 12.08 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.0008478/0.2949, allocations: 0.9371 MB / 467.4 MB, free: 11.27 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003397/0.2952, allocations: 170.5 kB / 467.6 MB, free: 11.2 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.2952, allocations: 0 / 467.6 MB, free: 11.2 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000135/0.2953, allocations: 83.69 kB / 467.6 MB, free: 11.16 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002545/0.2956, allocations: 8.828 kB / 467.7 MB, free: 11.16 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002798/0.2984, allocations: 2.317 MB / 470 MB, free: 9.184 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003808/0.2988, allocations: 0.7338 MB / 470.7 MB, free: 8.461 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.009e-05/0.2988, allocations: 14.67 kB / 470.7 MB, free: 8.453 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.599e-05/0.2989, allocations: 54.89 kB / 470.8 MB, free: 8.41 MB / 334.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2989, allocations: 0 / 470.8 MB, free: 8.41 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01971/0.3186, allocations: 3.445 MB / 474.2 MB, free: 6.582 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.11/8.429, allocations: 11.81 kB / 474.2 MB, free: 6.574 MB / 334.1 MB " [Timeout remaining time 651] (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: 10.886224496993236] Failed to read output from testmodel.py, exit status != 0: 8.54994399799034 8.564147555 8.277328088 Calling exit ...