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.001845/0.001845, allocations: 182.6 kB / 7.652 MB, free: 1.402 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.803/1.803, allocations: 194.3 MB / 202.4 MB, free: 8.547 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03986/0.03986, allocations: 7.916 MB / 255.2 MB, free: 1.605 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001606/0.001607, allocations: 116.3 kB / 301.9 MB, free: 3.207 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.842e-05/1.843e-05, allocations: 0 / 354.3 MB, free: 14.68 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2939/0.294, allocations: 46.18 MB / 400.5 MB, free: 69.91 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09966/0.3937, allocations: 73.93 MB / 474.4 MB, free: 13.38 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001649/0.3939, allocations: 51.98 kB / 474.5 MB, free: 13.32 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01181/0.4057, allocations: 4.048 MB / 478.5 MB, free: 9.273 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.4058, allocations: 0 / 478.5 MB, free: 9.273 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.721e-05/0.4058, allocations: 4 kB / 478.5 MB, free: 9.27 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.0008669/0.4067, allocations: 0.5245 MB / 479 MB, free: 8.695 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.4067, allocations: 8.031 kB / 479.1 MB, free: 8.688 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.376e-05/0.4068, allocations: 35.56 kB / 479.1 MB, free: 8.652 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002739/0.4071, allocations: 236.1 kB / 479.3 MB, free: 8.383 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.75e-05/0.4071, allocations: 8 kB / 479.3 MB, free: 8.375 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.64e-05/0.4072, allocations: 16 kB / 479.3 MB, free: 8.359 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002402/0.4074, allocations: 124.8 kB / 479.5 MB, free: 8.238 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002677/0.4077, allocations: 154.4 kB / 479.6 MB, free: 8.082 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.503e-05/0.4077, allocations: 8 kB / 479.6 MB, free: 8.074 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.967e-05/0.4077, allocations: 4 kB / 479.6 MB, free: 8.07 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.4078, allocations: 4 kB / 479.6 MB, free: 8.066 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001153/0.4089, allocations: 0.6618 MB / 480.3 MB, free: 7.363 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003288/0.4093, allocations: 182.6 kB / 480.5 MB, free: 7.176 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001204/0.4094, allocations: 79.36 kB / 480.5 MB, free: 7.098 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.882e-05/0.4094, allocations: 4 kB / 480.5 MB, free: 7.094 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002329/0.4097, allocations: 132.9 kB / 480.7 MB, free: 6.953 MB / 330.7 MB Notification: Performance of pre-optimization done (n=27): time 2.014e-06/0.4097, allocations: 3.938 kB / 480.7 MB, free: 6.949 MB / 330.7 MB Notification: Performance of matching and sorting (n=32): time 0.00147/0.4111, allocations: 0.8951 MB / 481.6 MB, free: 5.961 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.632e-05/0.4112, allocations: 55.41 kB / 481.6 MB, free: 5.895 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001371/0.4113, allocations: 137.5 kB / 481.8 MB, free: 5.754 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.454e-05/0.4114, allocations: 33.64 kB / 481.8 MB, free: 5.715 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.698e-05/0.4115, allocations: 140.4 kB / 481.9 MB, free: 5.574 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.707e-05/0.4116, allocations: 106.5 kB / 482 MB, free: 5.469 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.141e-05/0.4116, allocations: 0 / 482 MB, free: 5.469 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.4118, allocations: 334.8 kB / 482.4 MB, free: 5.133 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001205/0.4119, allocations: 60.33 kB / 482.4 MB, free: 5.07 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001407/0.412, allocations: 99.44 kB / 482.5 MB, free: 4.965 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001488/0.4122, allocations: 73.09 kB / 482.6 MB, free: 4.895 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.4122, allocations: 4 kB / 482.6 MB, free: 4.891 MB / 330.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004104/0.4126, allocations: 244.5 kB / 482.8 MB, free: 4.645 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.987e-05/0.4127, allocations: 40.98 kB / 482.9 MB, free: 4.602 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.4127, allocations: 3.953 kB / 482.9 MB, free: 4.598 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.4127, allocations: 4 kB / 482.9 MB, free: 4.594 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003224/0.413, allocations: 79.88 kB / 483 MB, free: 4.516 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.418e-06/0.4131, allocations: 4 kB / 483 MB, free: 4.512 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002226/0.4133, allocations: 28.05 kB / 483 MB, free: 4.484 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.964e-05/0.4133, allocations: 15.98 kB / 483 MB, free: 4.469 MB / 330.7 MB Warning: Assuming fixed start value for the following 4 variables: speedSensor.w:DISCRETE(fixed = false ) "Sensed speed" type: Real damper.phi_rel:VARIABLE(start = 0.0 unit = "rad" 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" stateSelect=StateSelect.prefer ) "Relative angular velocity (= der(phi_rel))" type: Real springDamper.phi_rel:VARIABLE(start = 0.0 unit = "rad" 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,$whenCondition1,$PRE.speedSensor.w,speedSensor.w,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count) * Number of discrete 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.000199/0.4135, allocations: 132.3 kB / 483.1 MB, free: 4.336 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.388e-05/0.4136, allocations: 19.75 kB / 483.2 MB, free: 4.316 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.033e-05/0.4136, allocations: 27.41 kB / 483.2 MB, free: 4.289 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.4137, allocations: 7.953 kB / 483.2 MB, free: 4.281 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.665e-06/0.4137, allocations: 3.984 kB / 483.2 MB, free: 4.277 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.4137, allocations: 0 / 483.2 MB, free: 4.277 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009528/0.4146, allocations: 0.6685 MB / 483.9 MB, free: 3.551 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.766e-06/0.4147, allocations: 0 / 483.9 MB, free: 3.551 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003591/0.415, allocations: 79.88 kB / 483.9 MB, free: 3.473 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.285e-05/0.415, allocations: 8.062 kB / 484 MB, free: 3.465 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.003e-05/0.4151, allocations: 3.938 kB / 484 MB, free: 3.461 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.329e-06/0.4151, allocations: 4 kB / 484 MB, free: 3.457 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.4151, allocations: 0 / 484 MB, free: 3.457 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005829/0.4157, allocations: 454.2 kB / 484.4 MB, free: 2.98 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.462e-05/0.4158, allocations: 96.86 kB / 484.5 MB, free: 2.867 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.801e-05/0.4158, allocations: 8 kB / 484.5 MB, free: 2.859 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002384/0.416, allocations: 23.97 kB / 484.5 MB, free: 2.836 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.772e-05/0.4161, allocations: 27.95 kB / 484.6 MB, free: 2.809 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.613e-05/0.4162, allocations: 4 kB / 484.6 MB, free: 2.805 MB / 330.7 MB Notification: Performance of sorting global known variables: time 9.77e-05/0.4163, allocations: 123.3 kB / 484.7 MB, free: 2.684 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4163, allocations: 0 / 484.7 MB, free: 2.684 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003132/0.4166, allocations: 55.95 kB / 484.7 MB, free: 2.629 MB / 330.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) * 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.0001638/0.4168, allocations: 109.5 kB / 484.8 MB, free: 2.516 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004049/0.4172, allocations: 247.3 kB / 485.1 MB, free: 2.262 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.4172, allocations: 0 / 485.1 MB, free: 2.262 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001717/0.4174, allocations: 103.9 kB / 485.2 MB, free: 2.16 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000373/0.4177, allocations: 45.09 kB / 485.2 MB, free: 2.117 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001211/0.419, allocations: 0.5897 MB / 485.8 MB, free: 1.504 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004217/0.4194, allocations: 0.7564 MB / 486.6 MB, free: 0.7188 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001375/0.4195, allocations: 30.05 kB / 486.6 MB, free: 0.6914 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.307e-05/0.4196, allocations: 23.44 kB / 486.6 MB, free: 0.6719 MB / 330.7 MB Notification: Performance of SimCode: time 2.9e-07/0.4196, allocations: 0 / 486.6 MB, free: 0.6719 MB / 330.7 MB Notification: Performance of Templates: time 0.005909/0.4256, allocations: 2.414 MB / 489 MB, free: 14.31 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)