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.006889/0.006889, allocations: 98.52 kB / 15.73 MB, free: 6.055 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.001615/0.001615, allocations: 195.7 kB / 16.68 MB, free: 5.969 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.548/1.548, allocations: 205.1 MB / 222.5 MB, free: 4.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04277/0.04277, allocations: 8.105 MB / 278 MB, free: 13.06 MB / 238.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.001831/0.00183, allocations: 67.91 kB / 386.7 MB, free: 9.043 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3599/0.3618, allocations: 48.29 MB / 435 MB, free: 7.82 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.004663/0.3665, allocations: 2.417 MB / 437.4 MB, free: 6.129 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001792/0.3683, allocations: 0.6873 MB / 438.1 MB, free: 5.629 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004233/0.3688, allocations: 8.062 kB / 438.1 MB, free: 5.625 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003095/0.3691, allocations: 31.23 kB / 438.1 MB, free: 5.605 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004589/0.3696, allocations: 71.06 kB / 438.2 MB, free: 5.555 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004986/0.3701, allocations: 70.38 kB / 438.2 MB, free: 5.516 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007414/0.3709, allocations: 305.3 kB / 438.5 MB, free: 5.363 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003274/0.3712, allocations: 96.94 kB / 438.6 MB, free: 5.32 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003394/0.3716, allocations: 115 kB / 438.7 MB, free: 5.266 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003568/0.3719, allocations: 127.6 kB / 438.9 MB, free: 5.203 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001147/0.3721, allocations: 23.88 kB / 438.9 MB, free: 5.203 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001032/0.3722, allocations: 24 kB / 438.9 MB, free: 5.203 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.435e-05/0.3723, allocations: 51.97 kB / 439 MB, free: 5.168 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002492/0.3725, allocations: 127 kB / 439.1 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005789/0.3731, allocations: 290.1 kB / 439.4 MB, free: 4.973 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.3731, allocations: 1.125 kB / 439.4 MB, free: 4.973 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3731, allocations: 0 / 439.4 MB, free: 4.973 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.657e-05/0.3732, allocations: 0 / 439.4 MB, free: 4.973 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.001265/0.3744, allocations: 0.5826 MB / 440 MB, free: 4.473 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.3745, allocations: 16.8 kB / 440 MB, free: 4.465 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001092/0.3746, allocations: 34.72 kB / 440 MB, free: 4.445 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003952/0.375, allocations: 247.6 kB / 440.3 MB, free: 4.207 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.274e-05/0.375, allocations: 16.91 kB / 440.3 MB, free: 4.199 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.681e-05/0.3751, allocations: 25.17 kB / 440.3 MB, free: 4.191 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005671/0.3757, allocations: 230.4 kB / 440.5 MB, free: 4.09 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.67e-05/0.3757, allocations: 4.953 kB / 440.5 MB, free: 4.086 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.986e-05/0.3757, allocations: 6.281 kB / 440.5 MB, free: 4.082 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.206e-05/0.3758, allocations: 8.75 kB / 440.5 MB, free: 4.078 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006517/0.3764, allocations: 201.1 kB / 440.7 MB, free: 4.031 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001367/0.3778, allocations: 0.6654 MB / 441.4 MB, free: 3.574 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000813/0.3786, allocations: 260.6 kB / 441.7 MB, free: 3.473 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003679/0.379, allocations: 118.9 kB / 441.8 MB, free: 3.434 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.215e-05/0.379, allocations: 7 kB / 441.8 MB, free: 3.43 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004942/0.3795, allocations: 168.3 kB / 441.9 MB, free: 3.352 MB / 318.1 MB Notification: Performance of pre-optimization done (n=27): time 2.134e-06/0.3796, allocations: 0.5938 kB / 441.9 MB, free: 3.352 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.00276/0.3823, allocations: 1.195 MB / 443.1 MB, free: 2.621 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.18e-05/0.3824, allocations: 56.33 kB / 443.2 MB, free: 2.559 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001805/0.3826, allocations: 184.7 kB / 443.4 MB, free: 2.43 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.246e-05/0.3826, allocations: 35.08 kB / 443.4 MB, free: 2.391 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.361e-05/0.3827, allocations: 143.4 kB / 443.5 MB, free: 2.266 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.337e-05/0.3828, allocations: 109.2 kB / 443.7 MB, free: 2.18 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001046/0.3829, allocations: 55.12 kB / 443.7 MB, free: 2.145 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.78e-05/0.383, allocations: 339.8 kB / 444 MB, free: 1.816 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003196/0.3833, allocations: 97.36 kB / 444.1 MB, free: 1.789 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003432/0.3836, allocations: 132.3 kB / 444.3 MB, free: 1.734 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00145/0.3851, allocations: 0.5496 MB / 444.8 MB, free: 1.461 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.3851, allocations: 0.9062 kB / 444.8 MB, free: 1.461 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007751/0.3859, allocations: 361.6 kB / 445.2 MB, free: 1.297 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.652e-05/0.3859, allocations: 36.48 kB / 445.2 MB, free: 1.262 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.386, allocations: 5.469 kB / 445.2 MB, free: 1.258 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.144e-05/0.386, allocations: 3.484 kB / 445.2 MB, free: 1.258 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000312/0.3863, allocations: 70.95 kB / 445.3 MB, free: 1.254 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.1e-05/0.3863, allocations: 7.172 kB / 445.3 MB, free: 1.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002437/0.3866, allocations: 27.31 kB / 445.3 MB, free: 1.242 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.437e-05/0.3866, allocations: 7.688 kB / 445.3 MB, free: 1.242 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.0002087/0.3868, allocations: 166.6 kB / 445.5 MB, free: 1.094 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.022e-05/0.3869, allocations: 26.8 kB / 445.5 MB, free: 1.078 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.592e-05/0.3869, allocations: 28.59 kB / 445.5 MB, free: 1.055 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.114e-06/0.387, allocations: 8.719 kB / 445.5 MB, free: 1.051 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.11e-05/0.387, allocations: 8 kB / 445.6 MB, free: 1.043 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.387, allocations: 1.734 kB / 445.6 MB, free: 1.043 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001324/0.3883, allocations: 0.7828 MB / 446.3 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.648e-06/0.3883, allocations: 9.953 kB / 446.3 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003168/0.3887, allocations: 71.84 kB / 446.4 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.021e-06/0.3887, allocations: 1.625 kB / 446.4 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.587e-05/0.3887, allocations: 8.219 kB / 446.4 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.709e-06/0.3887, allocations: 2.234 kB / 446.4 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.185e-06/0.3887, allocations: 1.469 kB / 446.4 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001055/0.3898, allocations: 0.5283 MB / 447 MB, free: 232 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.689e-05/0.3899, allocations: 96.02 kB / 447.1 MB, free: 124 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.083e-05/0.3899, allocations: 7.672 kB / 447.1 MB, free: 120 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002225/0.3901, allocations: 26.72 kB / 447.1 MB, free: 112 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.858e-05/0.3902, allocations: 34.23 kB / 447.1 MB, free: 100 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.82e-05/0.3903, allocations: 6.969 kB / 447.1 MB, free: 100 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001052/0.3904, allocations: 135.9 kB / 447.3 MB, free: 4 kB / 318.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3904, allocations: 0 / 447.3 MB, free: 4 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003579/0.3907, allocations: 63.31 kB / 447.3 MB, free: 15.99 MB / 334.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.000127/0.3909, allocations: 112.7 kB / 447.4 MB, free: 15.89 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007926/0.3917, allocations: 327.4 kB / 447.8 MB, free: 15.76 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.3917, allocations: 0 / 447.8 MB, free: 15.76 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004063/0.3921, allocations: 143.7 kB / 447.9 MB, free: 15.72 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004433/0.3926, allocations: 51.62 kB / 447.9 MB, free: 15.7 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002687/0.3953, allocations: 0.8913 MB / 448.8 MB, free: 15.18 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003936/0.3957, allocations: 0.7482 MB / 449.6 MB, free: 14.48 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001388/0.3958, allocations: 34.94 kB / 449.6 MB, free: 14.46 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.566e-05/0.3959, allocations: 26.12 kB / 449.6 MB, free: 14.45 MB / 334.1 MB Notification: Performance of SimCode: time 1.894e-06/0.3959, allocations: 1.281 kB / 449.6 MB, free: 14.45 MB / 334.1 MB Notification: Performance of Templates: time 0.007628/0.4035, allocations: 2.971 MB / 452.6 MB, free: 12.98 MB / 334.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)