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.0008188/0.0008188, allocations: 80.44 kB / 19.17 MB, free: 0.7461 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.0009137/0.0009137, 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.9074/0.9074, allocations: 158.6 MB / 184.2 MB, free: 3.039 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.02486/0.02486, allocations: 6.403 MB / 242.9 MB, free: 8.98 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.534e-06/2.534e-06, allocations: 0 / 359.8 MB, free: 4.395 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.228e-05/4.481e-05, allocations: 2.281 kB / 359.8 MB, free: 4.391 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure): time 0.002718/0.002762, allocations: 1.888 MB / 361.7 MB, free: 2.484 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009182/0.003681, allocations: 0.5503 MB / 362.3 MB, free: 1.926 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001291/0.00381, allocations: 4 kB / 362.3 MB, free: 1.922 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 8.28e-05/0.003893, allocations: 19.73 kB / 362.3 MB, free: 1.902 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001863/0.004079, allocations: 51.55 kB / 362.3 MB, free: 1.852 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002478/0.004327, allocations: 55.8 kB / 362.4 MB, free: 1.797 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001648/0.004492, allocations: 223 kB / 362.6 MB, free: 1.578 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001972/0.004689, allocations: 78.36 kB / 362.7 MB, free: 1.504 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002205/0.004909, allocations: 127.8 kB / 362.8 MB, free: 1.379 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001146/0.005024, allocations: 63.84 kB / 362.9 MB, free: 1.316 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.657e-05/0.00506, allocations: 20 kB / 362.9 MB, free: 1.297 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.189e-05/0.005082, allocations: 24 kB / 362.9 MB, free: 1.273 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.988e-05/0.005122, allocations: 43.83 kB / 363 MB, free: 1.23 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.224e-05/0.005184, allocations: 75.81 kB / 363 MB, free: 1.156 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001824/0.005367, allocations: 227.3 kB / 363.3 MB, free: 0.9336 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.364e-06/0.005369, allocations: 0 / 363.3 MB, free: 0.9336 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.005371, allocations: 0 / 363.3 MB, free: 0.9336 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.61e-06/0.005377, allocations: 4 kB / 363.3 MB, free: 0.9297 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.0005145/0.005891, allocations: 413.7 kB / 363.7 MB, free: 0.5 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.588e-05/0.005947, allocations: 15.98 kB / 363.7 MB, free: 496 kB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.656e-05/0.005994, allocations: 54.73 kB / 363.7 MB, free: 432 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.886e-05/0.006033, allocations: 24.78 kB / 363.8 MB, free: 408 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.327e-05/0.006126, allocations: 129.5 kB / 363.9 MB, free: 252 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.807e-05/0.006144, allocations: 16.88 kB / 363.9 MB, free: 236 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.339e-05/0.006177, allocations: 20.38 kB / 363.9 MB, free: 216 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002302/0.006407, allocations: 196.6 kB / 364.1 MB, free: 12 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.686e-05/0.006424, allocations: 4.188 kB / 364.1 MB, free: 8 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.025e-05/0.006465, allocations: 8.391 kB / 364.1 MB, free: 16 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.006475, allocations: 7.938 kB / 364.1 MB, free: 15.99 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001671/0.006642, allocations: 117.9 kB / 364.2 MB, free: 15.88 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000835/0.007477, allocations: 0.6179 MB / 364.9 MB, free: 15.21 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002919/0.007769, allocations: 182.4 kB / 365 MB, free: 15.02 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001638/0.007933, allocations: 102.8 kB / 365.1 MB, free: 14.92 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.313e-05/0.007946, allocations: 4 kB / 365.1 MB, free: 14.91 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000203/0.008149, allocations: 119.3 kB / 365.3 MB, free: 14.79 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.473e-06/0.00815, allocations: 0 / 365.3 MB, free: 14.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008453/0.008996, allocations: 0.5701 MB / 365.8 MB, free: 14.19 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.61e-05/0.009052, allocations: 59.41 kB / 365.9 MB, free: 14.12 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.225e-05/0.009144, allocations: 129.8 kB / 366 MB, free: 13.98 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.763e-05/0.009162, allocations: 29.7 kB / 366 MB, free: 13.95 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.54e-05/0.009217, allocations: 140.4 kB / 366.2 MB, free: 13.8 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.837e-05/0.009265, allocations: 91.25 kB / 366.3 MB, free: 13.71 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.641e-05/0.009322, allocations: 57.66 kB / 366.3 MB, free: 13.65 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.607e-05/0.009418, allocations: 330.8 kB / 366.6 MB, free: 13.32 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.487e-05/0.009493, allocations: 59.97 kB / 366.7 MB, free: 13.26 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001145/0.009607, allocations: 131.4 kB / 366.8 MB, free: 13.1 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002229/0.00983, allocations: 219.7 kB / 367 MB, free: 12.86 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.009831, allocations: 0 / 367 MB, free: 12.86 MB / 298.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0002882/0.01012, allocations: 251.7 kB / 367.3 MB, free: 12.61 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/0.01014, allocations: 8 kB / 367.3 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.01014, allocations: 4.25 kB / 367.3 MB, free: 12.6 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.627e-05/0.01016, allocations: 4 kB / 367.3 MB, free: 12.6 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001499/0.01031, allocations: 63.91 kB / 367.4 MB, free: 12.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.017e-05/0.01032, allocations: 11.95 kB / 367.4 MB, free: 12.52 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.603e-05/0.01038, allocations: 11.98 kB / 367.4 MB, free: 12.51 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.035e-05/0.01039, allocations: 11.98 kB / 367.4 MB, free: 12.5 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.0001392/0.01053, allocations: 141.7 kB / 367.5 MB, free: 12.35 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.502e-05/0.01054, allocations: 11.95 kB / 367.6 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.878e-05/0.01057, allocations: 16.94 kB / 367.6 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.01057, allocations: 8 kB / 367.6 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.01058, allocations: 0 / 367.6 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.01058, allocations: 3.984 kB / 367.6 MB, free: 12.31 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005403/0.01112, allocations: 0.5731 MB / 368.2 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.01112, allocations: 0 / 368.2 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001085/0.01123, allocations: 39.98 kB / 368.2 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.01124, allocations: 4 kB / 368.2 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.235e-05/0.01125, allocations: 4 kB / 368.2 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.118e-06/0.01125, allocations: 12.05 kB / 368.2 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.135e-06/0.01126, allocations: 11.81 kB / 368.2 MB, free: 11.61 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003295/0.01159, allocations: 385 kB / 368.6 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.443e-05/0.0116, allocations: 11.95 kB / 368.6 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.937e-05/0.01162, allocations: 8.031 kB / 368.6 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.337e-05/0.01167, allocations: 11.94 kB / 368.6 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.946e-05/0.01173, allocations: 19.97 kB / 368.7 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.187e-05/0.01175, allocations: 4 kB / 368.7 MB, free: 11.16 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.903e-05/0.0118, allocations: 98.39 kB / 368.8 MB, free: 11.07 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0118, allocations: 0 / 368.8 MB, free: 11.07 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002018/0.012, allocations: 55.94 kB / 368.8 MB, free: 11.01 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.0005294/0.01253, allocations: 0.929 MB / 369.7 MB, free: 10.05 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002306/0.01276, allocations: 160.1 kB / 369.9 MB, free: 9.891 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.302e-06/0.01277, allocations: 0 / 369.9 MB, free: 9.891 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.469e-05/0.01285, allocations: 85.34 kB / 370 MB, free: 9.809 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001765/0.01303, allocations: 16.48 kB / 370 MB, free: 9.793 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00203/0.01506, allocations: 2.243 MB / 372.2 MB, free: 7.41 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.896e-05/0.01516, allocations: 116.2 kB / 372.4 MB, free: 7.27 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.851e-05/0.0152, allocations: 17.64 kB / 372.4 MB, free: 7.254 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.921e-05/0.01529, allocations: 60.42 kB / 372.4 MB, free: 7.195 MB / 298.7 MB Notification: Performance of SimCode: time 1.403e-06/0.0153, allocations: 0 / 372.4 MB, free: 7.195 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0162/0.03149, allocations: 4.051 MB / 376.5 MB, free: 3.238 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.896/6.927, allocations: 8.812 kB / 376.5 MB, free: 3.23 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 & python3 -m fmpy simulate --output-file ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 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: 8.84611620567739] Failed to read output from testmodel.py, exit status != 0: 7.010343222878873 7.024820775 7.017581906 Calling exit ...