Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem") translateModel(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002053/0.002053, allocations: 183.1 kB / 16.12 MB, free: 5.66 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.462/1.462, allocations: 194.5 MB / 211.3 MB, free: 2.863 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03603/0.03603, allocations: 8.113 MB / 264.6 MB, free: 12.57 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.00156/0.00156, allocations: 104.2 kB / 311.6 MB, free: 13.47 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003602/0.0003602, allocations: 15.98 kB / 368.5 MB, free: 4.48 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1978/0.1982, allocations: 46.19 MB / 414.7 MB, free: 65.91 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08026/0.2785, allocations: 74.74 MB / 489.4 MB, free: 7.059 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001156/0.2786, allocations: 43.98 kB / 489.5 MB, free: 7.016 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01124/0.2899, allocations: 4.04 MB / 493.5 MB, free: 2.969 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.2899, allocations: 0 / 493.5 MB, free: 2.969 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.894e-05/0.29, allocations: 4 kB / 493.5 MB, free: 2.965 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.001077/0.2911, allocations: 0.5442 MB / 494.1 MB, free: 2.367 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.799e-05/0.2911, allocations: 8.031 kB / 494.1 MB, free: 2.359 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001168/0.2913, allocations: 32.56 kB / 494.1 MB, free: 2.328 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003232/0.2916, allocations: 236.6 kB / 494.3 MB, free: 2.055 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.886e-05/0.2916, allocations: 16.81 kB / 494.3 MB, free: 2.039 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.884e-05/0.2917, allocations: 24.38 kB / 494.4 MB, free: 2.016 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005219/0.2922, allocations: 243.5 kB / 494.6 MB, free: 1.77 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.134e-05/0.2923, allocations: 3.906 kB / 494.6 MB, free: 1.766 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.421e-05/0.2923, allocations: 8 kB / 494.6 MB, free: 1.758 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.257e-05/0.2923, allocations: 8 kB / 494.6 MB, free: 1.75 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005476/0.2929, allocations: 217.6 kB / 494.8 MB, free: 1.535 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001259/0.2941, allocations: 0.7606 MB / 495.6 MB, free: 0.7148 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007232/0.2949, allocations: 277.5 kB / 495.9 MB, free: 448 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003147/0.2952, allocations: 132.8 kB / 496 MB, free: 312 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.75e-05/0.2952, allocations: 4 kB / 496 MB, free: 308 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004271/0.2957, allocations: 171.2 kB / 496.2 MB, free: 124 kB / 330.7 MB Notification: Performance of pre-optimization done (n=25): time 2.204e-06/0.2957, allocations: 3.938 kB / 496.2 MB, free: 120 kB / 330.7 MB Notification: Performance of matching and sorting (n=29): time 0.002355/0.2981, allocations: 1.189 MB / 497.4 MB, free: 14.84 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.247e-05/0.2981, allocations: 55.41 kB / 497.4 MB, free: 14.78 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001875/0.2983, allocations: 179.5 kB / 497.6 MB, free: 14.59 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.722e-05/0.2983, allocations: 29.7 kB / 497.6 MB, free: 14.55 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.39e-05/0.2984, allocations: 144.6 kB / 497.8 MB, free: 14.41 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.056e-05/0.2985, allocations: 94.64 kB / 497.9 MB, free: 14.31 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.331e-05/0.2986, allocations: 12 kB / 497.9 MB, free: 14.3 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.2987, allocations: 330.8 kB / 498.2 MB, free: 13.97 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002843/0.299, allocations: 107.9 kB / 498.3 MB, free: 13.86 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000326/0.2993, allocations: 129.6 kB / 498.4 MB, free: 13.73 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001249/0.3006, allocations: 0.5544 MB / 499 MB, free: 13.15 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.143e-06/0.3006, allocations: 0 / 499 MB, free: 13.15 MB / 346.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.000701/0.3013, allocations: 360.3 kB / 499.3 MB, free: 12.79 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.46e-05/0.3014, allocations: 38.42 kB / 499.4 MB, free: 12.75 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.3014, allocations: 3.984 kB / 499.4 MB, free: 12.74 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.244e-05/0.3014, allocations: 4 kB / 499.4 MB, free: 12.74 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002916/0.3017, allocations: 79.92 kB / 499.5 MB, free: 12.66 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.458e-06/0.3017, allocations: 4 kB / 499.5 MB, free: 12.66 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002016/0.3019, allocations: 27.97 kB / 499.5 MB, free: 12.63 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.417e-05/0.302, allocations: 12 kB / 499.5 MB, free: 12.62 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: 2 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.trapezoid.T_start,$PRE.trapezoid.count,$whenCondition1,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 (35): * Single equations (assignments): 34 * 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.0002148/0.3022, allocations: 168.4 kB / 499.7 MB, free: 12.45 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.27e-05/0.3022, allocations: 23.75 kB / 499.7 MB, free: 12.42 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.458e-05/0.3023, allocations: 26.66 kB / 499.7 MB, free: 12.39 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.3023, allocations: 0 / 499.7 MB, free: 12.39 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.3023, allocations: 4 kB / 499.7 MB, free: 12.39 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.82e-06/0.3023, allocations: 7.984 kB / 499.7 MB, free: 12.38 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001143/0.3035, allocations: 0.7306 MB / 0.4887 GB, free: 11.59 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.3035, allocations: 0 / 0.4887 GB, free: 11.59 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003113/0.3038, allocations: 83.89 kB / 0.4888 GB, free: 11.51 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.506e-06/0.3038, allocations: 0 / 0.4888 GB, free: 11.51 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.315e-05/0.3039, allocations: 15.97 kB / 0.4888 GB, free: 11.49 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.195e-06/0.3039, allocations: 0 / 0.4888 GB, free: 11.49 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.3039, allocations: 4 kB / 0.4888 GB, free: 11.49 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009649/0.3048, allocations: 0.5363 MB / 0.4893 GB, free: 10.93 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.481e-05/0.3049, allocations: 100.8 kB / 0.4894 GB, free: 10.81 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.779e-05/0.305, allocations: 8.031 kB / 0.4895 GB, free: 10.8 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002126/0.3052, allocations: 35.92 kB / 0.4895 GB, free: 10.77 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.132e-05/0.3053, allocations: 23.95 kB / 0.4895 GB, free: 10.75 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.115e-05/0.3053, allocations: 11.94 kB / 0.4895 GB, free: 10.73 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001197/0.3054, allocations: 140.5 kB / 0.4897 GB, free: 10.6 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3054, allocations: 0 / 0.4897 GB, free: 10.6 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003208/0.3058, allocations: 60 kB / 0.4897 GB, free: 10.54 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: 3 ($whenCondition1,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 (29): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001524/0.3059, allocations: 115.2 kB / 0.4898 GB, free: 10.42 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006811/0.3066, allocations: 327.2 kB / 0.4901 GB, free: 10.09 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.3066, allocations: 0 / 0.4901 GB, free: 10.09 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003294/0.307, allocations: 148.4 kB / 0.4903 GB, free: 9.941 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000441/0.3074, allocations: 41.09 kB / 0.4903 GB, free: 9.902 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002349/0.3098, allocations: 1.012 MB / 0.4913 GB, free: 8.859 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002859/0.3101, allocations: 0.7557 MB / 0.492 GB, free: 8.074 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001012/0.3102, allocations: 22.28 kB / 0.4921 GB, free: 8.055 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.069e-05/0.3103, allocations: 23.44 kB / 0.4921 GB, free: 8.031 MB / 346.7 MB Notification: Performance of SimCode: time 2.11e-07/0.3103, allocations: 0 / 0.4921 GB, free: 8.031 MB / 346.7 MB Notification: Performance of Templates: time 0.005536/0.3158, allocations: 2.514 MB / 0.4945 GB, free: 5.539 MB / 346.7 MB make -j1 -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.makefile (rm -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe >> ../files/ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.sim & ./ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe 2>&1)