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.0008012/0.0008012, allocations: 80.48 kB / 19.93 MB, free: 4.629 MB / 18.57 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.0009291/0.0009291, allocations: 177.9 kB / 23.21 MB, free: 1.348 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.9048/0.9048, allocations: 158.6 MB / 185 MB, free: 3 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.02412/0.02412, allocations: 6.4 MB / 243.6 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: translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure") translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 0 / 361.1 MB, free: 3.871 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.863e-05/3.033e-05, allocations: 5.938 kB / 361.1 MB, free: 3.867 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure): time 0.002283/0.002313, allocations: 1.887 MB / 363 MB, free: 1.961 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006686/0.002982, allocations: 0.5502 MB / 363.5 MB, free: 1.402 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.609e-05/0.003058, allocations: 4 kB / 363.5 MB, free: 1.398 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 5.238e-05/0.003111, allocations: 27.73 kB / 363.6 MB, free: 1.371 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001044/0.003215, allocations: 47.56 kB / 363.6 MB, free: 1.324 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001594/0.003374, allocations: 55.91 kB / 363.7 MB, free: 1.27 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000122/0.003496, allocations: 223 kB / 363.9 MB, free: 1.051 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001417/0.003638, allocations: 70.36 kB / 363.9 MB, free: 0.9844 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001719/0.00381, allocations: 127.8 kB / 364.1 MB, free: 0.8594 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.68e-05/0.003887, allocations: 63.83 kB / 364.1 MB, free: 0.7969 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.853e-05/0.003915, allocations: 24 kB / 364.2 MB, free: 0.7734 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.733e-05/0.003933, allocations: 20 kB / 364.2 MB, free: 0.7539 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.887e-05/0.003961, allocations: 47.83 kB / 364.2 MB, free: 0.707 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.887e-05/0.00401, allocations: 75.83 kB / 364.3 MB, free: 0.6328 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001504/0.004161, allocations: 227.3 kB / 364.5 MB, free: 420 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.065e-06/0.004164, allocations: 0 / 364.5 MB, free: 420 kB / 282.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.004165, allocations: 0 / 364.5 MB, free: 420 kB / 282.7 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.00417, allocations: 0 / 364.5 MB, free: 420 kB / 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.0004667/0.004637, allocations: 414.1 kB / 364.9 MB, free: 15.98 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/0.004673, allocations: 11.98 kB / 364.9 MB, free: 15.96 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.516e-05/0.004719, allocations: 16.84 kB / 365 MB, free: 15.95 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.993e-05/0.004818, allocations: 133.5 kB / 365.1 MB, free: 15.79 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.131e-05/0.00484, allocations: 20.86 kB / 365.1 MB, free: 15.77 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.864e-05/0.004878, allocations: 28.31 kB / 365.1 MB, free: 15.75 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002328/0.005111, allocations: 192.6 kB / 365.3 MB, free: 15.55 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.005123, allocations: 192 / 365.3 MB, free: 15.55 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.715e-05/0.005141, allocations: 8.375 kB / 365.3 MB, free: 15.54 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/0.005147, allocations: 7.938 kB / 365.3 MB, free: 15.54 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001397/0.005287, allocations: 117.9 kB / 365.4 MB, free: 15.42 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007561/0.006043, allocations: 0.5872 MB / 366 MB, free: 14.8 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002731/0.006316, allocations: 174.5 kB / 366.2 MB, free: 14.62 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001458/0.006462, allocations: 96.42 kB / 366.3 MB, free: 14.52 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.294e-05/0.006475, allocations: 7.984 kB / 366.3 MB, free: 14.52 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002023/0.006677, allocations: 115.3 kB / 366.4 MB, free: 14.39 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.422e-06/0.006679, allocations: 4 kB / 366.4 MB, free: 14.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007935/0.007472, allocations: 0.5705 MB / 367 MB, free: 13.79 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.849e-05/0.007511, allocations: 63.41 kB / 367.1 MB, free: 13.71 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.445e-05/0.007585, allocations: 128.3 kB / 367.2 MB, free: 13.58 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.612e-05/0.007601, allocations: 33.7 kB / 367.2 MB, free: 13.54 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.778e-05/0.007669, allocations: 140.3 kB / 367.4 MB, free: 13.4 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.335e-05/0.007713, allocations: 75.34 kB / 367.4 MB, free: 13.32 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.334e-05/0.007766, allocations: 53.7 kB / 367.5 MB, free: 13.27 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.906e-05/0.007845, allocations: 330.8 kB / 367.8 MB, free: 12.93 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.174e-05/0.007917, allocations: 63.92 kB / 367.9 MB, free: 12.87 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001083/0.008025, allocations: 135.4 kB / 368 MB, free: 12.71 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002035/0.008229, allocations: 215.2 kB / 368.2 MB, free: 12.47 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.00823, allocations: 0 / 368.2 MB, free: 12.47 MB / 298.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0002536/0.008484, allocations: 263.8 kB / 368.5 MB, free: 12.21 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.008498, allocations: 4 kB / 368.5 MB, free: 12.21 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.008506, allocations: 4 kB / 368.5 MB, free: 12.2 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/0.008522, allocations: 4 kB / 368.5 MB, free: 12.2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001375/0.008659, allocations: 63.91 kB / 368.5 MB, free: 12.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.7e-06/0.008665, allocations: 0 / 368.5 MB, free: 12.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.284e-05/0.008718, allocations: 15.94 kB / 368.6 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.739e-06/0.008727, allocations: 8.078 kB / 368.6 MB, free: 12.11 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.0001331/0.008861, allocations: 161.8 kB / 368.7 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.391e-05/0.008874, allocations: 7.953 kB / 368.7 MB, free: 11.94 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.017e-05/0.008905, allocations: 20.94 kB / 368.7 MB, free: 11.92 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.786e-06/0.008907, allocations: 4 kB / 368.8 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.008912, allocations: 0 / 368.8 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.008916, allocations: 4 kB / 368.8 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004957/0.009412, allocations: 0.5385 MB / 369.3 MB, free: 11.33 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.009413, allocations: 0 / 369.3 MB, free: 11.33 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001123/0.009526, allocations: 48.05 kB / 369.3 MB, free: 11.28 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.007e-06/0.00953, allocations: 3.984 kB / 369.3 MB, free: 11.28 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.076e-05/0.009541, allocations: 4 kB / 369.3 MB, free: 11.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.009543, allocations: 3.938 kB / 369.4 MB, free: 11.27 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.009544, allocations: 0 / 369.4 MB, free: 11.27 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003387/0.009883, allocations: 400.9 kB / 369.7 MB, free: 10.86 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.342e-05/0.009896, allocations: 7.953 kB / 369.8 MB, free: 10.85 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.884e-05/0.009915, allocations: 8 kB / 369.8 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.206e-05/0.009967, allocations: 0 / 369.8 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.504e-05/0.01001, allocations: 23.91 kB / 369.8 MB, free: 10.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.938e-05/0.01003, allocations: 15.98 kB / 369.8 MB, free: 10.8 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.971e-05/0.01007, allocations: 95.27 kB / 369.9 MB, free: 10.71 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01007, allocations: 4 kB / 369.9 MB, free: 10.7 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001994/0.01027, allocations: 44 kB / 369.9 MB, free: 10.66 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 8.969e-05/0.01036, allocations: 107.2 kB / 370 MB, free: 10.54 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002184/0.01058, allocations: 163.8 kB / 370.2 MB, free: 10.38 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.482e-06/0.01058, allocations: 0 / 370.2 MB, free: 10.38 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.614e-05/0.01067, allocations: 85.97 kB / 370.3 MB, free: 10.3 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001786/0.01085, allocations: 19.94 kB / 370.3 MB, free: 10.28 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006437/0.01149, allocations: 0.5214 MB / 370.8 MB, free: 9.723 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.177e-05/0.01157, allocations: 116.5 kB / 370.9 MB, free: 9.59 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.244e-05/0.01161, allocations: 20.5 kB / 371 MB, free: 9.566 MB / 298.7 MB Notification: Performance of SimCode: time 4.91e-07/0.01161, allocations: 4 kB / 371 MB, free: 9.562 MB / 298.7 MB Notification: Performance of Templates: time 0.00263/0.01424, allocations: 2.198 MB / 373.2 MB, free: 7.371 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.makefile [Timeout 660] (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 & ./ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.026759556494653] Failed to read output from testmodel.py, exit status != 0: 0.020278220996260643 0.027635013000000003 0.021905492000000002 Calling exit ...