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.001689/0.001689, allocations: 180.3 kB / 7.651 MB, free: 1.402 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 2.116/2.116, allocations: 194.3 MB / 202.4 MB, free: 8.543 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03844/0.03844, allocations: 7.919 MB / 255.2 MB, free: 1.605 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001949/0.001949, allocations: 116.3 kB / 301.9 MB, free: 3.191 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.77e-05/1.768e-05, allocations: 0 / 354.3 MB, free: 14.67 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3531/0.3532, allocations: 46.2 MB / 400.5 MB, free: 69.94 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.122/0.4754, allocations: 71.89 MB / 472.4 MB, free: 15.4 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002203/0.4756, allocations: 51.98 kB / 472.4 MB, free: 15.35 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008772/0.4844, allocations: 2.817 MB / 475.2 MB, free: 12.53 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.909e-06/0.4845, allocations: 0 / 475.2 MB, free: 12.53 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.003e-05/0.4845, allocations: 11.94 kB / 475.3 MB, free: 12.52 MB / 330.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.0008713/0.4854, allocations: 434.9 kB / 475.7 MB, free: 12.05 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.233e-05/0.4855, allocations: 8.031 kB / 475.7 MB, free: 12.04 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001212/0.4856, allocations: 31.59 kB / 475.7 MB, free: 12.01 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002849/0.4859, allocations: 186.8 kB / 475.9 MB, free: 11.79 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.215e-05/0.486, allocations: 8 kB / 475.9 MB, free: 11.78 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.097e-05/0.486, allocations: 16 kB / 475.9 MB, free: 11.76 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002821/0.4863, allocations: 100.9 kB / 476 MB, free: 11.66 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003433/0.4867, allocations: 154.4 kB / 476.2 MB, free: 11.51 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.118e-05/0.4867, allocations: 4 kB / 476.2 MB, free: 11.5 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.1e-05/0.4868, allocations: 4 kB / 476.2 MB, free: 11.5 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.655e-05/0.4868, allocations: 7.984 kB / 476.2 MB, free: 11.49 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001646/0.4884, allocations: 0.6935 MB / 476.9 MB, free: 10.75 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005625/0.489, allocations: 251.7 kB / 477.1 MB, free: 10.48 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002823/0.4893, allocations: 101.1 kB / 477.2 MB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.747e-05/0.4893, allocations: 0 / 477.2 MB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00032/0.4897, allocations: 124.2 kB / 477.4 MB, free: 10.24 MB / 330.7 MB Notification: Performance of pre-optimization done (n=21): time 3.176e-06/0.4897, allocations: 0 / 477.4 MB, free: 10.24 MB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.001311/0.491, allocations: 0.5402 MB / 477.9 MB, free: 9.656 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.089e-05/0.4911, allocations: 59.27 kB / 478 MB, free: 9.586 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001702/0.4913, allocations: 120.8 kB / 478.1 MB, free: 9.465 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.25e-05/0.4913, allocations: 29.7 kB / 478.1 MB, free: 9.43 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001558/0.4915, allocations: 140.2 kB / 478.2 MB, free: 9.289 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.121e-05/0.4916, allocations: 78.86 kB / 478.3 MB, free: 9.211 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.647e-06/0.4916, allocations: 0 / 478.3 MB, free: 9.211 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002055/0.4918, allocations: 326.8 kB / 478.6 MB, free: 8.883 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001306/0.492, allocations: 48 kB / 478.7 MB, free: 8.836 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001826/0.4921, allocations: 116 kB / 478.8 MB, free: 8.691 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001768/0.4923, allocations: 70.08 kB / 478.9 MB, free: 8.625 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.895e-05/0.4924, allocations: 3.953 kB / 478.9 MB, free: 8.621 MB / 330.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0004596/0.4928, allocations: 227.8 kB / 479.1 MB, free: 8.395 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.389e-05/0.4929, allocations: 4 kB / 479.1 MB, free: 8.391 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.436e-05/0.4929, allocations: 4 kB / 479.1 MB, free: 8.387 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.124e-05/0.4929, allocations: 4 kB / 479.1 MB, free: 8.383 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002839/0.4932, allocations: 63.91 kB / 479.2 MB, free: 8.32 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.245e-05/0.4932, allocations: 3.938 kB / 479.2 MB, free: 8.316 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001048/0.4934, allocations: 8 kB / 479.2 MB, free: 8.309 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.189e-05/0.4934, allocations: 8.25 kB / 479.2 MB, free: 8.301 MB / 330.7 MB Warning: Assuming fixed start value for the following 1 variables: intervalMeasure.w:DISCRETE(fixed = false ) "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 ($PRE.intervalMeasure.last_time,intervalMeasure.last_time,$PRE.intervalMeasure.w,intervalMeasure.w,$whenCondition2,$whenCondition1,$PRE.intervalMeasure.next_phi,intervalMeasure.next_phi,$PRE.intervalMeasure.prev_phi,intervalMeasure.prev_phi) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002346/0.4936, allocations: 132.4 kB / 479.3 MB, free: 8.168 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.187e-05/0.4937, allocations: 23.69 kB / 479.3 MB, free: 8.145 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.573e-05/0.4938, allocations: 16.75 kB / 479.3 MB, free: 8.129 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.4938, allocations: 4 kB / 479.4 MB, free: 8.125 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.998e-06/0.4938, allocations: 0 / 479.4 MB, free: 8.125 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.4938, allocations: 3.938 kB / 479.4 MB, free: 8.121 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009432/0.4948, allocations: 0.5668 MB / 479.9 MB, free: 7.504 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.594e-06/0.4948, allocations: 0 / 479.9 MB, free: 7.504 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002028/0.495, allocations: 39.92 kB / 480 MB, free: 7.465 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.159e-05/0.495, allocations: 4 kB / 480 MB, free: 7.461 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.058e-05/0.4951, allocations: 8.047 kB / 480 MB, free: 7.453 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.05e-06/0.4951, allocations: 4 kB / 480 MB, free: 7.449 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.4951, allocations: 0 / 480 MB, free: 7.449 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005947/0.4957, allocations: 385.4 kB / 480.4 MB, free: 7.039 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.517e-05/0.4958, allocations: 89.02 kB / 480.4 MB, free: 6.934 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.272e-05/0.4958, allocations: 4 kB / 480.4 MB, free: 6.93 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001065/0.4959, allocations: 11.98 kB / 480.5 MB, free: 6.918 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.308e-05/0.496, allocations: 15.98 kB / 480.5 MB, free: 6.902 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.38e-05/0.4961, allocations: 8 kB / 480.5 MB, free: 6.895 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.55e-05/0.4961, allocations: 95.27 kB / 480.6 MB, free: 6.801 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4961, allocations: 0 / 480.6 MB, free: 6.801 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003639/0.4965, allocations: 40 kB / 480.6 MB, free: 6.762 MB / 330.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.w,idealSensor.flange.phi) * 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002375/0.4968, allocations: 114.6 kB / 480.7 MB, free: 6.641 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003612/0.4971, allocations: 151.9 kB / 480.9 MB, free: 6.492 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.4971, allocations: 0 / 480.9 MB, free: 6.492 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001749/0.4973, allocations: 79.92 kB / 481 MB, free: 6.414 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002109/0.4975, allocations: 11.91 kB / 481 MB, free: 6.402 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001214/0.4988, allocations: 0.5053 MB / 481.5 MB, free: 5.875 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004842/0.4993, allocations: 0.7322 MB / 482.2 MB, free: 5.113 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 6.991e-05/0.4993, allocations: 21.84 kB / 482.2 MB, free: 5.094 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.469e-05/0.4994, allocations: 19.44 kB / 482.2 MB, free: 5.074 MB / 330.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4994, allocations: 0 / 482.2 MB, free: 5.074 MB / 330.7 MB Notification: Performance of Templates: time 0.004595/0.504, allocations: 1.356 MB / 483.6 MB, free: 3.746 MB / 330.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)