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.007968/0.007968, allocations: 102 kB / 15.73 MB, free: 6.043 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.001328/0.001328, allocations: 196.2 kB / 16.67 MB, free: 5.965 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.733/1.733, allocations: 205.1 MB / 222.5 MB, free: 4.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04311/0.04311, allocations: 8.113 MB / 278 MB, free: 13.08 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.00155/0.001551, allocations: 71.89 kB / 386.7 MB, free: 9.047 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3561/0.3577, allocations: 48.3 MB / 435 MB, free: 7.797 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1): time 0.003861/0.3616, allocations: 2.42 MB / 437.4 MB, free: 6.102 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001311/0.3629, allocations: 0.6732 MB / 438.1 MB, free: 5.617 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001606/0.3631, allocations: 4.125 kB / 438.1 MB, free: 5.617 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001811/0.3633, allocations: 38.75 kB / 438.1 MB, free: 5.59 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000186/0.3635, allocations: 79.02 kB / 438.2 MB, free: 5.531 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003206/0.3638, allocations: 71.11 kB / 438.2 MB, free: 5.492 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003998/0.3642, allocations: 297.3 kB / 438.5 MB, free: 5.348 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002317/0.3645, allocations: 100.7 kB / 438.6 MB, free: 5.301 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001706/0.3647, allocations: 116.9 kB / 438.7 MB, free: 5.246 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001803/0.3648, allocations: 127.7 kB / 438.9 MB, free: 5.184 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.96e-05/0.3649, allocations: 26.78 kB / 438.9 MB, free: 5.18 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.191e-05/0.365, allocations: 24.47 kB / 438.9 MB, free: 5.18 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.356e-05/0.365, allocations: 48.14 kB / 439 MB, free: 5.148 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001556/0.3652, allocations: 131.8 kB / 439.1 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004126/0.3656, allocations: 283.4 kB / 439.4 MB, free: 4.957 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.3656, allocations: 0 / 439.4 MB, free: 4.957 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.3656, allocations: 1.094 kB / 439.4 MB, free: 4.957 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.585e-06/0.3656, allocations: 0 / 439.4 MB, free: 4.957 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.00109/0.3667, allocations: 0.578 MB / 440 MB, free: 4.461 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.423e-05/0.3668, allocations: 13.14 kB / 440 MB, free: 4.457 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.828e-05/0.3669, allocations: 35.02 kB / 440 MB, free: 4.438 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003468/0.3672, allocations: 247.3 kB / 440.2 MB, free: 4.199 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.55e-05/0.3673, allocations: 21.62 kB / 440.3 MB, free: 4.188 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.352e-05/0.3673, allocations: 28.89 kB / 440.3 MB, free: 4.176 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005845/0.3679, allocations: 228.3 kB / 440.5 MB, free: 4.074 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.769e-05/0.368, allocations: 1.344 kB / 440.5 MB, free: 4.074 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.034e-05/0.368, allocations: 11.66 kB / 440.5 MB, free: 4.066 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.226e-05/0.368, allocations: 9.438 kB / 440.5 MB, free: 4.062 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006572/0.3687, allocations: 194.6 kB / 440.7 MB, free: 4.02 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001278/0.37, allocations: 0.6624 MB / 441.4 MB, free: 3.566 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009765/0.371, allocations: 256.9 kB / 441.6 MB, free: 3.469 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00044/0.3714, allocations: 118.8 kB / 441.8 MB, free: 3.43 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.545e-05/0.3714, allocations: 6.5 kB / 441.8 MB, free: 3.426 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005847/0.372, allocations: 173.2 kB / 441.9 MB, free: 3.344 MB / 318.1 MB Notification: Performance of pre-optimization done (n=27): time 2.264e-06/0.372, allocations: 1.344 kB / 441.9 MB, free: 3.344 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.002844/0.3749, allocations: 1.186 MB / 443.1 MB, free: 2.621 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.658e-05/0.3749, allocations: 60 kB / 443.2 MB, free: 2.555 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001712/0.3751, allocations: 179.9 kB / 443.4 MB, free: 2.43 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.694e-05/0.3752, allocations: 32.7 kB / 443.4 MB, free: 2.395 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.69e-05/0.3753, allocations: 142.2 kB / 443.5 MB, free: 2.27 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.976e-05/0.3753, allocations: 105.6 kB / 443.6 MB, free: 2.188 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.801e-05/0.3754, allocations: 56.03 kB / 443.7 MB, free: 2.152 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.944e-05/0.3755, allocations: 334.4 kB / 444 MB, free: 1.828 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003008/0.3758, allocations: 100.6 kB / 444.1 MB, free: 1.797 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003268/0.3761, allocations: 132.2 kB / 444.2 MB, free: 1.742 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001411/0.3776, allocations: 0.5584 MB / 444.8 MB, free: 1.461 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.3776, allocations: 0 / 444.8 MB, free: 1.461 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007981/0.3784, allocations: 353.9 kB / 445.1 MB, free: 1.305 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.435e-05/0.3784, allocations: 38.23 kB / 445.2 MB, free: 1.27 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.3785, allocations: 4.062 kB / 445.2 MB, free: 1.266 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.317e-05/0.3785, allocations: 2.438 kB / 445.2 MB, free: 1.266 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003499/0.3788, allocations: 75.64 kB / 445.3 MB, free: 1.258 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.234e-05/0.3789, allocations: 2.703 kB / 445.3 MB, free: 1.258 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002359/0.3791, allocations: 23.86 kB / 445.3 MB, free: 1.254 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.707e-05/0.3791, allocations: 16.91 kB / 445.3 MB, free: 1.246 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.0002347/0.3794, allocations: 169 kB / 445.5 MB, free: 1.098 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.281e-05/0.3794, allocations: 22.3 kB / 445.5 MB, free: 1.086 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.564e-05/0.3795, allocations: 28.75 kB / 445.5 MB, free: 1.062 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.3795, allocations: 3.281 kB / 445.5 MB, free: 1.062 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.347e-05/0.3795, allocations: 4.703 kB / 445.5 MB, free: 1.059 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.217e-06/0.3796, allocations: 6.328 kB / 445.5 MB, free: 1.055 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001384/0.3809, allocations: 0.7869 MB / 446.3 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.948e-06/0.381, allocations: 5.375 kB / 446.3 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003458/0.3813, allocations: 64.19 kB / 446.4 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.722e-05/0.3813, allocations: 5.344 kB / 446.4 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.641e-05/0.3814, allocations: 11.33 kB / 446.4 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.549e-06/0.3814, allocations: 3.391 kB / 446.4 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.3814, allocations: 0 / 446.4 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001102/0.3825, allocations: 0.5291 MB / 446.9 MB, free: 244 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.926e-05/0.3826, allocations: 97.09 kB / 447 MB, free: 136 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.476e-05/0.3826, allocations: 7.125 kB / 447 MB, free: 132 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002325/0.3829, allocations: 26.22 kB / 447.1 MB, free: 124 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001075/0.383, allocations: 34.2 kB / 447.1 MB, free: 112 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.985e-05/0.383, allocations: 11.89 kB / 447.1 MB, free: 108 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001066/0.3831, allocations: 131.8 kB / 447.2 MB, free: 16 kB / 318.1 MB Notification: Performance of sort global known variables: time 3e-07/0.3831, allocations: 0 / 447.2 MB, free: 16 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003641/0.3835, allocations: 68.19 kB / 447.3 MB, free: 4 kB / 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.0001562/0.3836, allocations: 107.9 kB / 447.4 MB, free: 15.91 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008028/0.3845, allocations: 322.1 kB / 447.7 MB, free: 15.78 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.3845, allocations: 0 / 447.7 MB, free: 15.78 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003851/0.3849, allocations: 148.8 kB / 447.9 MB, free: 15.73 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004781/0.3854, allocations: 55.42 kB / 447.9 MB, free: 15.71 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002882/0.3882, allocations: 0.8927 MB / 448.8 MB, free: 15.19 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003671/0.3886, allocations: 0.748 MB / 449.6 MB, free: 14.49 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001346/0.3888, allocations: 28.92 kB / 449.6 MB, free: 14.48 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.214e-05/0.3888, allocations: 23.09 kB / 449.6 MB, free: 14.47 MB / 334.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3889, allocations: 0 / 449.6 MB, free: 14.47 MB / 334.1 MB Notification: Performance of Templates: time 0.006407/0.3953, allocations: 2.979 MB / 452.6 MB, free: 12.99 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)