Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p|X.1.|d|eta|h|u|s|g|f|hIse|beta|kappa|ddpT|ddTp|dddX.1.|cp|cv|lambda|pMed|TMed|MM",fileNamePrefix="Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties") translateModel(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p|X.1.|d|eta|h|u|s|g|f|hIse|beta|kappa|ddpT|ddTp|dddX.1.|cp|cv|lambda|pMed|TMed|MM",fileNamePrefix="Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005707/0.005707, allocations: 101.6 kB / 15.73 MB, free: 5.539 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001251/0.001251, allocations: 190.3 kB / 16.67 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.354/1.354, allocations: 222.9 MB / 240.3 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.204/2.204, allocations: 390.2 MB / 0.6648 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 59.91 kB / 0.9509 GB, free: 7.566 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9638/0.9652, allocations: 140.4 MB / 1.088 GB, free: 5.402 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties): time 0.004649/0.9699, allocations: 4.035 MB / 1.092 GB, free: 2.52 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002609/0.9725, allocations: 2.442 MB / 1.094 GB, free: 0.7969 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.759e-05/0.9726, allocations: 1.344 kB / 1.094 GB, free: 0.7969 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0002973/0.9729, allocations: 46.55 kB / 1.094 GB, free: 0.7734 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002967/0.9733, allocations: 101.8 kB / 1.094 GB, free: 0.707 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001568/0.9748, allocations: 0.5218 MB / 1.095 GB, free: 448 kB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003696/0.9752, allocations: 261.9 kB / 1.095 GB, free: 336 kB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.524e-05/0.9753, allocations: 13.64 kB / 1.095 GB, free: 328 kB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001996/0.9755, allocations: 113.4 kB / 1.095 GB, free: 284 kB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00015/0.9756, allocations: 98.45 kB / 1.095 GB, free: 240 kB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.294e-05/0.9757, allocations: 9.406 kB / 1.095 GB, free: 240 kB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009194/0.9766, allocations: 455.1 kB / 1.096 GB, free: 68 kB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 7.526e-05/0.9767, allocations: 40.52 kB / 1.096 GB, free: 48 kB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001068/0.9768, allocations: 83.5 kB / 1.096 GB, free: 8 kB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0008138/0.9776, allocations: 407.7 kB / 1.096 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.9776, allocations: 0 / 1.096 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of FrontEnd: time 3.647e-06/0.9776, allocations: 0.875 kB / 1.096 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 6.351e-06/0.9777, allocations: 3.938 kB / 1.096 GB, free: 15.88 MB / 0.8731 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0008415/0.9785, allocations: 0.5052 MB / 1.097 GB, free: 15.42 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.48e-05/0.9786, allocations: 9.594 kB / 1.097 GB, free: 15.42 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002014/0.9806, allocations: 171 kB / 1.097 GB, free: 15.4 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003302/0.9809, allocations: 216.9 kB / 1.097 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.953e-05/0.981, allocations: 10.7 kB / 1.097 GB, free: 15.17 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.943e-05/0.981, allocations: 14.62 kB / 1.097 GB, free: 15.17 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006848/0.9817, allocations: 317 kB / 1.098 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.9817, allocations: 1.031 kB / 1.098 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.709e-05/0.9818, allocations: 10.72 kB / 1.098 GB, free: 14.97 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.888e-05/0.9818, allocations: 6.25 kB / 1.098 GB, free: 14.97 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007228/0.9825, allocations: 261.4 kB / 1.098 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001659/0.9842, allocations: 1.385 MB / 1.099 GB, free: 13.62 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006262/0.9848, allocations: 190.3 kB / 1.099 GB, free: 13.55 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002179/0.985, allocations: 81.17 kB / 1.099 GB, free: 13.52 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 2.245e-05/0.9851, allocations: 6.797 kB / 1.099 GB, free: 13.52 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.801e-05/0.9851, allocations: 41.33 kB / 1.1 GB, free: 13.47 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=18): time 1.283e-06/0.9851, allocations: 0 / 1.1 GB, free: 13.47 MB / 0.8731 GB Notification: Performance of matching and sorting (n=18): time 0.0007449/0.9859, allocations: 235.9 kB / 1.1 GB, free: 13.39 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.324e-05/0.9859, allocations: 57.75 kB / 1.1 GB, free: 13.32 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001407/0.9861, allocations: 165.9 kB / 1.1 GB, free: 13.2 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.848e-05/0.9861, allocations: 31.61 kB / 1.1 GB, free: 13.16 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 7.24e-05/0.9862, allocations: 128.2 kB / 1.1 GB, free: 13.04 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 5.534e-05/0.9862, allocations: 63.66 kB / 1.1 GB, free: 12.99 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.638e-05/0.9863, allocations: 50.23 kB / 1.1 GB, free: 12.96 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001113/0.9864, allocations: 326.6 kB / 1.101 GB, free: 12.64 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002021/0.9866, allocations: 68.66 kB / 1.101 GB, free: 12.62 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002538/0.9869, allocations: 138.8 kB / 1.101 GB, free: 12.51 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004434/0.9874, allocations: 224.6 kB / 1.101 GB, free: 12.35 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.9874, allocations: 0.75 kB / 1.101 GB, free: 12.35 MB / 0.8731 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005504/0.9879, allocations: 255.8 kB / 1.101 GB, free: 12.24 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/0.988, allocations: 8.094 kB / 1.101 GB, free: 12.24 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.988, allocations: 3.938 kB / 1.101 GB, free: 12.24 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.622e-05/0.988, allocations: 3.375 kB / 1.101 GB, free: 12.24 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004401/0.9884, allocations: 61.97 kB / 1.101 GB, free: 12.24 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.118e-05/0.9885, allocations: 9.797 kB / 1.101 GB, free: 12.23 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002348/0.9887, allocations: 33.27 kB / 1.101 GB, free: 12.21 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.632e-05/0.9887, allocations: 11.69 kB / 1.101 GB, free: 12.21 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (28): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000116/0.9889, allocations: 136.2 kB / 1.101 GB, free: 12.08 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.498e-05/0.9889, allocations: 16.56 kB / 1.101 GB, free: 12.07 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006042/0.9895, allocations: 233.5 kB / 1.102 GB, free: 11.97 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.9895, allocations: 3.109 kB / 1.102 GB, free: 11.97 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.9896, allocations: 4 kB / 1.102 GB, free: 11.96 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.9896, allocations: 1.312 kB / 1.102 GB, free: 11.96 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000274/0.9898, allocations: 243.4 kB / 1.102 GB, free: 11.73 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.9898, allocations: 0.6094 kB / 1.102 GB, free: 11.73 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003266/0.9902, allocations: 51.95 kB / 1.102 GB, free: 11.73 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.9902, allocations: 1.125 kB / 1.102 GB, free: 11.73 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.099e-05/0.9902, allocations: 4.031 kB / 1.102 GB, free: 11.73 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.953e-06/0.9902, allocations: 0 / 1.102 GB, free: 11.73 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.9902, allocations: 1.375 kB / 1.102 GB, free: 11.73 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005602/0.9908, allocations: 300.1 kB / 1.102 GB, free: 11.54 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001065/0.9909, allocations: 109.8 kB / 1.102 GB, free: 11.43 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.652e-05/0.991, allocations: 1.797 kB / 1.102 GB, free: 11.43 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002812/0.9912, allocations: 18 kB / 1.102 GB, free: 11.42 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.102e-05/0.9913, allocations: 13.75 kB / 1.102 GB, free: 11.42 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.073e-05/0.9913, allocations: 12.64 kB / 1.102 GB, free: 11.41 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 8.723e-05/0.9914, allocations: 113.4 kB / 1.103 GB, free: 11.33 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.31e-07/0.9914, allocations: 0 / 1.103 GB, free: 11.33 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003968/0.9918, allocations: 59.58 kB / 1.103 GB, free: 11.32 MB / 0.8731 GB 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 (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00023/0.992, allocations: 141.3 kB / 1.103 GB, free: 11.22 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0005279/0.9926, allocations: 181.3 kB / 1.103 GB, free: 11.17 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.9926, allocations: 4.781 kB / 1.103 GB, free: 11.17 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002295/0.9928, allocations: 94.11 kB / 1.103 GB, free: 11.14 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004622/0.9933, allocations: 61.73 kB / 1.103 GB, free: 11.12 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009385/0.9943, allocations: 409.2 kB / 1.103 GB, free: 10.89 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003047/0.9946, allocations: 0.7142 MB / 1.104 GB, free: 10.2 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0002516/0.9948, allocations: 51.28 kB / 1.104 GB, free: 10.17 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.675e-05/0.9949, allocations: 28.47 kB / 1.104 GB, free: 10.16 MB / 0.8731 GB Notification: Performance of SimCode: time 2.5e-07/0.9949, allocations: 0 / 1.104 GB, free: 10.16 MB / 0.8731 GB Notification: Performance of Templates: time 0.00777/1.003, allocations: 3.469 MB / 1.108 GB, free: 9.859 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.makefile (rm -f Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe ; mkfifo Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe >> ../files/Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.sim & ./Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityProperties.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches