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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001861/0.001861, allocations: 102.5 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002207/0.002207, allocations: 187.7 kB / 19.4 MB, free: 3.66 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.605/1.605, allocations: 207.6 MB / 229.8 MB, free: 4.238 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.05116/0.05116, allocations: 8.202 MB / 289.9 MB, free: 8.266 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.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.002202/0.002202, allocations: 71.89 kB / 405.2 MB, free: 1.461 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2895/0.2917, allocations: 50.88 MB / 456.1 MB, free: 3.785 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure): time 0.002658/0.2944, allocations: 1.972 MB / 458.1 MB, free: 2.238 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007679/0.2952, allocations: 0.5701 MB / 458.6 MB, free: 1.777 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.876e-05/0.2952, allocations: 7.312 kB / 458.6 MB, free: 1.773 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 6.243e-05/0.2953, allocations: 23.17 kB / 458.7 MB, free: 1.754 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00011/0.2954, allocations: 47.64 kB / 458.7 MB, free: 1.711 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001556/0.2956, allocations: 54.33 kB / 458.8 MB, free: 1.664 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001668/0.2957, allocations: 216.9 kB / 459 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001605/0.2959, allocations: 69.95 kB / 459.1 MB, free: 1.488 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001404/0.296, allocations: 82.31 kB / 459.1 MB, free: 1.441 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001037/0.2961, allocations: 92.73 kB / 459.2 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.118e-05/0.2962, allocations: 20.72 kB / 459.2 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.325e-05/0.2962, allocations: 24.62 kB / 459.3 MB, free: 1.371 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.274e-05/0.2962, allocations: 45.84 kB / 459.3 MB, free: 1.332 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001034/0.2963, allocations: 94.53 kB / 459.4 MB, free: 1.27 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001857/0.2965, allocations: 232.9 kB / 459.6 MB, free: 1.094 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.2965, allocations: 0 / 459.6 MB, free: 1.094 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2965, allocations: 0 / 459.6 MB, free: 1.094 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.611e-06/0.2965, allocations: 0 / 459.6 MB, free: 1.094 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.000626/0.2972, allocations: 493.5 kB / 460.1 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.2972, allocations: 13.42 kB / 460.1 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.581e-05/0.2973, allocations: 57.08 kB / 460.2 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.612e-05/0.2973, allocations: 19.12 kB / 460.2 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.043e-05/0.2974, allocations: 189.2 kB / 460.4 MB, free: 356 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.023e-05/0.2974, allocations: 14.06 kB / 460.4 MB, free: 352 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.182e-05/0.2975, allocations: 23.25 kB / 460.4 MB, free: 344 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002996/0.2978, allocations: 196 kB / 460.6 MB, free: 212 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.643e-05/0.2978, allocations: 0 / 460.6 MB, free: 212 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.996e-05/0.2978, allocations: 9.781 kB / 460.6 MB, free: 204 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.193e-06/0.2978, allocations: 9.656 kB / 460.6 MB, free: 200 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002605/0.2981, allocations: 115.9 kB / 460.7 MB, free: 148 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001296/0.2994, allocations: 0.7247 MB / 461.5 MB, free: 15.51 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004814/0.2999, allocations: 247.6 kB / 461.7 MB, free: 15.32 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002252/0.3001, allocations: 104.8 kB / 461.8 MB, free: 15.27 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.726e-05/0.3001, allocations: 2.656 kB / 461.8 MB, free: 15.27 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003813/0.3005, allocations: 125.7 kB / 461.9 MB, free: 15.17 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.733e-06/0.3005, allocations: 0.7188 kB / 461.9 MB, free: 15.17 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001296/0.3018, allocations: 0.6584 MB / 462.6 MB, free: 14.69 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.712e-05/0.3018, allocations: 58.38 kB / 462.7 MB, free: 14.62 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001115/0.3019, allocations: 129.2 kB / 462.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.131e-05/0.302, allocations: 36.14 kB / 462.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.977e-05/0.3021, allocations: 136.3 kB / 463 MB, free: 14.34 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.491e-05/0.3022, allocations: 85.02 kB / 463 MB, free: 14.26 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001201/0.3023, allocations: 57.92 kB / 463.1 MB, free: 14.22 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000191/0.3025, allocations: 329.5 kB / 463.4 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001277/0.3026, allocations: 64.97 kB / 463.5 MB, free: 13.86 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002028/0.3028, allocations: 126.5 kB / 463.6 MB, free: 13.75 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000292/0.3031, allocations: 210.3 kB / 463.8 MB, free: 13.59 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3031, allocations: 1.156 kB / 463.8 MB, free: 13.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003859/0.3035, allocations: 253 kB / 464.1 MB, free: 13.46 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.3035, allocations: 9.891 kB / 464.1 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.3035, allocations: 2.406 kB / 464.1 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.3035, allocations: 3.5 kB / 464.1 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002635/0.3038, allocations: 55.45 kB / 464.1 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.349e-05/0.3038, allocations: 11.39 kB / 464.1 MB, free: 13.44 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001025/0.3039, allocations: 24.83 kB / 464.2 MB, free: 13.42 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.847e-05/0.3039, allocations: 17.3 kB / 464.2 MB, free: 13.41 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.0002599/0.3042, allocations: 142.1 kB / 464.3 MB, free: 13.28 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.554e-05/0.3042, allocations: 9.859 kB / 464.3 MB, free: 13.27 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.047e-05/0.3043, allocations: 22.95 kB / 464.3 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.3043, allocations: 2.219 kB / 464.3 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.3043, allocations: 0 / 464.3 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.002e-05/0.3043, allocations: 5.125 kB / 464.4 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009082/0.3052, allocations: 0.6252 MB / 465 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.3052, allocations: 1 kB / 465 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002032/0.3054, allocations: 37.11 kB / 465 MB, free: 12.72 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.053e-06/0.3054, allocations: 6.312 kB / 465 MB, free: 12.72 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.122e-05/0.3054, allocations: 10.3 kB / 465 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.572e-06/0.3055, allocations: 6 kB / 465 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.3055, allocations: 1.375 kB / 465 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005601/0.306, allocations: 383.9 kB / 465.4 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.59e-05/0.3061, allocations: 89.34 kB / 465.5 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.909e-05/0.3062, allocations: 11.28 kB / 465.5 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001545/0.3063, allocations: 15.09 kB / 465.5 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.431e-05/0.3064, allocations: 19.66 kB / 465.5 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.319e-05/0.3064, allocations: 14.53 kB / 465.6 MB, free: 12.3 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.658e-05/0.3065, allocations: 97.89 kB / 465.7 MB, free: 12.22 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3065, allocations: 1.062 kB / 465.7 MB, free: 12.22 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003864/0.3069, allocations: 43.47 kB / 465.7 MB, free: 12.21 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.0008861/0.3078, allocations: 0.9334 MB / 466.6 MB, free: 11.41 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003689/0.3081, allocations: 163.1 kB / 466.8 MB, free: 11.34 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3081, allocations: 0 / 466.8 MB, free: 11.34 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001296/0.3083, allocations: 82.72 kB / 466.9 MB, free: 11.31 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000345/0.3086, allocations: 17.02 kB / 466.9 MB, free: 11.3 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003071/0.3117, allocations: 2.311 MB / 469.2 MB, free: 9.324 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004613/0.3121, allocations: 0.7348 MB / 469.9 MB, free: 8.602 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000101/0.3122, allocations: 15.23 kB / 469.9 MB, free: 8.594 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001162/0.3123, allocations: 54.2 kB / 470 MB, free: 8.551 MB / 334.1 MB Notification: Performance of SimCode: time 7.82e-07/0.3123, allocations: 0 / 470 MB, free: 8.551 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03204/0.3444, allocations: 3.405 MB / 473.4 MB, free: 6.773 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.199/8.544, allocations: 8 kB / 473.4 MB, free: 6.766 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: 11.172520582098514] Failed to read output from testmodel.py, exit status != 0: 8.61398399202153 8.628208842 8.328762068 Calling exit ...