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: "" <> buildModelFMU(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1,fileNamePrefix="ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem_Variation1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1,fileNamePrefix="ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem_Variation1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001103/0.001103, allocations: 184.1 kB / 7.654 MB, free: 1.418 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.521/1.521, allocations: 194.3 MB / 202.4 MB, free: 13.03 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03605/0.03605, allocations: 7.906 MB / 255.2 MB, free: 8.254 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.00169/0.00169, allocations: 123.5 kB / 301.9 MB, free: 32.18 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.524e-05/1.525e-05, allocations: 0 / 354.4 MB, free: 11.68 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2614/0.2615, allocations: 46.2 MB / 400.6 MB, free: 46.11 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0983/0.3598, allocations: 73.93 MB / 474.5 MB, free: 0.8789 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001678/0.36, allocations: 47.98 kB / 474.6 MB, free: 0.832 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01132/0.3714, allocations: 4.046 MB / 478.6 MB, free: 12.88 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3714, allocations: 0 / 478.6 MB, free: 12.88 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.442e-05/0.3714, allocations: 8 kB / 478.6 MB, free: 12.88 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.000792/0.3722, allocations: 0.5292 MB / 479.1 MB, free: 12.3 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.3723, allocations: 8.031 kB / 479.1 MB, free: 12.29 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.429e-05/0.3724, allocations: 28.75 kB / 479.2 MB, free: 12.26 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002631/0.3726, allocations: 245.6 kB / 479.4 MB, free: 11.98 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.767e-05/0.3727, allocations: 8 kB / 479.4 MB, free: 11.98 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.347e-05/0.3727, allocations: 12 kB / 479.4 MB, free: 11.96 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002382/0.373, allocations: 124.8 kB / 479.6 MB, free: 11.84 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002757/0.3732, allocations: 154.4 kB / 479.7 MB, free: 11.69 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.616e-05/0.3733, allocations: 8 kB / 479.7 MB, free: 11.68 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.151e-05/0.3733, allocations: 3.984 kB / 479.7 MB, free: 11.68 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.027e-06/0.3733, allocations: 8.562 kB / 479.7 MB, free: 11.67 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001138/0.3744, allocations: 0.6565 MB / 480.4 MB, free: 10.97 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000351/0.3748, allocations: 182.6 kB / 480.6 MB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001253/0.3749, allocations: 82.11 kB / 480.6 MB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.287e-05/0.375, allocations: 6.109 kB / 480.6 MB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002377/0.3752, allocations: 132.1 kB / 480.8 MB, free: 10.56 MB / 330.7 MB Notification: Performance of pre-optimization done (n=27): time 2.355e-06/0.3752, allocations: 0 / 480.8 MB, free: 10.56 MB / 330.7 MB Notification: Performance of matching and sorting (n=32): time 0.001313/0.3766, allocations: 0.8971 MB / 481.7 MB, free: 9.574 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.26e-05/0.3766, allocations: 55.41 kB / 481.7 MB, free: 9.508 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001156/0.3767, allocations: 141.5 kB / 481.9 MB, free: 9.363 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.57e-05/0.3768, allocations: 29.7 kB / 481.9 MB, free: 9.328 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.741e-05/0.3768, allocations: 144.4 kB / 482 MB, free: 9.184 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.93e-05/0.3769, allocations: 102.5 kB / 482.1 MB, free: 9.082 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.164e-05/0.3769, allocations: 0 / 482.1 MB, free: 9.082 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001089/0.3771, allocations: 337.5 kB / 482.5 MB, free: 8.746 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001129/0.3772, allocations: 62.7 kB / 482.5 MB, free: 8.684 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001365/0.3773, allocations: 99.42 kB / 482.6 MB, free: 8.578 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001306/0.3775, allocations: 73.09 kB / 482.7 MB, free: 8.508 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/0.3775, allocations: 11.94 kB / 482.7 MB, free: 8.496 MB / 330.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003673/0.3778, allocations: 237.3 kB / 482.9 MB, free: 8.258 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.523e-05/0.3779, allocations: 37.7 kB / 483 MB, free: 8.215 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.595e-06/0.3779, allocations: 3.953 kB / 483 MB, free: 8.211 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.581e-05/0.3779, allocations: 7.984 kB / 483 MB, free: 8.203 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003161/0.3782, allocations: 75.89 kB / 483.1 MB, free: 8.129 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.73e-06/0.3783, allocations: 64 / 483.1 MB, free: 8.129 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002164/0.3785, allocations: 35.28 kB / 483.1 MB, free: 8.098 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.308e-05/0.3785, allocations: 12 kB / 483.1 MB, free: 8.086 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.0001643/0.3787, allocations: 131 kB / 483.2 MB, free: 7.957 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002919/0.379, allocations: 217.3 kB / 483.4 MB, free: 7.738 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.023e-05/0.379, allocations: 27.75 kB / 483.5 MB, free: 7.711 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.5e-05/0.3791, allocations: 25.75 kB / 483.5 MB, free: 7.688 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.469e-06/0.3791, allocations: 4 kB / 483.5 MB, free: 7.684 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.3791, allocations: 0 / 483.5 MB, free: 7.684 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.183e-06/0.3791, allocations: 3.984 kB / 483.5 MB, free: 7.68 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007979/0.3799, allocations: 0.6645 MB / 484.2 MB, free: 6.957 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.3799, allocations: 0 / 484.2 MB, free: 6.957 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003412/0.3803, allocations: 76.02 kB / 484.2 MB, free: 6.883 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.488e-06/0.3803, allocations: 3.938 kB / 484.2 MB, free: 6.879 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.046e-05/0.3803, allocations: 8.938 kB / 484.3 MB, free: 6.871 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.3803, allocations: 0 / 484.3 MB, free: 6.871 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.3804, allocations: 7.984 kB / 484.3 MB, free: 6.863 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005199/0.3809, allocations: 446.8 kB / 484.7 MB, free: 6.395 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.297e-05/0.3809, allocations: 88.92 kB / 484.8 MB, free: 6.289 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.515e-05/0.381, allocations: 8.031 kB / 484.8 MB, free: 6.281 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002268/0.3812, allocations: 19.98 kB / 484.8 MB, free: 6.262 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.878e-05/0.3813, allocations: 31.91 kB / 484.8 MB, free: 6.23 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.938e-05/0.3813, allocations: 15.94 kB / 484.9 MB, free: 6.215 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.978e-05/0.3814, allocations: 115.3 kB / 485 MB, free: 6.102 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3814, allocations: 1.125 kB / 485 MB, free: 6.102 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003336/0.3818, allocations: 59.98 kB / 485 MB, free: 6.043 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.0008111/0.3826, allocations: 1.132 MB / 486.2 MB, free: 4.875 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003647/0.383, allocations: 235.3 kB / 486.4 MB, free: 4.633 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.137e-06/0.383, allocations: 3.938 kB / 486.4 MB, free: 4.629 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001609/0.3831, allocations: 107.9 kB / 486.5 MB, free: 4.523 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003424/0.3835, allocations: 43.06 kB / 486.5 MB, free: 4.488 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001275/0.3848, allocations: 0.6429 MB / 487.2 MB, free: 3.832 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003144/0.3851, allocations: 0.7603 MB / 487.9 MB, free: 3.043 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 9.726e-05/0.3852, allocations: 25.91 kB / 488 MB, free: 3.023 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001285/0.3853, allocations: 83.41 kB / 488.1 MB, free: 2.945 MB / 330.7 MB Notification: Performance of SimCode: time 2.8e-07/0.3853, allocations: 4 kB / 488.1 MB, free: 2.941 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02226/0.4076, allocations: 4.293 MB / 492.4 MB, free: 14.74 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002058/0.4079, allocations: 182.5 kB / 492.5 MB, free: 14.55 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.831/2.239, allocations: 0 / 492.5 MB, free: 14.55 MB / 346.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem_Variation1_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaByExample_ModelicaByExample_Architectures_SensorComparison_Examples_FlatSystem_Variation1.fmu > ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe 2>&1)