Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001626/0.001626, allocations: 112.9 kB / 16.41 MB, free: 5.992 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.001828/0.001828, allocations: 190.3 kB / 17.34 MB, free: 5.602 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.333/1.333, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.491/2.491, allocations: 437.1 MB / 0.7112 GB, free: 4.41 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00141/0.00141, allocations: 67.89 kB / 1.019 GB, free: 9.355 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8605/0.8619, allocations: 151.6 MB / 1.167 GB, free: 3.824 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties): time 0.005601/0.8676, allocations: 4.06 MB / 1.171 GB, free: 15.75 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.002674/0.8703, allocations: 2.43 MB / 1.174 GB, free: 13.31 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001343/0.8704, allocations: 0 / 1.174 GB, free: 13.31 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0002941/0.8707, allocations: 51.67 kB / 1.174 GB, free: 13.26 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0003351/0.8711, allocations: 91.36 kB / 1.174 GB, free: 13.17 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.001485/0.8726, allocations: 0.5526 MB / 1.174 GB, free: 12.62 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0003661/0.873, allocations: 251.9 kB / 1.175 GB, free: 12.37 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 5.735e-05/0.873, allocations: 17.48 kB / 1.175 GB, free: 12.35 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002566/0.8733, allocations: 111.6 kB / 1.175 GB, free: 12.24 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001631/0.8735, allocations: 91.66 kB / 1.175 GB, free: 12.15 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 2.898e-05/0.8735, allocations: 8 kB / 1.175 GB, free: 12.14 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008538/0.8744, allocations: 459.2 kB / 1.175 GB, free: 11.69 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 8.662e-05/0.8745, allocations: 47.81 kB / 1.175 GB, free: 11.64 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0001004/0.8746, allocations: 79.66 kB / 1.175 GB, free: 11.57 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0008081/0.8754, allocations: 411.2 kB / 1.176 GB, free: 11.17 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.8754, allocations: 0 / 1.176 GB, free: 11.17 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.242e-06/0.8754, allocations: 0 / 1.176 GB, free: 11.17 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 6.723e-06/0.8754, allocations: 0 / 1.176 GB, free: 11.17 MB / 0.9044 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.0008337/0.8763, allocations: 0.5103 MB / 1.176 GB, free: 10.61 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.8763, allocations: 8.922 kB / 1.176 GB, free: 10.6 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002053/0.8784, allocations: 176.6 kB / 1.176 GB, free: 10.43 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003205/0.8787, allocations: 212.1 kB / 1.177 GB, free: 10.18 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.707e-05/0.8787, allocations: 12.64 kB / 1.177 GB, free: 10.17 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.953e-05/0.8788, allocations: 20.38 kB / 1.177 GB, free: 10.15 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006568/0.8795, allocations: 312.4 kB / 1.177 GB, free: 9.809 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/0.8795, allocations: 0 / 1.177 GB, free: 9.809 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.93e-05/0.8795, allocations: 8 kB / 1.177 GB, free: 9.801 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.235e-05/0.8795, allocations: 4 kB / 1.177 GB, free: 9.797 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000711/0.8803, allocations: 263.5 kB / 1.177 GB, free: 9.539 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001608/0.8819, allocations: 1.385 MB / 1.179 GB, free: 8.039 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006789/0.8826, allocations: 199.9 kB / 1.179 GB, free: 7.836 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002318/0.8828, allocations: 80.81 kB / 1.179 GB, free: 7.754 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 3.066e-05/0.8829, allocations: 7.906 kB / 1.179 GB, free: 7.746 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.176e-05/0.8829, allocations: 42.55 kB / 1.179 GB, free: 7.695 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=18): time 1.202e-06/0.8829, allocations: 0 / 1.179 GB, free: 7.695 MB / 0.9044 GB Notification: Performance of matching and sorting (n=18): time 0.0007959/0.8837, allocations: 243.8 kB / 1.179 GB, free: 7.453 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.119e-05/0.8837, allocations: 59.41 kB / 1.179 GB, free: 7.383 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001426/0.8839, allocations: 156.9 kB / 1.179 GB, free: 7.223 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.329e-05/0.8839, allocations: 29.64 kB / 1.179 GB, free: 7.188 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 7.644e-05/0.884, allocations: 136.2 kB / 1.18 GB, free: 7.051 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 5.876e-05/0.8841, allocations: 63.47 kB / 1.18 GB, free: 6.988 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.454e-05/0.8842, allocations: 53.88 kB / 1.18 GB, free: 6.926 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001149/0.8843, allocations: 322.8 kB / 1.18 GB, free: 6.602 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002266/0.8845, allocations: 64.42 kB / 1.18 GB, free: 6.539 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002534/0.8848, allocations: 146.2 kB / 1.18 GB, free: 6.363 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005004/0.8853, allocations: 225.1 kB / 1.18 GB, free: 6.109 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.8853, allocations: 0 / 1.18 GB, free: 6.109 MB / 0.9044 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005997/0.8859, allocations: 248.1 kB / 1.181 GB, free: 5.863 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.368e-05/0.8859, allocations: 11.98 kB / 1.181 GB, free: 5.852 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.886, allocations: 0 / 1.181 GB, free: 5.852 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.265e-05/0.886, allocations: 4 kB / 1.181 GB, free: 5.848 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003586/0.8863, allocations: 63.89 kB / 1.181 GB, free: 5.785 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.422e-05/0.8864, allocations: 7.938 kB / 1.181 GB, free: 5.777 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002485/0.8866, allocations: 35.77 kB / 1.181 GB, free: 5.742 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.643e-05/0.8867, allocations: 12 kB / 1.181 GB, free: 5.73 MB / 0.9044 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.0001467/0.8868, allocations: 133.8 kB / 1.181 GB, free: 5.59 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.003e-05/0.8869, allocations: 15.91 kB / 1.181 GB, free: 5.574 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006242/0.8875, allocations: 232.8 kB / 1.181 GB, free: 5.34 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.8875, allocations: 0 / 1.181 GB, free: 5.34 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.834e-06/0.8875, allocations: 4 kB / 1.181 GB, free: 5.336 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.8875, allocations: 0 / 1.181 GB, free: 5.336 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002778/0.8878, allocations: 237.5 kB / 1.181 GB, free: 5.055 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.8878, allocations: 4 kB / 1.181 GB, free: 5.051 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002923/0.8881, allocations: 55.83 kB / 1.181 GB, free: 4.996 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.19e-06/0.8882, allocations: 0 / 1.181 GB, free: 4.996 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.18e-05/0.8882, allocations: 11.94 kB / 1.181 GB, free: 4.984 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.8882, allocations: 0 / 1.181 GB, free: 4.984 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.8882, allocations: 0 / 1.181 GB, free: 4.984 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005601/0.8888, allocations: 295.3 kB / 1.182 GB, free: 4.68 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 9.757e-05/0.8889, allocations: 108.9 kB / 1.182 GB, free: 4.555 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.908e-05/0.8889, allocations: 7.984 kB / 1.182 GB, free: 4.547 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002705/0.8892, allocations: 15.98 kB / 1.182 GB, free: 4.531 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.008e-05/0.8892, allocations: 11.98 kB / 1.182 GB, free: 4.52 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.245e-05/0.8892, allocations: 4 kB / 1.182 GB, free: 4.516 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 8.568e-05/0.8893, allocations: 125.8 kB / 1.182 GB, free: 4.395 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8893, allocations: 0 / 1.182 GB, free: 4.395 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003664/0.8897, allocations: 63.94 kB / 1.182 GB, free: 4.332 MB / 0.9044 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.0002391/0.89, allocations: 143.1 kB / 1.182 GB, free: 4.184 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0005323/0.8905, allocations: 182 kB / 1.182 GB, free: 4.008 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.8905, allocations: 0 / 1.182 GB, free: 4.008 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.000224/0.8907, allocations: 88.52 kB / 1.182 GB, free: 3.922 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004723/0.8912, allocations: 64.98 kB / 1.182 GB, free: 3.859 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001145/0.8924, allocations: 438.1 kB / 1.183 GB, free: 3.402 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004317/0.8928, allocations: 0.7173 MB / 1.184 GB, free: 2.66 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001294/0.893, allocations: 31.42 kB / 1.184 GB, free: 2.629 MB / 0.9044 GB Notification: Performance of SimCode: time 2.8e-07/0.893, allocations: 0 / 1.184 GB, free: 2.629 MB / 0.9044 GB Notification: Performance of Templates: time 0.006872/0.8999, allocations: 2.94 MB / 1.186 GB, free: 15.7 MB / 0.92 GB make -j1 -f Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.makefile (rm -f Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe ; mkfifo Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe >> ../files/Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.sim & ./Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityProperties.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches