Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.TemperatureDependentDensityTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion") translateModel(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001046/0.001046, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001581/0.001582, allocations: 185.3 kB / 16.92 MB, free: 6.727 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.404/1.404, allocations: 223.3 MB / 241 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.517/2.517, allocations: 390.9 MB / 0.667 GB, free: 2.414 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003427/0.0003427, allocations: 11.98 kB / 0.8166 GB, free: 13.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6308/0.6311, allocations: 142.4 MB / 0.9557 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion): time 0.002938/0.6341, allocations: 2.994 MB / 0.9586 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 7.307e-05/0.6342, allocations: 46.72 kB / 0.9587 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.402e-05/0.6342, allocations: 1.594 kB / 0.9587 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 8.06e-05/0.6343, allocations: 3.984 kB / 0.9587 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.287e-05/0.6344, allocations: 13.92 kB / 0.9587 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004082/0.6348, allocations: 177 kB / 0.9589 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.048e-05/0.6349, allocations: 60.84 kB / 0.9589 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.016e-05/0.6349, allocations: 1.375 kB / 0.9589 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.615e-05/0.635, allocations: 21.36 kB / 0.9589 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.967e-05/0.635, allocations: 10.61 kB / 0.959 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.086e-05/0.635, allocations: 1.406 kB / 0.959 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002704/0.6353, allocations: 166.8 kB / 0.9591 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.818e-05/0.6354, allocations: 19.77 kB / 0.9591 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.045e-05/0.6354, allocations: 34.06 kB / 0.9592 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001548/0.6356, allocations: 87.52 kB / 0.9592 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.6356, allocations: 1.375 kB / 0.9592 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.193e-06/0.6356, allocations: 0 / 0.9592 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.075e-06/0.6356, allocations: 0 / 0.9592 GB, free: 4.91 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.00027/0.6359, allocations: 343.7 kB / 0.9596 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.308e-05/0.6359, allocations: 9.625 kB / 0.9596 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.201e-05/0.6359, allocations: 2.312 kB / 0.9596 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.307e-05/0.636, allocations: 169.8 kB / 0.9597 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.738e-05/0.6361, allocations: 31.62 kB / 0.9598 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.855e-06/0.6361, allocations: 1.75 kB / 0.9598 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000105/0.6362, allocations: 45.88 kB / 0.9598 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.153e-06/0.6362, allocations: 0 / 0.9598 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.03e-05/0.6362, allocations: 1.375 kB / 0.9598 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.66e-05/0.6362, allocations: 1.375 kB / 0.9598 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.365e-05/0.6363, allocations: 21.55 kB / 0.9598 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004748/0.6368, allocations: 0.5807 MB / 0.9604 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.072e-05/0.6368, allocations: 16.05 kB / 0.9604 GB, free: 3.547 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.341e-05/0.6368, allocations: 10.27 kB / 0.9604 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001472/0.637, allocations: 341.5 kB / 0.9608 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.637e-05/0.637, allocations: 31.38 kB / 0.9608 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 1.051e-06/0.637, allocations: 1.125 kB / 0.9608 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0001203/0.6371, allocations: 51.28 kB / 0.9608 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.181e-05/0.6372, allocations: 51.41 kB / 0.9609 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.355e-05/0.6372, allocations: 100.5 kB / 0.961 GB, free: 2.891 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.588e-06/0.6372, allocations: 29.69 kB / 0.961 GB, free: 2.855 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.645e-05/0.6373, allocations: 85.48 kB / 0.9611 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.73e-06/0.6373, allocations: 5.281 kB / 0.9611 GB, free: 2.766 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.844e-05/0.6373, allocations: 11.19 kB / 0.9611 GB, free: 2.75 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.63e-05/0.6374, allocations: 314.9 kB / 0.9614 GB, free: 2.434 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.385e-05/0.6374, allocations: 10.81 kB / 0.9614 GB, free: 2.426 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.821e-05/0.6374, allocations: 17.3 kB / 0.9614 GB, free: 2.406 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.85e-05/0.6374, allocations: 23.88 kB / 0.9615 GB, free: 2.383 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.6374, allocations: 5.531 kB / 0.9615 GB, free: 2.379 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.256e-05/0.6375, allocations: 49.47 kB / 0.9615 GB, free: 2.336 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.6375, allocations: 6.188 kB / 0.9615 GB, free: 2.336 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.028e-06/0.6375, allocations: 4 kB / 0.9615 GB, free: 2.332 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.119e-05/0.6375, allocations: 1.312 kB / 0.9615 GB, free: 2.332 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.115e-05/0.6376, allocations: 8.938 kB / 0.9615 GB, free: 2.328 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.6376, allocations: 1.844 kB / 0.9615 GB, free: 2.328 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.695e-05/0.6376, allocations: 0 / 0.9615 GB, free: 2.328 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.005e-05/0.6376, allocations: 5.266 kB / 0.9615 GB, free: 2.324 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (3): * Single equations (assignments): 3 * 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 4.473e-05/0.6377, allocations: 112.6 kB / 0.9617 GB, free: 2.207 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.544e-05/0.6377, allocations: 9.203 kB / 0.9617 GB, free: 2.199 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.694e-05/0.6378, allocations: 123.7 kB / 0.9618 GB, free: 2.07 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.277e-05/0.6378, allocations: 181.5 kB / 0.962 GB, free: 1.887 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.27e-05/0.6379, allocations: 177.2 kB / 0.9621 GB, free: 1.707 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.108e-05/0.6379, allocations: 181.3 kB / 0.9623 GB, free: 1.523 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001308/0.638, allocations: 407.8 kB / 0.9627 GB, free: 1.07 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-05/0.638, allocations: 110.5 kB / 0.9628 GB, free: 0.957 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.342e-05/0.6381, allocations: 105 kB / 0.9629 GB, free: 0.8477 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.042e-05/0.6381, allocations: 177.5 kB / 0.9631 GB, free: 0.668 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.547e-05/0.6381, allocations: 185.5 kB / 0.9632 GB, free: 492 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.211e-05/0.6381, allocations: 181.6 kB / 0.9634 GB, free: 304 kB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.183e-05/0.6382, allocations: 189.5 kB / 0.9636 GB, free: 108 kB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001288/0.6383, allocations: 299.6 kB / 0.9639 GB, free: 15.79 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 7.939e-05/0.6384, allocations: 191.6 kB / 0.9641 GB, free: 15.58 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.499e-05/0.6385, allocations: 177.7 kB / 0.9642 GB, free: 15.4 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001528/0.6386, allocations: 112.3 kB / 0.9643 GB, free: 15.29 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.768e-05/0.6387, allocations: 181.4 kB / 0.9645 GB, free: 15.11 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.699e-05/0.6387, allocations: 102.3 kB / 0.9646 GB, free: 15 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.296e-05/0.6388, allocations: 88.36 kB / 0.9647 GB, free: 14.92 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.443e-06/0.6388, allocations: 0 / 0.9647 GB, free: 14.92 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002769/0.6391, allocations: 36.53 kB / 0.9647 GB, free: 14.91 MB / 0.7325 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 (0): * Single equations (assignments): 0 * 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.0002655/0.6393, allocations: 241.7 kB / 0.965 GB, free: 14.71 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 6.354e-05/0.6394, allocations: 10.86 kB / 0.965 GB, free: 14.71 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.6394, allocations: 0 / 0.965 GB, free: 14.71 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 1.162e-06/0.6394, allocations: 0 / 0.965 GB, free: 14.71 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004425/0.6399, allocations: 0.5263 MB / 0.9655 GB, free: 14.18 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002473/0.6401, allocations: 212.1 kB / 0.9657 GB, free: 13.96 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002276/0.6404, allocations: 0.6721 MB / 0.9663 GB, free: 13.26 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.208e-05/0.6404, allocations: 17.67 kB / 0.9664 GB, free: 13.25 MB / 0.7325 GB Notification: Performance of SimCode: time 2.3e-07/0.6404, allocations: 0 / 0.9664 GB, free: 13.25 MB / 0.7325 GB Notification: Performance of Templates: time 0.002594/0.643, allocations: 1.178 MB / 0.9675 GB, free: 12.64 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.makefile (rm -f Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe >> ../files/Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.sim & ./Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches