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.001166/0.001166, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.001519/0.001519, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 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 0.8738/0.8738, allocations: 158.6 MB / 184.2 MB, free: 3.051 MB / 170.7 MB " [Timeout remaining time 179] 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.03836/0.03836, allocations: 6.407 MB / 242.9 MB, free: 8.996 MB / 234.7 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: Performance of FrontEnd - loaded program: time 2.756e-06/2.756e-06, allocations: 3.984 kB / 359.8 MB, free: 4.414 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.205e-05/2.481e-05, allocations: 2.281 kB / 359.8 MB, free: 4.41 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure): time 0.002353/0.002378, allocations: 1.884 MB / 361.7 MB, free: 2.508 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006918/0.00307, allocations: 0.5503 MB / 362.3 MB, free: 1.949 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.439e-05/0.003144, allocations: 4 kB / 362.3 MB, free: 1.945 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 5.807e-05/0.003202, allocations: 27.72 kB / 362.3 MB, free: 1.918 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001164/0.003318, allocations: 43.56 kB / 362.3 MB, free: 1.875 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001746/0.003493, allocations: 55.86 kB / 362.4 MB, free: 1.82 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001375/0.003631, allocations: 219 kB / 362.6 MB, free: 1.605 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001644/0.003795, allocations: 86.28 kB / 362.7 MB, free: 1.523 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001827/0.003978, allocations: 131.8 kB / 362.8 MB, free: 1.395 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.574e-05/0.004063, allocations: 55.86 kB / 362.9 MB, free: 1.34 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.269e-05/0.004096, allocations: 20 kB / 362.9 MB, free: 1.32 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.831e-05/0.004114, allocations: 20 kB / 362.9 MB, free: 1.301 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.257e-05/0.004147, allocations: 51.81 kB / 363 MB, free: 1.25 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.465e-05/0.004202, allocations: 67.83 kB / 363 MB, free: 1.184 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001556/0.004357, allocations: 231.3 kB / 363.2 MB, free: 0.957 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.274e-06/0.004359, allocations: 0 / 363.2 MB, free: 0.957 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.004361, allocations: 0 / 363.2 MB, free: 0.957 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.702e-06/0.004368, allocations: 4 kB / 363.3 MB, free: 0.9531 MB / 282.7 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.0004926/0.00486, allocations: 417.8 kB / 363.7 MB, free: 0.5195 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/0.004906, allocations: 15.92 kB / 363.7 MB, free: 0.5039 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.488e-05/0.004941, allocations: 58.73 kB / 363.7 MB, free: 448 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.352e-05/0.004975, allocations: 16.84 kB / 363.7 MB, free: 432 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.038e-05/0.005045, allocations: 129.5 kB / 363.9 MB, free: 276 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.387e-05/0.005059, allocations: 12.88 kB / 363.9 MB, free: 264 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.966e-05/0.005089, allocations: 32.3 kB / 363.9 MB, free: 232 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001943/0.005283, allocations: 196.6 kB / 364.1 MB, free: 28 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.005295, allocations: 192 / 364.1 MB, free: 28 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.45e-05/0.005309, allocations: 16.12 kB / 364.1 MB, free: 12 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.501e-06/0.005315, allocations: 4 kB / 364.1 MB, free: 8 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001596/0.005474, allocations: 113.9 kB / 364.2 MB, free: 15.9 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008898/0.006364, allocations: 0.6218 MB / 364.9 MB, free: 15.23 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003206/0.006685, allocations: 174.5 kB / 365 MB, free: 15.05 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001641/0.006849, allocations: 104.7 kB / 365.1 MB, free: 14.94 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.514e-05/0.006864, allocations: 4 kB / 365.1 MB, free: 14.94 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002153/0.007079, allocations: 119.3 kB / 365.3 MB, free: 14.81 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.884e-06/0.007081, allocations: 0 / 365.3 MB, free: 14.81 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008786/0.00796, allocations: 0.5703 MB / 365.8 MB, free: 14.21 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.211e-05/0.008002, allocations: 59.41 kB / 365.9 MB, free: 14.14 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.573e-05/0.008087, allocations: 127.9 kB / 366 MB, free: 14 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.971e-05/0.008107, allocations: 33.7 kB / 366 MB, free: 13.96 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.582e-05/0.008183, allocations: 144.3 kB / 366.2 MB, free: 13.82 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.053e-05/0.008234, allocations: 79.28 kB / 366.3 MB, free: 13.74 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.403e-05/0.008298, allocations: 57.66 kB / 366.3 MB, free: 13.68 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001051/0.008403, allocations: 330.8 kB / 366.6 MB, free: 13.35 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.27e-05/0.008475, allocations: 59.98 kB / 366.7 MB, free: 13.29 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001141/0.008589, allocations: 139.4 kB / 366.8 MB, free: 13.12 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002192/0.008809, allocations: 211.8 kB / 367 MB, free: 12.89 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-06/0.00881, allocations: 0 / 367 MB, free: 12.89 MB / 298.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0002501/0.00906, allocations: 259.7 kB / 367.3 MB, free: 12.63 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.391e-05/0.009074, allocations: 4 kB / 367.3 MB, free: 12.63 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.00908, allocations: 4.25 kB / 367.3 MB, free: 12.62 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.401e-05/0.009094, allocations: 11.94 kB / 367.3 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001378/0.009232, allocations: 63.91 kB / 367.4 MB, free: 12.55 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.723e-06/0.009239, allocations: 4.078 kB / 367.4 MB, free: 12.55 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.216e-05/0.009291, allocations: 8 kB / 367.4 MB, free: 12.54 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.257e-05/0.009303, allocations: 11.98 kB / 367.4 MB, free: 12.53 MB / 298.7 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.0001357/0.009439, allocations: 149.6 kB / 367.5 MB, free: 12.37 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.438e-05/0.009453, allocations: 7.953 kB / 367.6 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.342e-05/0.009487, allocations: 20.94 kB / 367.6 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.00949, allocations: 8 kB / 367.6 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/0.009496, allocations: 0 / 367.6 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.0095, allocations: 0 / 367.6 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005434/0.01004, allocations: 0.5731 MB / 368.2 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.01004, allocations: 4 kB / 368.2 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001178/0.01016, allocations: 43.97 kB / 368.2 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.01016, allocations: 0 / 368.2 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.186e-05/0.01018, allocations: 8 kB / 368.2 MB, free: 11.65 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.01018, allocations: 8 kB / 368.2 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.01018, allocations: 7.938 kB / 368.2 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003324/0.01051, allocations: 388.9 kB / 368.6 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.338e-05/0.01053, allocations: 7.953 kB / 368.6 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.644e-05/0.01055, allocations: 8 kB / 368.6 MB, free: 11.22 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.14e-05/0.01063, allocations: 15.97 kB / 368.6 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.439e-05/0.01069, allocations: 11.98 kB / 368.6 MB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.463e-05/0.01071, allocations: 11.98 kB / 368.7 MB, free: 11.18 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.57e-05/0.01076, allocations: 95.27 kB / 368.8 MB, free: 11.09 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01076, allocations: 0 / 368.8 MB, free: 11.09 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001973/0.01096, allocations: 48 kB / 368.8 MB, free: 11.04 MB / 298.7 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.0005767/0.01153, allocations: 0.9368 MB / 369.7 MB, free: 10.07 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002441/0.01178, allocations: 164.1 kB / 369.9 MB, free: 9.906 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.01178, allocations: 0 / 369.9 MB, free: 9.906 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.06e-05/0.01187, allocations: 77.42 kB / 370 MB, free: 9.832 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001951/0.01207, allocations: 27.72 kB / 370 MB, free: 9.805 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002025/0.01409, allocations: 2.228 MB / 372.2 MB, free: 7.438 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001012/0.01419, allocations: 120.2 kB / 372.3 MB, free: 7.293 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.232e-05/0.01424, allocations: 25.62 kB / 372.4 MB, free: 7.27 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.629e-05/0.01433, allocations: 52.48 kB / 372.4 MB, free: 7.219 MB / 298.7 MB Notification: Performance of SimCode: time 5.31e-07/0.01433, allocations: 0 / 372.4 MB, free: 7.219 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01729/0.03162, allocations: 4.061 MB / 376.5 MB, free: 3.254 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.372/7.403, allocations: 4.75 kB / 376.5 MB, free: 3.25 MB / 298.7 MB " [Timeout remaining time 653] (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: 9.234135671518743] Failed to read output from testmodel.py, exit status != 0: 7.488076442852616 7.497534042 7.491258385 Calling exit ...