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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001698/0.001698, allocations: 108.2 kB / 16.36 MB, free: 6.285 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.001756/0.001756, allocations: 193.2 kB / 17.29 MB, free: 5.863 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.749/1.749, 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.04209/0.04209, allocations: 8.109 MB / 278.6 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.002257/0.002257, allocations: 67.91 kB / 338.6 MB, free: 7.828 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3574/0.3597, allocations: 48.28 MB / 386.9 MB, free: 51.54 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant): time 0.003196/0.3629, allocations: 1.903 MB / 388.8 MB, free: 50.24 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002994/0.3632, allocations: 147.8 kB / 389 MB, free: 50.13 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.994e-05/0.3633, allocations: 2.312 kB / 389 MB, free: 50.13 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 6.791e-05/0.3634, allocations: 21.86 kB / 389 MB, free: 50.12 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.087e-05/0.3635, allocations: 43.23 kB / 389 MB, free: 50.09 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000165/0.3637, allocations: 40.22 kB / 389.1 MB, free: 50.07 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001931/0.3639, allocations: 170.3 kB / 389.2 MB, free: 49.98 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000214/0.3641, allocations: 89.88 kB / 389.3 MB, free: 49.95 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.881e-05/0.3642, allocations: 65.92 kB / 389.4 MB, free: 49.91 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001185/0.3643, allocations: 72.45 kB / 389.5 MB, free: 49.88 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.274e-05/0.3643, allocations: 17 kB / 389.5 MB, free: 49.88 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.365e-05/0.3644, allocations: 17.59 kB / 389.5 MB, free: 49.88 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.952e-05/0.3644, allocations: 38.7 kB / 389.5 MB, free: 49.85 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.44e-05/0.3645, allocations: 83.05 kB / 389.6 MB, free: 49.8 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002199/0.3647, allocations: 193.2 kB / 389.8 MB, free: 49.73 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.3647, allocations: 0 / 389.8 MB, free: 49.73 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3647, allocations: 0 / 389.8 MB, free: 49.73 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.772e-06/0.3648, allocations: 1.094 kB / 389.8 MB, free: 49.73 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.0005226/0.3653, allocations: 453.4 kB / 390.2 MB, free: 49.31 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.3653, allocations: 10.69 kB / 390.2 MB, free: 49.31 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.775e-05/0.3654, allocations: 18.8 kB / 390.3 MB, free: 49.3 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.721e-05/0.3655, allocations: 178 kB / 390.4 MB, free: 49.1 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.813e-05/0.3655, allocations: 11.62 kB / 390.5 MB, free: 49.09 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.696e-05/0.3656, allocations: 21.56 kB / 390.5 MB, free: 49.09 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002667/0.3658, allocations: 154.4 kB / 390.6 MB, free: 49.01 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.434e-05/0.3659, allocations: 7.203 kB / 390.6 MB, free: 49 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.627e-05/0.3659, allocations: 9.281 kB / 390.6 MB, free: 49 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.636e-06/0.3659, allocations: 7.75 kB / 390.6 MB, free: 49 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001801/0.3661, allocations: 104.2 kB / 390.8 MB, free: 48.96 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000885/0.367, allocations: 0.6836 MB / 391.4 MB, free: 48.43 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003671/0.3674, allocations: 230.3 kB / 391.7 MB, free: 48.27 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000184/0.3675, allocations: 87.91 kB / 391.7 MB, free: 48.24 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.318e-05/0.3676, allocations: 1.938 kB / 391.7 MB, free: 48.24 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.443e-05/0.3676, allocations: 37.97 kB / 391.8 MB, free: 48.2 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.182e-06/0.3676, allocations: 0 / 391.8 MB, free: 48.2 MB / 318.1 MB Notification: Performance of matching and sorting (n=16): time 0.0007052/0.3683, allocations: 480.7 kB / 392.3 MB, free: 47.83 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.628e-05/0.3683, allocations: 53.86 kB / 392.3 MB, free: 47.77 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.571e-05/0.3684, allocations: 122.6 kB / 392.4 MB, free: 47.66 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.161e-05/0.3684, allocations: 30.64 kB / 392.5 MB, free: 47.62 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.139e-05/0.3685, allocations: 133.1 kB / 392.6 MB, free: 47.51 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.648e-05/0.3685, allocations: 67.59 kB / 392.7 MB, free: 47.45 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.21e-05/0.3686, allocations: 41.88 kB / 392.7 MB, free: 47.42 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.46e-05/0.3687, allocations: 321.6 kB / 393 MB, free: 47.11 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.977e-05/0.3687, allocations: 42.08 kB / 393 MB, free: 47.09 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.499e-05/0.3688, allocations: 92.75 kB / 393.1 MB, free: 47.02 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001586/0.369, allocations: 139.5 kB / 393.3 MB, free: 46.93 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.369, allocations: 3.5 kB / 393.3 MB, free: 46.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002305/0.3692, allocations: 178.4 kB / 393.5 MB, free: 46.84 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.3693, allocations: 5.375 kB / 393.5 MB, free: 46.84 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.3693, allocations: 1.922 kB / 393.5 MB, free: 46.84 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.624e-05/0.3693, allocations: 5.969 kB / 393.5 MB, free: 46.84 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001744/0.3695, allocations: 51.23 kB / 393.5 MB, free: 46.83 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.816e-06/0.3695, allocations: 3.031 kB / 393.5 MB, free: 46.83 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.612e-05/0.3696, allocations: 10 kB / 393.5 MB, free: 46.82 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.249e-05/0.3696, allocations: 5.812 kB / 393.5 MB, free: 46.82 MB / 318.1 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.006e-05/0.3696, allocations: 137.9 kB / 393.7 MB, free: 46.69 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.926e-05/0.3697, allocations: 8.062 kB / 393.7 MB, free: 46.69 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.027e-05/0.3697, allocations: 16.08 kB / 393.7 MB, free: 46.68 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.3697, allocations: 1.25 kB / 393.7 MB, free: 46.68 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.718e-06/0.3697, allocations: 1.344 kB / 393.7 MB, free: 46.68 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.3698, allocations: 5.344 kB / 393.7 MB, free: 46.68 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000522/0.3703, allocations: 494.9 kB / 394.2 MB, free: 46.29 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.3703, allocations: 0 / 394.2 MB, free: 46.29 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001841/0.3705, allocations: 43.34 kB / 394.2 MB, free: 46.28 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.3705, allocations: 5.125 kB / 394.2 MB, free: 46.28 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.289e-05/0.3705, allocations: 5.781 kB / 394.2 MB, free: 46.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.3705, allocations: 1.031 kB / 394.2 MB, free: 46.27 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.3705, allocations: 1.469 kB / 394.2 MB, free: 46.27 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002812/0.3708, allocations: 268.2 kB / 394.5 MB, free: 46.09 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.581e-05/0.3708, allocations: 87.66 kB / 394.6 MB, free: 45.99 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.977e-05/0.3709, allocations: 2.375 kB / 394.6 MB, free: 45.99 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.921e-05/0.3709, allocations: 4.656 kB / 394.6 MB, free: 45.98 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.909e-05/0.371, allocations: 12.61 kB / 394.6 MB, free: 45.98 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.274e-06/0.371, allocations: 3.266 kB / 394.6 MB, free: 45.98 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.719e-05/0.371, allocations: 95.03 kB / 394.7 MB, free: 45.9 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.371, allocations: 0 / 394.7 MB, free: 45.9 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002628/0.3713, allocations: 34.75 kB / 394.7 MB, free: 45.89 MB / 318.1 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.flange_a.phi,inertia1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.396e-05/0.3714, allocations: 107.6 kB / 394.8 MB, free: 45.79 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002088/0.3716, allocations: 113.9 kB / 395 MB, free: 45.76 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.3716, allocations: 4.062 kB / 395 MB, free: 45.75 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 7.083e-05/0.3717, allocations: 56.78 kB / 395 MB, free: 45.74 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002238/0.3719, allocations: 9.844 kB / 395 MB, free: 45.73 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007792/0.3727, allocations: 0.525 MB / 395.5 MB, free: 45.35 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000176/0.3729, allocations: 0.7267 MB / 396.3 MB, free: 44.64 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.378e-05/0.373, allocations: 12.52 kB / 396.3 MB, free: 44.64 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.592e-05/0.373, allocations: 13.97 kB / 396.3 MB, free: 44.64 MB / 318.1 MB Notification: Performance of SimCode: time 2.31e-07/0.373, allocations: 0 / 396.3 MB, free: 44.64 MB / 318.1 MB Notification: Performance of Templates: time 0.003535/0.3765, allocations: 0.9811 MB / 397.3 MB, free: 44.55 MB / 318.1 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 -s cvode -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe 2>&1)