Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Media.Incompressible.Examples.TestGlycol.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Media.Incompressible.Examples.TestGlycol,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|eta|lambda|s|cv|u|h|d",fileNamePrefix="Modelica_trunk_cpp_Modelica.Media.Incompressible.Examples.TestGlycol") translateModel(Modelica.Media.Incompressible.Examples.TestGlycol,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|eta|lambda|s|cv|u|h|d",fileNamePrefix="Modelica_trunk_cpp_Modelica.Media.Incompressible.Examples.TestGlycol") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002192/0.002193, allocations: 195.7 kB / 18.07 MB, free: 3.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.997/2.997, allocations: 226.5 MB / 245.4 MB, free: 8.219 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001511/0.001512, allocations: 99.92 kB / 297.4 MB, free: 6.891 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003891/0.0003893, allocations: 4 kB / 357.4 MB, free: 10.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5446/0.545, allocations: 51.29 MB / 408.7 MB, free: 27.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9033/1.448, allocations: 187.9 MB / 0.5826 GB, free: 12.26 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004384/1.449, allocations: 81.33 kB / 0.5827 GB, free: 12.21 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09537/1.544, allocations: 20.84 MB / 0.603 GB, free: 10.29 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.108e-06/1.544, allocations: 0 / 0.603 GB, free: 10.29 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.691e-05/1.544, allocations: 8 kB / 0.603 GB, free: 10.28 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0009645/1.545, allocations: 442.9 kB / 0.6035 GB, free: 9.801 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.459e-05/1.546, allocations: 15.97 kB / 0.6035 GB, free: 9.785 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007277/1.546, allocations: 36.56 kB / 0.6035 GB, free: 9.754 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003268/1.547, allocations: 199 kB / 0.6037 GB, free: 9.527 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.038e-05/1.547, allocations: 4.125 kB / 0.6037 GB, free: 9.527 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.964e-05/1.547, allocations: 11.38 kB / 0.6037 GB, free: 9.52 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004403/1.547, allocations: 140.7 kB / 0.6038 GB, free: 9.391 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.601e-05/1.547, allocations: 192 / 0.6038 GB, free: 9.391 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.499e-05/1.547, allocations: 7.375 kB / 0.6038 GB, free: 9.387 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.25e-05/1.547, allocations: 4 kB / 0.6039 GB, free: 9.383 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003119/1.548, allocations: 109.5 kB / 0.604 GB, free: 9.301 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001241/1.549, allocations: 0.6146 MB / 0.6046 GB, free: 8.676 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002495/1.549, allocations: 86.52 kB / 0.6046 GB, free: 8.605 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001208/1.549, allocations: 39.34 kB / 0.6047 GB, free: 8.574 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001154/1.55, allocations: 0.8067 MB / 0.6055 GB, free: 7.59 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.679e-05/1.551, allocations: 38.5 kB / 0.6055 GB, free: 7.543 MB / 394.7 MB Notification: Performance of pre-optimization done (n=13): time 3.637e-06/1.551, allocations: 0 / 0.6055 GB, free: 7.543 MB / 394.7 MB Notification: Performance of matching and sorting (n=13): time 0.0004862/1.551, allocations: 122.5 kB / 0.6056 GB, free: 7.441 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.518e-05/1.551, allocations: 62.77 kB / 0.6057 GB, free: 7.371 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001846/1.551, allocations: 112.6 kB / 0.6058 GB, free: 7.258 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.469e-05/1.551, allocations: 25.7 kB / 0.6058 GB, free: 7.227 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001031/1.551, allocations: 103.4 kB / 0.6059 GB, free: 7.125 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.848e-05/1.552, allocations: 42.3 kB / 0.6059 GB, free: 7.09 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.919e-06/1.552, allocations: 0 / 0.6059 GB, free: 7.09 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002212/1.552, allocations: 330.4 kB / 0.6063 GB, free: 6.762 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.945e-05/1.552, allocations: 26.92 kB / 0.6063 GB, free: 6.742 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001397/1.552, allocations: 67.38 kB / 0.6064 GB, free: 6.668 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002536/1.552, allocations: 105.1 kB / 0.6065 GB, free: 6.574 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/1.552, allocations: 0 / 0.6065 GB, free: 6.574 MB / 394.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003911/1.553, allocations: 138.6 kB / 0.6066 GB, free: 6.457 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.967e-05/1.553, allocations: 7.031 kB / 0.6066 GB, free: 6.453 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.344e-05/1.553, allocations: 4 kB / 0.6066 GB, free: 6.449 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.107e-05/1.553, allocations: 4.156 kB / 0.6066 GB, free: 6.445 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002254/1.553, allocations: 35.92 kB / 0.6066 GB, free: 6.41 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.319e-05/1.553, allocations: 3.938 kB / 0.6066 GB, free: 6.406 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001421/1.553, allocations: 15.22 kB / 0.6067 GB, free: 6.395 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.28e-05/1.553, allocations: 19.86 kB / 0.6067 GB, free: 6.375 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * 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.0001495/1.554, allocations: 117.1 kB / 0.6068 GB, free: 6.258 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.037e-05/1.554, allocations: 7.906 kB / 0.6068 GB, free: 6.25 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000544/1.554, allocations: 145.5 kB / 0.6069 GB, free: 6.141 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.878e-06/1.554, allocations: 4 kB / 0.6069 GB, free: 6.137 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.158e-06/1.554, allocations: 7.922 kB / 0.6069 GB, free: 6.129 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.947e-06/1.554, allocations: 3.938 kB / 0.6069 GB, free: 6.125 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007969/1.555, allocations: 389.8 kB / 0.6073 GB, free: 5.727 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/1.555, allocations: 0 / 0.6073 GB, free: 5.727 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001449/1.555, allocations: 23.98 kB / 0.6073 GB, free: 5.703 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.858e-05/1.555, allocations: 4 kB / 0.6073 GB, free: 5.699 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.209e-05/1.555, allocations: 11.69 kB / 0.6074 GB, free: 5.691 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.015e-06/1.555, allocations: 0 / 0.6074 GB, free: 5.691 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/1.555, allocations: 0 / 0.6074 GB, free: 5.691 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003022/1.556, allocations: 200.4 kB / 0.6075 GB, free: 5.5 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001211/1.556, allocations: 104.8 kB / 0.6076 GB, free: 5.383 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.301e-05/1.556, allocations: 7.188 kB / 0.6077 GB, free: 5.379 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000161/1.556, allocations: 0 / 0.6077 GB, free: 5.379 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.544e-05/1.556, allocations: 15.3 kB / 0.6077 GB, free: 5.367 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.819e-05/1.556, allocations: 8 kB / 0.6077 GB, free: 5.359 MB / 394.7 MB Notification: Performance of sorting global known variables: time 9.411e-05/1.556, allocations: 91.08 kB / 0.6078 GB, free: 5.273 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.4e-07/1.556, allocations: 0 / 0.6078 GB, free: 5.273 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007057/1.557, allocations: 63.19 kB / 0.6078 GB, free: 5.219 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0004986/1.557, allocations: 166.3 kB / 0.608 GB, free: 5.047 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0003107/1.558, allocations: 86.84 kB / 0.6081 GB, free: 4.977 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.578e-06/1.558, allocations: 0 / 0.6081 GB, free: 4.977 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001229/1.558, allocations: 38.17 kB / 0.6081 GB, free: 4.949 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007863/1.559, allocations: 43.12 kB / 0.6081 GB, free: 4.918 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008143/1.56, allocations: 325.7 kB / 0.6085 GB, free: 4.582 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000428/1.56, allocations: 0.6931 MB / 0.6091 GB, free: 3.859 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001119/1.56, allocations: 23.42 kB / 0.6092 GB, free: 3.836 MB / 394.7 MB Notification: Performance of SimCode: time 2.995e-06/1.56, allocations: 0 / 0.6092 GB, free: 3.836 MB / 394.7 MB Notification: Performance of Templates: time 0.01199/1.572, allocations: 2.168 MB / 0.6113 GB, free: 1.684 MB / 394.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Media.Incompressible.Examples.TestGlycol.makefile (rm -f Modelica_trunk_cpp_Modelica.Media.Incompressible.Examples.TestGlycol.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Media.Incompressible.Examples.TestGlycol.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Media.Incompressible.Examples.TestGlycol.pipe >> ../files/Modelica_trunk_cpp_Modelica.Media.Incompressible.Examples.TestGlycol.sim & ./Modelica_trunk_cpp_Modelica.Media.Incompressible.Examples.TestGlycol --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Media.Incompressible.Examples.TestGlycol.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Media.Incompressible.Examples.TestGlycol_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Incompressible/Examples/TestGlycol/TestGlycol.csv","../files/Modelica_trunk_cpp_Modelica.Media.Incompressible.Examples.TestGlycol.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches