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/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.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/Complex 3.2.2+maint.om/package.mo): time 0.00165/0.00165, allocations: 179 kB / 16.12 MB, free: 5.691 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.457/1.457, allocations: 194.5 MB / 211.3 MB, free: 2.957 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03611/0.03611, allocations: 8.11 MB / 264.6 MB, free: 12.59 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001565/0.001565, allocations: 119.9 kB / 311.6 MB, free: 13.49 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004043/0.0004045, allocations: 11.98 kB / 368.5 MB, free: 4.508 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2612/0.2617, allocations: 46.2 MB / 414.7 MB, free: 65.91 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08412/0.3458, allocations: 74.73 MB / 489.4 MB, free: 7.074 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001508/0.346, allocations: 51.97 kB / 489.5 MB, free: 7.023 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01141/0.3575, allocations: 4.098 MB / 493.6 MB, free: 2.918 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.475e-06/0.3575, allocations: 0 / 493.6 MB, free: 2.918 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.645e-05/0.3575, allocations: 8 kB / 493.6 MB, free: 2.91 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0009561/0.3585, allocations: 0.5479 MB / 494.1 MB, free: 2.312 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.3585, allocations: 8.031 kB / 494.1 MB, free: 2.305 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.218e-05/0.3586, allocations: 36.5 kB / 494.2 MB, free: 2.27 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003299/0.359, allocations: 237.4 kB / 494.4 MB, free: 2 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.184e-05/0.359, allocations: 20.8 kB / 494.4 MB, free: 1.98 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.543e-05/0.3591, allocations: 28.28 kB / 494.4 MB, free: 1.953 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005464/0.3596, allocations: 239.5 kB / 494.7 MB, free: 1.711 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.746e-05/0.3597, allocations: 0 / 494.7 MB, free: 1.711 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.698e-05/0.3597, allocations: 8 kB / 494.7 MB, free: 1.703 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.233e-06/0.3597, allocations: 4 kB / 494.7 MB, free: 1.699 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000574/0.3603, allocations: 225.5 kB / 494.9 MB, free: 1.477 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001251/0.3615, allocations: 0.7167 MB / 495.6 MB, free: 0.707 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007139/0.3623, allocations: 274.4 kB / 495.9 MB, free: 440 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003084/0.3626, allocations: 132.8 kB / 496 MB, free: 304 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.915e-05/0.3626, allocations: 4 kB / 496 MB, free: 300 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000473/0.3631, allocations: 189.1 kB / 496.2 MB, free: 100 kB / 330.7 MB Notification: Performance of pre-optimization done (n=27): time 2.324e-06/0.3631, allocations: 0 / 496.2 MB, free: 100 kB / 330.7 MB Notification: Performance of matching and sorting (n=32): time 0.002658/0.3658, allocations: 1.259 MB / 497.5 MB, free: 14.75 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.561e-05/0.3659, allocations: 55.41 kB / 497.5 MB, free: 14.68 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001845/0.366, allocations: 179.1 kB / 497.7 MB, free: 14.5 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.149e-05/0.3661, allocations: 37.7 kB / 497.7 MB, free: 14.45 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.244e-05/0.3662, allocations: 140.6 kB / 497.9 MB, free: 14.31 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.469e-05/0.3663, allocations: 106.5 kB / 498 MB, free: 14.21 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.229e-05/0.3663, allocations: 4 kB / 498 MB, free: 14.2 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001297/0.3664, allocations: 334.8 kB / 498.3 MB, free: 13.87 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003059/0.3668, allocations: 112.2 kB / 498.4 MB, free: 13.75 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003127/0.3671, allocations: 147.4 kB / 498.6 MB, free: 13.6 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001382/0.3685, allocations: 0.5981 MB / 499.2 MB, free: 12.98 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.3685, allocations: 0 / 499.2 MB, free: 12.98 MB / 346.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007688/0.3693, allocations: 386.4 kB / 499.5 MB, free: 12.59 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.985e-05/0.3693, allocations: 37.64 kB / 499.6 MB, free: 12.54 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.685e-06/0.3693, allocations: 4 kB / 499.6 MB, free: 12.54 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.75e-05/0.3693, allocations: 4 kB / 499.6 MB, free: 12.54 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003064/0.3697, allocations: 83.92 kB / 499.7 MB, free: 12.45 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.026e-05/0.3697, allocations: 0 / 499.7 MB, free: 12.45 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000231/0.3699, allocations: 31.97 kB / 499.7 MB, free: 12.42 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.538e-05/0.37, allocations: 12 kB / 499.7 MB, free: 12.41 MB / 346.7 MB Warning: Assuming fixed start value for the following 4 variables: damper.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 springDamper.w_rel:VARIABLE(start = 0.0 unit = "rad/s" fixed = true stateSelect=StateSelect.prefer ) "Relative angular velocity (= der(phi_rel))" type: Real 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 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.speedSensor.w,$PRE.trapezoid.T_start,$PRE.trapezoid.count,$whenCondition1,speedSensor.w,trapezoid.T_start,trapezoid.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002347/0.3702, allocations: 175 kB / 499.9 MB, free: 12.23 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.437e-05/0.3702, allocations: 19.75 kB / 499.9 MB, free: 12.21 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.042e-05/0.3703, allocations: 30.64 kB / 499.9 MB, free: 12.18 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.3703, allocations: 7.938 kB / 499.9 MB, free: 12.18 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.3703, allocations: 4 kB / 499.9 MB, free: 12.17 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.3704, allocations: 0 / 499.9 MB, free: 12.17 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001314/0.3717, allocations: 0.8112 MB / 0.489 GB, free: 11.29 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.3717, allocations: 4.062 kB / 0.489 GB, free: 11.29 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003269/0.372, allocations: 79.89 kB / 0.4891 GB, free: 11.21 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.97e-06/0.372, allocations: 0 / 0.4891 GB, free: 11.21 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.367e-05/0.3721, allocations: 15.92 kB / 0.4891 GB, free: 11.2 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.444e-06/0.3721, allocations: 0 / 0.4891 GB, free: 11.2 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.3721, allocations: 4 kB / 0.4891 GB, free: 11.19 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001045/0.3731, allocations: 0.5634 MB / 0.4897 GB, free: 10.61 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.875e-05/0.3732, allocations: 92.92 kB / 0.4898 GB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.735e-05/0.3733, allocations: 12 kB / 0.4898 GB, free: 10.48 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002155/0.3735, allocations: 28.02 kB / 0.4898 GB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.124e-05/0.3736, allocations: 31.89 kB / 0.4898 GB, free: 10.43 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.977e-05/0.3736, allocations: 12 kB / 0.4898 GB, free: 10.41 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001175/0.3737, allocations: 136.3 kB / 0.49 GB, free: 10.28 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3737, allocations: 0 / 0.49 GB, free: 10.28 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003146/0.3741, allocations: 72 kB / 0.49 GB, free: 10.21 MB / 346.7 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 (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.0001424/0.3742, allocations: 111.3 kB / 0.4901 GB, free: 10.09 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007284/0.3749, allocations: 351.2 kB / 0.4905 GB, free: 9.738 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.375, allocations: 0 / 0.4905 GB, free: 9.738 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003482/0.3753, allocations: 160 kB / 0.4906 GB, free: 9.582 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004302/0.3758, allocations: 49.09 kB / 0.4907 GB, free: 9.535 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002541/0.3783, allocations: 1.032 MB / 0.4917 GB, free: 8.473 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003419/0.3787, allocations: 0.7522 MB / 0.4924 GB, free: 7.688 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001179/0.3788, allocations: 30.27 kB / 0.4924 GB, free: 7.66 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.16e-05/0.3789, allocations: 23.44 kB / 0.4925 GB, free: 7.637 MB / 346.7 MB Notification: Performance of SimCode: time 6.01e-07/0.3789, allocations: 0 / 0.4925 GB, free: 7.637 MB / 346.7 MB Notification: Performance of Templates: time 0.006044/0.3849, allocations: 2.604 MB / 0.495 GB, free: 5.086 MB / 346.7 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)