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.001214/0.001214, allocations: 110.2 kB / 16.41 MB, free: 6.496 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.001179/0.001179, allocations: 187 kB / 17.34 MB, free: 5.762 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.317/1.317, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04618/0.04618, allocations: 8.114 MB / 278.7 MB, free: 3.965 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.001584/0.001584, allocations: 68 kB / 387.4 MB, free: 47.23 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07067/0.07227, allocations: 48.31 MB / 435.7 MB, free: 8.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure): time 0.002633/0.07492, allocations: 1.965 MB / 437.6 MB, free: 6.59 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008536/0.0758, allocations: 0.5658 MB / 438.2 MB, free: 6.016 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001032/0.07592, allocations: 4 kB / 438.2 MB, free: 6.012 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 6.98e-05/0.076, allocations: 27.73 kB / 438.2 MB, free: 5.984 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001762/0.07619, allocations: 47.55 kB / 438.3 MB, free: 5.938 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001723/0.07637, allocations: 51.94 kB / 438.3 MB, free: 5.887 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001655/0.07655, allocations: 215.1 kB / 438.5 MB, free: 5.676 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002134/0.07677, allocations: 106 kB / 438.6 MB, free: 5.57 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001523/0.07693, allocations: 79.78 kB / 438.7 MB, free: 5.492 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001392/0.07707, allocations: 91.56 kB / 438.8 MB, free: 5.402 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.881e-05/0.07711, allocations: 20 kB / 438.8 MB, free: 5.383 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.899e-05/0.07714, allocations: 24 kB / 438.8 MB, free: 5.359 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.303e-05/0.07718, allocations: 47.89 kB / 438.9 MB, free: 5.312 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.192e-05/0.07726, allocations: 99.53 kB / 439 MB, free: 5.215 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001854/0.07745, allocations: 231.2 kB / 439.2 MB, free: 4.988 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.896e-06/0.07746, allocations: 3.938 kB / 439.2 MB, free: 4.984 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.07747, allocations: 0 / 439.2 MB, free: 4.984 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.744e-06/0.07748, allocations: 0 / 439.2 MB, free: 4.984 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.0006517/0.07814, allocations: 483.4 kB / 439.7 MB, free: 4.465 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.013e-05/0.07817, allocations: 8.031 kB / 439.7 MB, free: 4.457 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.959e-05/0.07823, allocations: 20.75 kB / 439.7 MB, free: 4.438 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.09e-05/0.07832, allocations: 184.1 kB / 439.9 MB, free: 4.219 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.457e-05/0.07834, allocations: 16.8 kB / 439.9 MB, free: 4.203 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.163e-05/0.07839, allocations: 24.38 kB / 439.9 MB, free: 4.18 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000272/0.07867, allocations: 203.5 kB / 440.1 MB, free: 3.973 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.351e-05/0.07869, allocations: 0 / 440.1 MB, free: 3.973 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.19e-05/0.07872, allocations: 8 kB / 440.1 MB, free: 3.965 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.593e-06/0.07873, allocations: 8 kB / 440.2 MB, free: 3.957 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002269/0.07896, allocations: 117.7 kB / 440.3 MB, free: 3.844 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009996/0.07997, allocations: 0.7212 MB / 441 MB, free: 3.059 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003233/0.0803, allocations: 263.6 kB / 441.2 MB, free: 2.773 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002124/0.08053, allocations: 112.8 kB / 441.4 MB, free: 2.66 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.117e-05/0.08055, allocations: 4 kB / 441.4 MB, free: 2.656 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002258/0.08078, allocations: 127.1 kB / 441.5 MB, free: 2.52 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.804e-06/0.08079, allocations: 0 / 441.5 MB, free: 2.52 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0009736/0.08177, allocations: 0.6444 MB / 442.1 MB, free: 1.828 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.591e-05/0.08181, allocations: 59.41 kB / 442.2 MB, free: 1.758 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.733e-05/0.08188, allocations: 129.7 kB / 442.3 MB, free: 1.621 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.59e-05/0.0819, allocations: 33.7 kB / 442.3 MB, free: 1.582 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.224e-05/0.08195, allocations: 136.2 kB / 442.5 MB, free: 1.445 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.802e-05/0.08199, allocations: 78.84 kB / 442.6 MB, free: 1.367 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.817e-05/0.08206, allocations: 61.36 kB / 442.6 MB, free: 1.301 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.267e-05/0.0821, allocations: 330.8 kB / 442.9 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.705e-05/0.0822, allocations: 67.91 kB / 443 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000109/0.08231, allocations: 127.9 kB / 443.1 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002347/0.08255, allocations: 217 kB / 443.3 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/0.08258, allocations: 0 / 443.3 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003008/0.08289, allocations: 255.6 kB / 443.6 MB, free: 260 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.256e-05/0.08291, allocations: 4 kB / 443.6 MB, free: 256 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.08292, allocations: 4 kB / 443.6 MB, free: 252 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.488e-05/0.08294, allocations: 4 kB / 443.6 MB, free: 248 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001933/0.08314, allocations: 59.91 kB / 443.7 MB, free: 188 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/0.08315, allocations: 0 / 443.7 MB, free: 188 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001178/0.08328, allocations: 19.92 kB / 443.7 MB, free: 168 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.265e-05/0.0833, allocations: 16.25 kB / 443.7 MB, free: 152 kB / 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.0001307/0.08344, allocations: 145.8 kB / 443.8 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.355e-05/0.08347, allocations: 7.906 kB / 443.9 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.357e-05/0.08354, allocations: 20.84 kB / 443.9 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.334e-06/0.08357, allocations: 3.938 kB / 443.9 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.08358, allocations: 4 kB / 443.9 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.08359, allocations: 7.922 kB / 443.9 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008335/0.08443, allocations: 0.617 MB / 444.5 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.08447, allocations: 0 / 444.5 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001942/0.08467, allocations: 39.92 kB / 444.5 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.322e-06/0.08469, allocations: 7.938 kB / 444.6 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.82e-05/0.08471, allocations: 7.984 kB / 444.6 MB, free: 15.22 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.591e-06/0.08472, allocations: 8 kB / 444.6 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.08473, allocations: 0 / 444.6 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004867/0.08522, allocations: 389 kB / 444.9 MB, free: 14.81 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.517e-05/0.08528, allocations: 92.86 kB / 445 MB, free: 14.7 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.138e-05/0.08531, allocations: 12.03 kB / 445 MB, free: 14.69 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001522/0.08547, allocations: 4 kB / 445.1 MB, free: 14.68 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.411e-05/0.08552, allocations: 11.98 kB / 445.1 MB, free: 14.67 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.274e-05/0.08556, allocations: 19.98 kB / 445.1 MB, free: 14.65 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.967e-05/0.08562, allocations: 95.27 kB / 445.2 MB, free: 14.56 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08563, allocations: 0 / 445.2 MB, free: 14.56 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003015/0.08593, allocations: 48 kB / 445.2 MB, free: 14.51 MB / 334.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 9.972e-05/0.08604, allocations: 117.2 kB / 445.3 MB, free: 14.39 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003494/0.08639, allocations: 175.8 kB / 445.5 MB, free: 14.22 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.08641, allocations: 4.438 kB / 445.5 MB, free: 14.21 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001217/0.08653, allocations: 95.84 kB / 445.6 MB, free: 14.12 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002582/0.0868, allocations: 12 kB / 445.6 MB, free: 14.11 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00097/0.08778, allocations: 0.6062 MB / 446.2 MB, free: 13.46 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002768/0.08807, allocations: 0.7286 MB / 447 MB, free: 12.71 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.719e-05/0.08813, allocations: 19.44 kB / 447 MB, free: 12.69 MB / 334.1 MB Notification: Performance of SimCode: time 4.21e-07/0.08814, allocations: 0 / 447 MB, free: 12.69 MB / 334.1 MB Notification: Performance of Templates: time 0.003961/0.09211, allocations: 2.091 MB / 449.1 MB, free: 10.61 MB / 334.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 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.pipe 2>&1)