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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) 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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001896/0.001896, allocations: 106.5 kB / 16.35 MB, free: 5.824 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00233/0.00233, allocations: 189.4 kB / 17.29 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.706/1.706, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04141/0.04141, allocations: 8.117 MB / 278.6 MB, free: 3.949 MB / 222.1 MB 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.001428/0.001428, allocations: 71.91 kB / 338.6 MB, free: 7.82 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2945/0.296, allocations: 48.28 MB / 386.9 MB, free: 51.55 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure): time 0.00414/0.3002, allocations: 1.961 MB / 388.9 MB, free: 50.2 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009692/0.3012, allocations: 0.5668 MB / 389.4 MB, free: 49.8 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.195e-05/0.3013, allocations: 4.156 kB / 389.4 MB, free: 49.8 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 8.347e-05/0.3014, allocations: 29.28 kB / 389.5 MB, free: 49.78 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001465/0.3016, allocations: 44.11 kB / 389.5 MB, free: 49.75 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002143/0.3018, allocations: 56.36 kB / 389.6 MB, free: 49.72 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002401/0.302, allocations: 216.6 kB / 389.8 MB, free: 49.61 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002319/0.3023, allocations: 104.9 kB / 389.9 MB, free: 49.57 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001823/0.3025, allocations: 81.31 kB / 390 MB, free: 49.53 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001329/0.3026, allocations: 89.33 kB / 390.1 MB, free: 49.48 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.547e-05/0.3026, allocations: 25.66 kB / 390.1 MB, free: 49.48 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.768e-05/0.3027, allocations: 21.09 kB / 390.1 MB, free: 49.48 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.423e-05/0.3027, allocations: 45.03 kB / 390.1 MB, free: 49.45 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000122/0.3029, allocations: 100.5 kB / 390.2 MB, free: 49.39 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003573/0.3032, allocations: 228.2 kB / 390.5 MB, free: 49.31 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.3033, allocations: 4 kB / 390.5 MB, free: 49.3 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.3033, allocations: 0 / 390.5 MB, free: 49.3 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.323e-06/0.3033, allocations: 0.875 kB / 390.5 MB, free: 49.3 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.0007558/0.304, allocations: 485.3 kB / 390.9 MB, free: 48.88 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/0.3041, allocations: 9.375 kB / 391 MB, free: 48.88 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.233e-05/0.3042, allocations: 24.77 kB / 391 MB, free: 48.87 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001591/0.3043, allocations: 184.6 kB / 391.2 MB, free: 48.66 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.985e-05/0.3044, allocations: 17.34 kB / 391.2 MB, free: 48.65 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.732e-05/0.3044, allocations: 28.62 kB / 391.2 MB, free: 48.64 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003747/0.3048, allocations: 196 kB / 391.4 MB, free: 48.55 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.779e-05/0.3048, allocations: 5.781 kB / 391.4 MB, free: 48.54 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.338e-05/0.3049, allocations: 5.828 kB / 391.4 MB, free: 48.54 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.04e-05/0.3049, allocations: 6.156 kB / 391.4 MB, free: 48.54 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002369/0.3051, allocations: 119.8 kB / 391.5 MB, free: 48.5 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001233/0.3064, allocations: 0.7218 MB / 392.2 MB, free: 47.97 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004177/0.3068, allocations: 262.1 kB / 392.5 MB, free: 47.8 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002323/0.307, allocations: 108.9 kB / 392.6 MB, free: 47.76 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.355e-05/0.3071, allocations: 7.078 kB / 392.6 MB, free: 47.76 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003168/0.3074, allocations: 127.5 kB / 392.7 MB, free: 47.68 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.523e-06/0.3074, allocations: 0.6562 kB / 392.7 MB, free: 47.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001095/0.3085, allocations: 0.6413 MB / 393.4 MB, free: 47.26 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.019e-05/0.3086, allocations: 56.7 kB / 393.4 MB, free: 47.2 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.381e-05/0.3087, allocations: 129 kB / 393.6 MB, free: 47.09 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.182e-05/0.3087, allocations: 31.83 kB / 393.6 MB, free: 47.05 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.642e-05/0.3088, allocations: 142.4 kB / 393.7 MB, free: 46.93 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.433e-05/0.3088, allocations: 80.3 kB / 393.8 MB, free: 46.87 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.433e-05/0.3089, allocations: 55.52 kB / 393.9 MB, free: 46.83 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.81e-05/0.309, allocations: 330.8 kB / 394.2 MB, free: 46.51 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001125/0.3091, allocations: 70.22 kB / 394.3 MB, free: 46.48 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001355/0.3093, allocations: 130.2 kB / 394.4 MB, free: 46.38 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002581/0.3095, allocations: 214.8 kB / 394.6 MB, free: 46.23 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.3095, allocations: 1.5 kB / 394.6 MB, free: 46.23 MB / 318.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003413/0.3099, allocations: 252.1 kB / 394.8 MB, free: 46.11 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.3099, allocations: 5.5 kB / 394.9 MB, free: 46.11 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.325e-06/0.3099, allocations: 4.453 kB / 394.9 MB, free: 46.11 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.3099, allocations: 3.562 kB / 394.9 MB, free: 46.11 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002253/0.3102, allocations: 65.11 kB / 394.9 MB, free: 46.11 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.116e-06/0.3102, allocations: 2.75 kB / 394.9 MB, free: 46.11 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.12e-05/0.3103, allocations: 17.38 kB / 394.9 MB, free: 46.1 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.68e-05/0.3103, allocations: 8.25 kB / 395 MB, free: 46.1 MB / 318.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.0001417/0.3105, allocations: 145.5 kB / 395.1 MB, free: 45.96 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.178e-05/0.3105, allocations: 9.406 kB / 395.1 MB, free: 45.96 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.148e-05/0.3105, allocations: 21.22 kB / 395.1 MB, free: 45.95 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.3105, allocations: 2.75 kB / 395.1 MB, free: 45.95 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/0.3105, allocations: 0 / 395.1 MB, free: 45.95 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.3106, allocations: 11.67 kB / 395.1 MB, free: 45.94 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007411/0.3113, allocations: 0.6191 MB / 395.8 MB, free: 45.49 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.3113, allocations: 1.375 kB / 395.8 MB, free: 45.49 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001986/0.3115, allocations: 42.05 kB / 395.8 MB, free: 45.48 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.059e-06/0.3115, allocations: 5.312 kB / 395.8 MB, free: 45.48 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.803e-05/0.3116, allocations: 7.922 kB / 395.8 MB, free: 45.48 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.085e-06/0.3116, allocations: 3.266 kB / 395.8 MB, free: 45.48 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.3116, allocations: 0 / 395.8 MB, free: 45.48 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004109/0.312, allocations: 391.8 kB / 396.2 MB, free: 45.23 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.586e-05/0.312, allocations: 91.8 kB / 396.3 MB, free: 45.13 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.953e-05/0.3121, allocations: 8.109 kB / 396.3 MB, free: 45.12 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001023/0.3122, allocations: 4.766 kB / 396.3 MB, free: 45.12 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.71e-05/0.3122, allocations: 17.83 kB / 396.3 MB, free: 45.12 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.59e-05/0.3123, allocations: 14.89 kB / 396.3 MB, free: 45.12 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.919e-05/0.3123, allocations: 102.4 kB / 396.4 MB, free: 45.04 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.3123, allocations: 0 / 396.4 MB, free: 45.04 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003271/0.3127, allocations: 47.06 kB / 396.5 MB, free: 45.03 MB / 318.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.0001111/0.3128, allocations: 113.7 kB / 396.6 MB, free: 44.93 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003218/0.3131, allocations: 177.6 kB / 396.8 MB, free: 44.87 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.3131, allocations: 8 kB / 396.8 MB, free: 44.86 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001367/0.3133, allocations: 92.45 kB / 396.9 MB, free: 44.83 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002628/0.3135, allocations: 18.09 kB / 396.9 MB, free: 44.82 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009158/0.3145, allocations: 0.5882 MB / 397.5 MB, free: 44.4 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002028/0.3147, allocations: 0.7263 MB / 398.2 MB, free: 43.71 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 7.056e-05/0.3148, allocations: 17.61 kB / 398.2 MB, free: 43.71 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.961e-05/0.3148, allocations: 22.41 kB / 398.2 MB, free: 43.7 MB / 318.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3148, allocations: 0 / 398.2 MB, free: 43.7 MB / 318.1 MB Notification: Performance of Templates: time 0.005182/0.32, allocations: 1.546 MB / 399.8 MB, free: 43.61 MB / 318.1 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 -s cvode -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.pipe 2>&1)