Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.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.Architectures.SensorComparison.Examples.FlatSystem_Variation1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1") translateModel(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001531/0.001531, allocations: 104.1 kB / 16.27 MB, free: 5.98 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.001618/0.001619, allocations: 189.8 kB / 17.19 MB, free: 5.605 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.572/1.572, allocations: 205.1 MB / 223.1 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04281/0.04281, allocations: 8.105 MB / 278.5 MB, free: 4.023 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.00231/0.00231, allocations: 63.91 kB / 337.9 MB, free: 8.57 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.335/0.3374, allocations: 48.27 MB / 386.1 MB, free: 51.21 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.005282/0.3427, allocations: 2.409 MB / 388.5 MB, free: 49.55 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001593/0.3443, allocations: 0.6849 MB / 389.2 MB, free: 49.07 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003566/0.3447, allocations: 5.062 kB / 389.2 MB, free: 49.07 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002292/0.345, allocations: 34.33 kB / 389.3 MB, free: 49.04 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003507/0.3454, allocations: 76.16 kB / 389.3 MB, free: 48.99 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004334/0.3458, allocations: 79.22 kB / 389.4 MB, free: 48.94 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005611/0.3464, allocations: 294.5 kB / 389.7 MB, free: 48.8 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002565/0.3467, allocations: 99.7 kB / 389.8 MB, free: 48.76 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002788/0.347, allocations: 116 kB / 389.9 MB, free: 48.71 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002666/0.3473, allocations: 124.3 kB / 390 MB, free: 48.65 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.922e-05/0.3473, allocations: 23.69 kB / 390.1 MB, free: 48.65 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.597e-05/0.3474, allocations: 28.5 kB / 390.1 MB, free: 48.64 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.274e-05/0.3475, allocations: 49.14 kB / 390.1 MB, free: 48.61 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002184/0.3477, allocations: 134.6 kB / 390.3 MB, free: 48.53 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004057/0.3482, allocations: 274.2 kB / 390.5 MB, free: 48.42 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.3482, allocations: 0 / 390.5 MB, free: 48.42 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3482, allocations: 0 / 390.5 MB, free: 48.42 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.44e-05/0.3482, allocations: 1.688 kB / 390.5 MB, free: 48.42 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001203/0.3494, allocations: 0.5766 MB / 391.1 MB, free: 47.93 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.484e-05/0.3495, allocations: 13.39 kB / 391.1 MB, free: 47.93 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000107/0.3496, allocations: 26.75 kB / 391.2 MB, free: 47.91 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003349/0.3499, allocations: 257.3 kB / 391.4 MB, free: 47.66 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.783e-05/0.35, allocations: 19.28 kB / 391.4 MB, free: 47.66 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.206e-05/0.35, allocations: 26.11 kB / 391.4 MB, free: 47.65 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005911/0.3506, allocations: 229 kB / 391.7 MB, free: 47.55 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.256e-05/0.3507, allocations: 1 kB / 391.7 MB, free: 47.55 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.799e-05/0.3507, allocations: 7.719 kB / 391.7 MB, free: 47.55 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.415e-05/0.3507, allocations: 5.156 kB / 391.7 MB, free: 47.55 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006229/0.3513, allocations: 196.5 kB / 391.9 MB, free: 47.5 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001124/0.3525, allocations: 0.6718 MB / 392.6 MB, free: 47.06 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007703/0.3533, allocations: 251.1 kB / 392.8 MB, free: 46.97 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003293/0.3536, allocations: 124.7 kB / 392.9 MB, free: 46.93 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.087e-05/0.3536, allocations: 2.125 kB / 392.9 MB, free: 46.93 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004774/0.3541, allocations: 177.9 kB / 393.1 MB, free: 46.85 MB / 318.1 MB Notification: Performance of pre-optimization done (n=27): time 2.474e-06/0.3541, allocations: 0 / 393.1 MB, free: 46.85 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.002659/0.3568, allocations: 1.184 MB / 394.3 MB, free: 46.13 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.215e-05/0.3568, allocations: 57.94 kB / 394.3 MB, free: 46.07 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001544/0.357, allocations: 186.6 kB / 394.5 MB, free: 45.93 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.442e-05/0.357, allocations: 36.45 kB / 394.6 MB, free: 45.89 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.578e-05/0.3571, allocations: 142.6 kB / 394.7 MB, free: 45.77 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.828e-05/0.3572, allocations: 109.5 kB / 394.8 MB, free: 45.68 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.187e-05/0.3573, allocations: 55.5 kB / 394.9 MB, free: 45.65 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.283e-05/0.3574, allocations: 335.8 kB / 395.2 MB, free: 45.32 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003031/0.3577, allocations: 95.23 kB / 395.3 MB, free: 45.3 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003348/0.358, allocations: 133.1 kB / 395.4 MB, free: 45.25 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00141/0.3594, allocations: 0.5552 MB / 396 MB, free: 44.97 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.3595, allocations: 2 kB / 396 MB, free: 44.97 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007837/0.3602, allocations: 362.2 kB / 396.3 MB, free: 44.81 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.786e-05/0.3603, allocations: 38.05 kB / 396.4 MB, free: 44.77 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.333e-06/0.3603, allocations: 3.984 kB / 396.4 MB, free: 44.77 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.078e-05/0.3603, allocations: 2.875 kB / 396.4 MB, free: 44.77 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003186/0.3607, allocations: 72.12 kB / 396.4 MB, free: 44.77 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.124e-05/0.3607, allocations: 6.75 kB / 396.4 MB, free: 44.76 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002489/0.3609, allocations: 27.75 kB / 396.5 MB, free: 44.75 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.744e-05/0.361, allocations: 8.25 kB / 396.5 MB, free: 44.75 MB / 318.1 MB Warning: Assuming fixed start value for the following 4 variables: springDamper.phi_rel:VARIABLE(start = 0.0 unit = "rad" fixed = true nominal = if springDamper.phi_nominal >= 1e-15 then springDamper.phi_nominal else 1.0 stateSelect=StateSelect.prefer ) "Relative rotation angle (= flange_b.phi - flange_a.phi)" type: Real springDamper.w_rel:VARIABLE(start = 0.0 unit = "rad/s" fixed = true stateSelect=StateSelect.prefer ) "Relative angular velocity (= der(phi_rel))" type: Real damper.phi_rel:VARIABLE(start = 0.0 unit = "rad" fixed = true nominal = if damper.phi_nominal >= 1e-15 then damper.phi_nominal else 1.0 stateSelect=StateSelect.prefer ) "Relative rotation angle (= flange_b.phi - flange_a.phi)" type: Real damper.w_rel:VARIABLE(start = 0.0 unit = "rad/s" fixed = true stateSelect=StateSelect.prefer ) "Relative angular velocity (= der(phi_rel))" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$PRE.trapezoid.count,$PRE.trapezoid.T_start,$PRE.speedSensor.w,trapezoid.count,trapezoid.T_start,speedSensor.w,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 1 * 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.0002161/0.3612, allocations: 173.4 kB / 396.6 MB, free: 44.61 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.063e-05/0.3612, allocations: 27.45 kB / 396.7 MB, free: 44.59 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.13e-05/0.3613, allocations: 28.84 kB / 396.7 MB, free: 44.57 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.3613, allocations: 2.75 kB / 396.7 MB, free: 44.57 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.837e-06/0.3613, allocations: 1.375 kB / 396.7 MB, free: 44.57 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.3613, allocations: 1.922 kB / 396.7 MB, free: 44.57 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00127/0.3626, allocations: 0.7842 MB / 397.5 MB, free: 44.05 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.499e-06/0.3626, allocations: 2.016 kB / 397.5 MB, free: 44.05 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003345/0.363, allocations: 76.03 kB / 397.6 MB, free: 44.04 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.514e-06/0.363, allocations: 8.031 kB / 397.6 MB, free: 44.03 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.815e-05/0.363, allocations: 10.2 kB / 397.6 MB, free: 44.03 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.108e-06/0.363, allocations: 1.219 kB / 397.6 MB, free: 44.03 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.363, allocations: 1.25 kB / 397.6 MB, free: 44.03 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001059/0.3641, allocations: 0.5354 MB / 398.1 MB, free: 43.74 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.675e-05/0.3642, allocations: 97.11 kB / 398.2 MB, free: 43.64 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.101e-05/0.3642, allocations: 7.484 kB / 398.2 MB, free: 43.63 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002327/0.3645, allocations: 25.47 kB / 398.2 MB, free: 43.62 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.935e-05/0.3646, allocations: 37.7 kB / 398.3 MB, free: 43.61 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.835e-05/0.3646, allocations: 8.109 kB / 398.3 MB, free: 43.61 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.758e-05/0.3647, allocations: 134.8 kB / 398.4 MB, free: 43.52 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3647, allocations: 0 / 398.4 MB, free: 43.52 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003385/0.365, allocations: 63.25 kB / 398.5 MB, free: 43.51 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (springDamper.phi_rel,springDamper.w_rel,damper.phi_rel,damper.w_rel) * Number of discrete variables: 5 ($whenCondition2,$whenCondition1,speedSensor.w,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001056/0.3652, allocations: 123.7 kB / 398.6 MB, free: 43.4 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000833/0.366, allocations: 342 kB / 398.9 MB, free: 43.25 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.366, allocations: 0 / 398.9 MB, free: 43.25 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003453/0.3664, allocations: 138.1 kB / 399.1 MB, free: 43.22 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004642/0.3668, allocations: 50.02 kB / 399.1 MB, free: 43.2 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002594/0.3694, allocations: 0.9112 MB / 400 MB, free: 42.68 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001911/0.3696, allocations: 0.7505 MB / 400.8 MB, free: 41.98 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.486e-05/0.3697, allocations: 27.81 kB / 400.8 MB, free: 41.96 MB / 318.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3697, allocations: 1.094 kB / 400.8 MB, free: 41.96 MB / 318.1 MB Notification: Performance of Templates: time 0.005857/0.3756, allocations: 3.16 MB / 404 MB, free: 40.59 MB / 318.1 MB make -j1 -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.makefile (rm -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe >> ../files/ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.sim & ./ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe 2>&1)