Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.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.Plant,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant") translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.00242/0.00242, 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.182/2.182, allocations: 194.3 MB / 202.4 MB, free: 8.555 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03941/0.03941, allocations: 7.912 MB / 255.2 MB, free: 1.613 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.001802/0.001802, allocations: 116.3 kB / 301.9 MB, free: 3.199 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.583e-05/1.576e-05, allocations: 4 kB / 354.3 MB, free: 14.67 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3521/0.3522, allocations: 46.18 MB / 400.5 MB, free: 69.91 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1073/0.4595, allocations: 71.21 MB / 471.7 MB, free: 108 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001747/0.4598, allocations: 51.98 kB / 471.7 MB, free: 56 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006495/0.4663, allocations: 2.415 MB / 474.2 MB, free: 13.64 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.4664, allocations: 0 / 474.2 MB, free: 13.64 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.055e-05/0.4664, allocations: 4 kB / 474.2 MB, free: 13.63 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.0007188/0.4672, allocations: 414.1 kB / 474.6 MB, free: 13.18 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.898e-05/0.4672, allocations: 8.031 kB / 474.6 MB, free: 13.18 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001116/0.4674, allocations: 19.77 kB / 474.6 MB, free: 13.16 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002528/0.4676, allocations: 178.9 kB / 474.8 MB, free: 12.94 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.111e-05/0.4677, allocations: 11.98 kB / 474.8 MB, free: 12.93 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.295e-05/0.4677, allocations: 12 kB / 474.8 MB, free: 12.92 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002693/0.468, allocations: 87.92 kB / 474.9 MB, free: 12.83 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002765/0.4683, allocations: 128.8 kB / 475 MB, free: 12.7 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.969e-05/0.4683, allocations: 7.938 kB / 475 MB, free: 12.7 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.064e-05/0.4684, allocations: 0 / 475 MB, free: 12.7 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.029e-05/0.4684, allocations: 4 kB / 475 MB, free: 12.69 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00132/0.4697, allocations: 0.6446 MB / 475.7 MB, free: 11.99 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005079/0.4702, allocations: 215.7 kB / 475.9 MB, free: 11.75 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002318/0.4705, allocations: 84.84 kB / 476 MB, free: 11.67 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.139e-05/0.4705, allocations: 4 kB / 476 MB, free: 11.66 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.642e-05/0.4706, allocations: 30.56 kB / 476 MB, free: 11.62 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 4.659e-06/0.4706, allocations: 4 kB / 476 MB, free: 11.62 MB / 330.7 MB Notification: Performance of matching and sorting (n=16): time 0.0009337/0.4715, allocations: 431.6 kB / 476.4 MB, free: 11.15 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.061e-05/0.4716, allocations: 51.41 kB / 476.5 MB, free: 11.09 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001224/0.4717, allocations: 109 kB / 476.6 MB, free: 10.98 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.226e-05/0.4717, allocations: 29.64 kB / 476.6 MB, free: 10.94 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.285e-05/0.4718, allocations: 132 kB / 476.7 MB, free: 10.81 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.987e-05/0.4719, allocations: 55.17 kB / 476.8 MB, free: 10.75 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.143e-06/0.4719, allocations: 4 kB / 476.8 MB, free: 10.75 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.4721, allocations: 321.4 kB / 477.1 MB, free: 10.43 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.294e-05/0.4722, allocations: 36 kB / 477.1 MB, free: 10.39 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001177/0.4723, allocations: 82.89 kB / 477.2 MB, free: 10.3 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.958e-05/0.4724, allocations: 50.05 kB / 477.3 MB, free: 10.25 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.4724, allocations: 0 / 477.3 MB, free: 10.25 MB / 330.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002711/0.4727, allocations: 157.4 kB / 477.4 MB, free: 10.09 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.105e-05/0.4727, allocations: 4 kB / 477.4 MB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.222e-05/0.4727, allocations: 7.938 kB / 477.4 MB, free: 10.08 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.386e-05/0.4727, allocations: 7.984 kB / 477.4 MB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001731/0.4729, allocations: 43.92 kB / 477.5 MB, free: 10.03 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.283e-05/0.4729, allocations: 8.156 kB / 477.5 MB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.948e-05/0.473, allocations: 0 / 477.5 MB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.633e-05/0.473, allocations: 12 kB / 477.5 MB, free: 10.01 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * 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.0001012/0.4731, allocations: 112.6 kB / 477.6 MB, free: 9.891 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.122e-05/0.4732, allocations: 11.84 kB / 477.6 MB, free: 9.879 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.756e-05/0.4733, allocations: 20.73 kB / 477.6 MB, free: 9.863 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.899e-05/0.4733, allocations: 7.953 kB / 477.6 MB, free: 9.855 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.147e-06/0.4733, allocations: 0 / 477.6 MB, free: 9.855 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.4733, allocations: 3.938 kB / 477.7 MB, free: 9.852 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007286/0.474, allocations: 446.8 kB / 478.1 MB, free: 9.371 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.4741, allocations: 0 / 478.1 MB, free: 9.371 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001915/0.4743, allocations: 39.94 kB / 478.1 MB, free: 9.332 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.72e-06/0.4743, allocations: 0 / 478.1 MB, free: 9.332 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.374e-05/0.4743, allocations: 0 / 478.1 MB, free: 9.332 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.4743, allocations: 0 / 478.1 MB, free: 9.332 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.4743, allocations: 8 kB / 478.1 MB, free: 9.324 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000438/0.4748, allocations: 254.3 kB / 478.4 MB, free: 9.062 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.887e-05/0.4749, allocations: 93 kB / 478.5 MB, free: 8.953 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.64e-05/0.4749, allocations: 0 / 478.5 MB, free: 8.953 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.695e-05/0.475, allocations: 0 / 478.5 MB, free: 8.953 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.253e-05/0.475, allocations: 11.98 kB / 478.5 MB, free: 8.941 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.618e-06/0.475, allocations: 4 kB / 478.5 MB, free: 8.938 MB / 330.7 MB Notification: Performance of sorting global known variables: time 9.188e-05/0.4751, allocations: 95.66 kB / 478.6 MB, free: 8.844 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4752, allocations: 0 / 478.6 MB, free: 8.844 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002928/0.4755, allocations: 32 kB / 478.6 MB, free: 8.812 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (inertia2.flange_a.phi,inertia2.w,inertia1.w,idealSensor.flange.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * 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 Backend phase and start with SimCode phase: time 0.0001544/0.4756, allocations: 99.19 kB / 478.7 MB, free: 8.703 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002043/0.4758, allocations: 107.9 kB / 478.8 MB, free: 8.598 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.4758, allocations: 0 / 478.8 MB, free: 8.598 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.074e-05/0.4759, allocations: 45.34 kB / 478.9 MB, free: 8.555 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001597/0.4761, allocations: 4.312 kB / 478.9 MB, free: 8.551 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008781/0.477, allocations: 473.4 kB / 479.3 MB, free: 8.062 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003719/0.4773, allocations: 0.7201 MB / 480 MB, free: 7.316 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 4.851e-05/0.4774, allocations: 13.2 kB / 480.1 MB, free: 7.305 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.474e-05/0.4774, allocations: 15.44 kB / 480.1 MB, free: 7.289 MB / 330.7 MB Notification: Performance of SimCode: time 2.31e-07/0.4774, allocations: 0 / 480.1 MB, free: 7.289 MB / 330.7 MB Notification: Performance of Templates: time 0.003294/0.4807, allocations: 0.8822 MB / 481 MB, free: 6.406 MB / 330.7 MB make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.makefile (rm -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe >> ../files/ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.sim & ./ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe 2>&1)