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.001381/0.001381, allocations: 109.9 kB / 16.41 MB, free: 6.492 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.001305/0.001305, allocations: 183 kB / 17.34 MB, free: 5.766 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.351/1.351, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04238/0.04238, allocations: 8.112 MB / 278.7 MB, free: 3.941 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.00148/0.00148, allocations: 67.66 kB / 387.3 MB, free: 47.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07642/0.0779, allocations: 48.31 MB / 435.7 MB, free: 8.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure): time 0.002535/0.08048, allocations: 1.972 MB / 437.6 MB, free: 6.586 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008138/0.08133, allocations: 0.5697 MB / 438.2 MB, free: 6.008 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.46e-05/0.08143, allocations: 4 kB / 438.2 MB, free: 6.004 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 6.242e-05/0.0815, allocations: 27.72 kB / 438.2 MB, free: 5.977 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001291/0.08167, allocations: 43.56 kB / 438.3 MB, free: 5.934 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001899/0.08186, allocations: 59.92 kB / 438.3 MB, free: 5.875 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001647/0.08204, allocations: 211.2 kB / 438.5 MB, free: 5.668 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001943/0.08224, allocations: 102 kB / 438.6 MB, free: 5.566 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001611/0.08241, allocations: 83.72 kB / 438.7 MB, free: 5.484 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000105/0.08252, allocations: 95.59 kB / 438.8 MB, free: 5.391 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.275e-05/0.08256, allocations: 20 kB / 438.8 MB, free: 5.371 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.824e-05/0.0826, allocations: 20 kB / 438.9 MB, free: 5.352 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.692e-05/0.08264, allocations: 43.91 kB / 438.9 MB, free: 5.309 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.912e-05/0.08273, allocations: 103.5 kB / 439 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001829/0.08291, allocations: 227.2 kB / 439.2 MB, free: 4.984 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.08293, allocations: 3.938 kB / 439.2 MB, free: 4.98 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.08293, allocations: 0 / 439.2 MB, free: 4.98 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.55e-06/0.08295, allocations: 0 / 439.2 MB, free: 4.98 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.0006149/0.08357, allocations: 483.4 kB / 439.7 MB, free: 4.461 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.08361, allocations: 12.03 kB / 439.7 MB, free: 4.449 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.326e-05/0.08367, allocations: 16.75 kB / 439.7 MB, free: 4.434 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000105/0.08378, allocations: 188.1 kB / 439.9 MB, free: 4.211 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.755e-05/0.0838, allocations: 16.81 kB / 439.9 MB, free: 4.195 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.642e-05/0.08385, allocations: 20.38 kB / 439.9 MB, free: 4.176 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002623/0.08411, allocations: 199.5 kB / 440.1 MB, free: 3.973 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.08413, allocations: 0 / 440.1 MB, free: 3.973 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.084e-05/0.08416, allocations: 11.98 kB / 440.2 MB, free: 3.961 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.113e-06/0.08417, allocations: 8 kB / 440.2 MB, free: 3.953 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001675/0.08435, allocations: 113.7 kB / 440.3 MB, free: 3.844 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000888/0.08524, allocations: 0.729 MB / 441 MB, free: 3.051 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003258/0.08558, allocations: 255.6 kB / 441.2 MB, free: 2.773 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001827/0.08578, allocations: 112.8 kB / 441.4 MB, free: 2.66 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.473e-05/0.0858, allocations: 8 kB / 441.4 MB, free: 2.652 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002355/0.08604, allocations: 127.1 kB / 441.5 MB, free: 2.516 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.884e-06/0.08605, allocations: 0 / 441.5 MB, free: 2.516 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0009223/0.08698, allocations: 0.6444 MB / 442.1 MB, free: 1.82 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.766e-05/0.08703, allocations: 55.41 kB / 442.2 MB, free: 1.754 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.108e-05/0.08711, allocations: 137.7 kB / 442.3 MB, free: 1.609 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.638e-05/0.08713, allocations: 33.7 kB / 442.4 MB, free: 1.57 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.995e-05/0.08719, allocations: 132.2 kB / 442.5 MB, free: 1.438 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.283e-05/0.08724, allocations: 78.84 kB / 442.6 MB, free: 1.359 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.184e-05/0.08731, allocations: 61.36 kB / 442.6 MB, free: 1.293 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.515e-05/0.08737, allocations: 326.8 kB / 442.9 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.358e-05/0.08746, allocations: 63.97 kB / 443 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001098/0.08758, allocations: 135.9 kB / 443.1 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002083/0.08779, allocations: 209 kB / 443.3 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.0878, allocations: 3.938 kB / 443.3 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0002787/0.08809, allocations: 255.7 kB / 443.6 MB, free: 256 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.47e-05/0.08811, allocations: 4 kB / 443.6 MB, free: 252 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/0.08812, allocations: 11.98 kB / 443.6 MB, free: 240 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.214e-05/0.08815, allocations: 4 kB / 443.6 MB, free: 236 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001995/0.08835, allocations: 55.92 kB / 443.7 MB, free: 180 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.346e-06/0.08837, allocations: 4 kB / 443.7 MB, free: 176 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.089e-05/0.08847, allocations: 15.92 kB / 443.7 MB, free: 160 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.504e-05/0.08849, allocations: 16 kB / 443.7 MB, free: 144 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.0001629/0.08866, allocations: 149.8 kB / 443.8 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.129e-05/0.08868, allocations: 7.906 kB / 443.9 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.379e-05/0.08873, allocations: 20.84 kB / 443.9 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.08874, allocations: 3.984 kB / 443.9 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.08875, allocations: 0 / 443.9 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.72e-06/0.08876, allocations: 3.938 kB / 443.9 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008306/0.0896, allocations: 0.6288 MB / 444.5 MB, free: 15.26 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.08961, allocations: 4 kB / 444.5 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001906/0.08981, allocations: 39.98 kB / 444.6 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.649e-06/0.08982, allocations: 3.938 kB / 444.6 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.859e-05/0.08985, allocations: 7.984 kB / 444.6 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.058e-06/0.08986, allocations: 4 kB / 444.6 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.08986, allocations: 0 / 444.6 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004687/0.09034, allocations: 388.9 kB / 445 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.69e-05/0.0904, allocations: 96.89 kB / 445 MB, free: 14.68 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.696e-05/0.09044, allocations: 4 kB / 445.1 MB, free: 14.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001015/0.09055, allocations: 4 kB / 445.1 MB, free: 14.68 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.296e-05/0.09061, allocations: 19.97 kB / 445.1 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.119e-05/0.09064, allocations: 8 kB / 445.1 MB, free: 14.65 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.935e-05/0.09071, allocations: 99.27 kB / 445.2 MB, free: 14.55 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.09072, allocations: 4 kB / 445.2 MB, free: 14.55 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000301/0.09102, allocations: 48 kB / 445.2 MB, free: 14.5 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 0.0001206/0.09115, allocations: 113.2 kB / 445.3 MB, free: 14.38 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000334/0.09149, allocations: 175.8 kB / 445.5 MB, free: 14.21 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.0915, allocations: 0 / 445.5 MB, free: 14.21 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001251/0.09163, allocations: 92.34 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.0002722/0.09191, allocations: 16.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.0009863/0.09291, allocations: 0.599 MB / 446.2 MB, free: 13.46 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003021/0.09322, allocations: 0.7325 MB / 446.9 MB, free: 12.71 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.629e-05/0.09329, allocations: 19.44 kB / 447 MB, free: 12.69 MB / 334.1 MB Notification: Performance of SimCode: time 3.91e-07/0.0933, allocations: 0 / 447 MB, free: 12.69 MB / 334.1 MB Notification: Performance of Templates: time 0.003447/0.09675, allocations: 2.095 MB / 449.1 MB, free: 10.6 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)