Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Media.Examples.SimpleLiquidWater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater") translateModel(Modelica.Media.Examples.SimpleLiquidWater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002155/0.002161, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.042/2.042, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0022/0.0022, allocations: 93.33 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 1.589e-05/1.612e-05, allocations: 0 / 314.8 MB, free: 9.18 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3415/0.3416, allocations: 47.56 MB / 362.3 MB, free: 45.86 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6659/1.008, allocations: 272 MB / 0.6194 GB, free: 10.52 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00024/1.008, allocations: 63.97 kB / 0.6195 GB, free: 10.49 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04265/1.051, allocations: 9.349 MB / 0.6286 GB, free: 3.004 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.884e-06/1.051, allocations: 4 kB / 0.6286 GB, free: 3 MB / 395.1 MB Notification: Performance of Transformations before backend: time 1.506e-05/1.051, allocations: 6.062 kB / 0.6286 GB, free: 2.996 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.00112/1.052, allocations: 452.6 kB / 0.629 GB, free: 2.52 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.802e-05/1.052, allocations: 8.031 kB / 0.629 GB, free: 2.512 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002416/1.052, allocations: 18.91 kB / 0.6291 GB, free: 2.496 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003089/1.052, allocations: 214.4 kB / 0.6293 GB, free: 2.254 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.603e-05/1.052, allocations: 4 kB / 0.6293 GB, free: 2.25 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.754e-05/1.052, allocations: 11.98 kB / 0.6293 GB, free: 2.238 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004557/1.053, allocations: 116.7 kB / 0.6294 GB, free: 2.156 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003651/1.053, allocations: 173 kB / 0.6296 GB, free: 1.996 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.203e-05/1.053, allocations: 4 kB / 0.6296 GB, free: 1.992 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.51e-05/1.053, allocations: 4 kB / 0.6296 GB, free: 1.988 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.247e-06/1.053, allocations: 4 kB / 0.6296 GB, free: 1.984 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00168/1.055, allocations: 0.8981 MB / 0.6304 GB, free: 1.105 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004349/1.056, allocations: 121.8 kB / 0.6306 GB, free: 1.008 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001031/1.056, allocations: 44.09 kB / 0.6306 GB, free: 0.9727 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006766/1.056, allocations: 0.5101 MB / 0.6311 GB, free: 432 kB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.139e-05/1.056, allocations: 34.56 kB / 0.6311 GB, free: 388 kB / 395.1 MB Notification: Performance of pre-optimization done (n=14): time 3.647e-06/1.056, allocations: 0 / 0.6311 GB, free: 388 kB / 395.1 MB Notification: Performance of matching and sorting (n=20): time 0.004268/1.061, allocations: 0.5991 MB / 0.6317 GB, free: 15.81 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.326e-05/1.061, allocations: 51.41 kB / 0.6318 GB, free: 15.75 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000212/1.061, allocations: 133.1 kB / 0.6319 GB, free: 15.62 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 4.224e-05/1.061, allocations: 29.7 kB / 0.6319 GB, free: 15.58 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001404/1.061, allocations: 213.6 kB / 0.6321 GB, free: 15.38 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.412e-05/1.061, allocations: 70.27 kB / 0.6322 GB, free: 15.32 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.345e-05/1.061, allocations: 0 / 0.6322 GB, free: 15.32 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0001437/1.062, allocations: 326.5 kB / 0.6325 GB, free: 14.99 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002506/1.062, allocations: 58.38 kB / 0.6326 GB, free: 14.96 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002656/1.062, allocations: 169 kB / 0.6327 GB, free: 14.77 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003005/1.062, allocations: 76.34 kB / 0.6328 GB, free: 14.72 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.563e-06/1.062, allocations: 4.938 kB / 0.6328 GB, free: 14.72 MB / 411.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0008375/1.063, allocations: 247.5 kB / 0.633 GB, free: 14.52 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.739e-05/1.063, allocations: 4 kB / 0.633 GB, free: 14.51 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.114e-05/1.063, allocations: 4 kB / 0.633 GB, free: 14.51 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.1e-05/1.063, allocations: 8 kB / 0.6331 GB, free: 14.5 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008204/1.064, allocations: 83.48 kB / 0.6331 GB, free: 14.42 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.393e-05/1.064, allocations: 4 kB / 0.6331 GB, free: 14.42 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004227/1.065, allocations: 15.98 kB / 0.6332 GB, free: 14.4 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.546e-05/1.065, allocations: 17.98 kB / 0.6332 GB, free: 14.39 MB / 411.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 37 * 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.0001544/1.065, allocations: 114.2 kB / 0.6333 GB, free: 14.27 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.182e-05/1.065, allocations: 16.56 kB / 0.6333 GB, free: 14.25 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008328/1.066, allocations: 201.5 kB / 0.6335 GB, free: 14.09 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.441e-06/1.066, allocations: 0 / 0.6335 GB, free: 14.09 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.064e-06/1.066, allocations: 4 kB / 0.6335 GB, free: 14.09 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.66e-06/1.066, allocations: 0 / 0.6335 GB, free: 14.09 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001769/1.068, allocations: 0.515 MB / 0.634 GB, free: 13.58 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.06e-06/1.068, allocations: 4.125 kB / 0.634 GB, free: 13.58 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005593/1.068, allocations: 47.95 kB / 0.634 GB, free: 13.53 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.249e-05/1.068, allocations: 4 kB / 0.634 GB, free: 13.53 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.204e-05/1.068, allocations: 7.984 kB / 0.6341 GB, free: 13.52 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.702e-06/1.068, allocations: 3.938 kB / 0.6341 GB, free: 13.52 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.398e-06/1.068, allocations: 11.14 kB / 0.6341 GB, free: 13.51 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001035/1.069, allocations: 378.9 kB / 0.6344 GB, free: 13.14 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001111/1.07, allocations: 92.95 kB / 0.6345 GB, free: 13.04 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.098e-05/1.07, allocations: 0 / 0.6345 GB, free: 13.04 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005826/1.07, allocations: 16.05 kB / 0.6345 GB, free: 13.02 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.874e-05/1.07, allocations: 19.42 kB / 0.6346 GB, free: 13 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.117e-05/1.071, allocations: 7.984 kB / 0.6346 GB, free: 13 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.0001737/1.071, allocations: 108.8 kB / 0.6347 GB, free: 12.9 MB / 411.1 MB Notification: Performance of sort global known variables: time 1.373e-06/1.071, allocations: 0 / 0.6347 GB, free: 12.9 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.001015/1.072, allocations: 59.94 kB / 0.6347 GB, free: 12.84 MB / 411.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 20 * 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.0003925/1.072, allocations: 135 kB / 0.6348 GB, free: 12.71 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.0005278/1.073, allocations: 178.7 kB / 0.635 GB, free: 12.58 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 5.06e-06/1.073, allocations: 0 / 0.635 GB, free: 12.58 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001767/1.073, allocations: 77.77 kB / 0.6351 GB, free: 12.52 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005854/1.074, allocations: 28.61 kB / 0.6351 GB, free: 12.5 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00116/1.075, allocations: 300.4 kB / 0.6354 GB, free: 12.19 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003792/1.075, allocations: 0.7222 MB / 0.6361 GB, free: 11.45 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001927/1.075, allocations: 31.41 kB / 0.6361 GB, free: 11.42 MB / 411.1 MB Notification: Performance of SimCode: time 1.162e-06/1.075, allocations: 0 / 0.6361 GB, free: 11.42 MB / 411.1 MB Notification: Performance of Templates: time 0.009807/1.085, allocations: 2.722 MB / 0.6388 GB, free: 8.734 MB / 411.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater.sim & ./Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/SimpleLiquidWater/SimpleLiquidWater.csv","../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches