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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) 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.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure") translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001087/0.001087, allocations: 186.3 kB / 15.98 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.452/1.452, allocations: 194.2 MB / 210.9 MB, free: 2.367 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03742/0.03742, allocations: 8.117 MB / 263.3 MB, free: 12.65 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001767/0.001767, allocations: 124 kB / 309.4 MB, free: 14.48 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 71.88 kB / 365.4 MB, free: 6.324 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2409/0.2421, allocations: 45.26 MB / 410.7 MB, free: 66.82 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure): time 0.003336/0.2455, allocations: 1.996 MB / 412.7 MB, free: 64.81 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.000921/0.2464, allocations: 0.5541 MB / 413.2 MB, free: 64.25 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001752/0.2466, allocations: 4 kB / 413.2 MB, free: 64.25 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 8.888e-05/0.2467, allocations: 15.84 kB / 413.2 MB, free: 64.23 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001977/0.247, allocations: 43.69 kB / 413.3 MB, free: 64.19 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000208/0.2472, allocations: 43.95 kB / 413.3 MB, free: 64.14 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001575/0.2474, allocations: 199.2 kB / 413.5 MB, free: 63.95 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001786/0.2475, allocations: 82.67 kB / 413.6 MB, free: 63.87 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001526/0.2477, allocations: 75.77 kB / 413.7 MB, free: 63.79 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.191e-05/0.2478, allocations: 87.61 kB / 413.8 MB, free: 63.71 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.998e-05/0.2478, allocations: 16 kB / 413.8 MB, free: 63.69 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.156e-05/0.2479, allocations: 16 kB / 413.8 MB, free: 63.68 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 3.622e-05/0.2479, allocations: 39.89 kB / 413.8 MB, free: 63.64 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 8.597e-05/0.248, allocations: 99.47 kB / 413.9 MB, free: 63.54 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001728/0.2482, allocations: 217.4 kB / 414.1 MB, free: 63.33 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.2482, allocations: 0 / 414.1 MB, free: 63.33 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2482, allocations: 0 / 414.1 MB, free: 63.33 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.2482, allocations: 0 / 414.1 MB, free: 63.33 MB / 314.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.000631/0.2489, allocations: 486.5 kB / 414.6 MB, free: 62.81 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.2489, allocations: 12.03 kB / 414.6 MB, free: 62.8 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.952e-05/0.249, allocations: 20.66 kB / 414.6 MB, free: 62.78 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000105/0.2491, allocations: 192.1 kB / 414.8 MB, free: 62.55 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.709e-05/0.2491, allocations: 12.81 kB / 414.8 MB, free: 62.54 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.533e-05/0.2491, allocations: 24.38 kB / 414.9 MB, free: 62.52 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002614/0.2494, allocations: 195.4 kB / 415.1 MB, free: 62.32 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.592e-05/0.2494, allocations: 11.83 kB / 415.1 MB, free: 62.3 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.923e-05/0.2494, allocations: 8 kB / 415.1 MB, free: 62.3 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.194e-06/0.2495, allocations: 8 kB / 415.1 MB, free: 62.29 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001733/0.2496, allocations: 117.6 kB / 415.2 MB, free: 62.18 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009486/0.2506, allocations: 0.733 MB / 415.9 MB, free: 61.38 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003451/0.251, allocations: 259.6 kB / 416.2 MB, free: 61.1 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001769/0.2511, allocations: 107.1 kB / 416.3 MB, free: 60.99 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.819e-05/0.2512, allocations: 4 kB / 416.3 MB, free: 60.99 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002429/0.2514, allocations: 127.2 kB / 416.4 MB, free: 60.85 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 1.533e-06/0.2514, allocations: 0 / 416.4 MB, free: 60.85 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008911/0.2523, allocations: 0.6456 MB / 417.1 MB, free: 60.15 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.968e-05/0.2524, allocations: 59.39 kB / 417.1 MB, free: 60.08 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.997e-05/0.2525, allocations: 121.8 kB / 417.2 MB, free: 59.95 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.67e-05/0.2525, allocations: 37.69 kB / 417.3 MB, free: 59.91 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.808e-05/0.2525, allocations: 140 kB / 417.4 MB, free: 59.77 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.221e-05/0.2526, allocations: 78.89 kB / 417.5 MB, free: 59.69 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.818e-05/0.2526, allocations: 53.7 kB / 417.5 MB, free: 59.63 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.419e-05/0.2527, allocations: 334.8 kB / 417.9 MB, free: 59.29 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.243e-05/0.2528, allocations: 55.98 kB / 417.9 MB, free: 59.24 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000107/0.2529, allocations: 139.6 kB / 418.1 MB, free: 59.07 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002015/0.2531, allocations: 209 kB / 418.3 MB, free: 58.84 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.2531, allocations: 0 / 418.3 MB, free: 58.84 MB / 314.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0002723/0.2534, allocations: 255.6 kB / 418.5 MB, free: 58.59 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/0.2534, allocations: 4.25 kB / 418.5 MB, free: 58.58 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.2534, allocations: 8 kB / 418.5 MB, free: 58.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.2534, allocations: 4 kB / 418.5 MB, free: 58.57 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001887/0.2536, allocations: 55.91 kB / 418.6 MB, free: 58.52 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.575e-06/0.2537, allocations: 4 kB / 418.6 MB, free: 58.51 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.394e-05/0.2537, allocations: 15.94 kB / 418.6 MB, free: 58.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.304e-05/0.2538, allocations: 19.94 kB / 418.6 MB, free: 58.48 MB / 314.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.0001214/0.2539, allocations: 141.8 kB / 418.8 MB, free: 58.33 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.924e-05/0.2539, allocations: 15.89 kB / 418.8 MB, free: 58.31 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.255e-05/0.254, allocations: 20.84 kB / 418.8 MB, free: 58.3 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.254, allocations: 0 / 418.8 MB, free: 58.3 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.254, allocations: 0 / 418.8 MB, free: 58.3 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.99e-06/0.254, allocations: 7.938 kB / 418.8 MB, free: 58.29 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005895/0.2546, allocations: 0.6211 MB / 419.4 MB, free: 57.61 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.2546, allocations: 3.938 kB / 419.4 MB, free: 57.6 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001748/0.2548, allocations: 47.84 kB / 419.5 MB, free: 57.55 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.005e-06/0.2548, allocations: 4 kB / 419.5 MB, free: 57.55 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.41e-05/0.2548, allocations: 4 kB / 419.5 MB, free: 57.55 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.2548, allocations: 4 kB / 419.5 MB, free: 57.54 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2548, allocations: 0 / 419.5 MB, free: 57.54 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001363/0.2562, allocations: 1.681 MB / 421.2 MB, free: 55.71 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.345e-05/0.2562, allocations: 89.02 kB / 421.3 MB, free: 55.61 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.013e-05/0.2563, allocations: 4.031 kB / 421.3 MB, free: 55.61 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.54e-05/0.2564, allocations: 8 kB / 421.3 MB, free: 55.6 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.89e-05/0.2564, allocations: 15.98 kB / 421.3 MB, free: 55.58 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.443e-05/0.2564, allocations: 15.92 kB / 421.3 MB, free: 55.57 MB / 314.7 MB Notification: Performance of sorting global known variables: time 4.044e-05/0.2565, allocations: 101.4 kB / 421.4 MB, free: 55.47 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2565, allocations: 0 / 421.4 MB, free: 55.47 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003516/0.2568, allocations: 56 kB / 421.5 MB, free: 55.41 MB / 314.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 9.303e-05/0.257, allocations: 115.4 kB / 421.6 MB, free: 55.29 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002308/0.2572, allocations: 184 kB / 421.7 MB, free: 55.11 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.2572, allocations: 0 / 421.7 MB, free: 55.11 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001059/0.2573, allocations: 89.41 kB / 421.8 MB, free: 55.03 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00024/0.2576, allocations: 16.56 kB / 421.8 MB, free: 55.01 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009326/0.2585, allocations: 0.8552 MB / 422.7 MB, free: 54.11 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001495/0.2587, allocations: 0.7403 MB / 423.4 MB, free: 53.35 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 6.231e-05/0.2587, allocations: 21.53 kB / 423.5 MB, free: 53.33 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.451e-05/0.2588, allocations: 19.44 kB / 423.5 MB, free: 53.31 MB / 314.7 MB Notification: Performance of SimCode: time 2.1e-07/0.2588, allocations: 0 / 423.5 MB, free: 53.31 MB / 314.7 MB Notification: Performance of Templates: time 0.003792/0.2626, allocations: 1.812 MB / 425.3 MB, free: 51.53 MB / 314.7 MB make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.makefile (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)