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.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.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.0009389/0.0009388, allocations: 97.56 kB / 15.36 MB, free: 0.7305 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.00112/0.00112, allocations: 172.8 kB / 16.27 MB, free: 6.664 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.424/1.424, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.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.461/2.461, allocations: 390.9 MB / 0.6663 GB, free: 2.371 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003275/0.0003275, allocations: 8 kB / 0.816 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6801/0.6804, allocations: 142.4 MB / 0.955 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion): time 0.003418/0.6839, allocations: 2.996 MB / 0.958 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 9.578e-05/0.684, allocations: 55.72 kB / 0.958 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.658e-05/0.684, allocations: 0 / 0.958 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001163/0.6841, allocations: 1.5 kB / 0.958 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.959e-05/0.6842, allocations: 17.58 kB / 0.958 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005041/0.6847, allocations: 176.5 kB / 0.9582 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.43e-05/0.6848, allocations: 60.7 kB / 0.9583 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.867e-05/0.6849, allocations: 1.781 kB / 0.9583 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.39e-05/0.6849, allocations: 16.91 kB / 0.9583 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.461e-05/0.685, allocations: 5.406 kB / 0.9583 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.094e-05/0.685, allocations: 2.031 kB / 0.9583 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003333/0.6854, allocations: 174.9 kB / 0.9584 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.175e-05/0.6854, allocations: 10.73 kB / 0.9585 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.426e-05/0.6855, allocations: 34.23 kB / 0.9585 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002648/0.6858, allocations: 132.7 kB / 0.9586 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.6858, allocations: 7.938 kB / 0.9586 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.505e-06/0.6858, allocations: 0 / 0.9586 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.569e-06/0.6858, allocations: 1.281 kB / 0.9586 GB, free: 4.848 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.0003432/0.6861, allocations: 342.7 kB / 0.9589 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.6862, allocations: 9.688 kB / 0.959 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.373e-05/0.6862, allocations: 2.094 kB / 0.959 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.289e-05/0.6863, allocations: 169.5 kB / 0.9591 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.54e-05/0.6864, allocations: 27.67 kB / 0.9591 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.277e-06/0.6864, allocations: 5.5 kB / 0.9592 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001242/0.6865, allocations: 47.28 kB / 0.9592 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.769e-06/0.6865, allocations: 0 / 0.9592 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.236e-05/0.6865, allocations: 1.125 kB / 0.9592 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.955e-05/0.6866, allocations: 1 kB / 0.9592 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.557e-05/0.6866, allocations: 16.61 kB / 0.9592 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005116/0.6871, allocations: 0.5897 MB / 0.9598 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.296e-05/0.6872, allocations: 19.95 kB / 0.9598 GB, free: 3.477 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.292e-05/0.6872, allocations: 6.203 kB / 0.9598 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001662/0.6874, allocations: 345.7 kB / 0.9601 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.703e-05/0.6874, allocations: 35.55 kB / 0.9602 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 1.001e-06/0.6874, allocations: 0 / 0.9602 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0001452/0.6876, allocations: 39.95 kB / 0.9602 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.344e-05/0.6876, allocations: 52.47 kB / 0.9603 GB, free: 2.93 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.481e-05/0.6877, allocations: 115.3 kB / 0.9604 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.157e-05/0.6877, allocations: 26.92 kB / 0.9604 GB, free: 2.781 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.917e-05/0.6877, allocations: 81.2 kB / 0.9605 GB, free: 2.699 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 6.713e-06/0.6877, allocations: 7.906 kB / 0.9605 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.879e-05/0.6877, allocations: 10.88 kB / 0.9605 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.578e-05/0.6878, allocations: 316 kB / 0.9608 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.468e-05/0.6878, allocations: 6.203 kB / 0.9608 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.024e-05/0.6878, allocations: 18.41 kB / 0.9608 GB, free: 2.336 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.17e-05/0.6879, allocations: 23.53 kB / 0.9608 GB, free: 2.312 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.6879, allocations: 0 / 0.9608 GB, free: 2.312 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.158e-05/0.6879, allocations: 46.91 kB / 0.9609 GB, free: 2.273 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.408e-05/0.688, allocations: 7.688 kB / 0.9609 GB, free: 2.273 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.528e-06/0.688, allocations: 0 / 0.9609 GB, free: 2.273 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.25e-05/0.688, allocations: 5.219 kB / 0.9609 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.179e-05/0.688, allocations: 8.203 kB / 0.9609 GB, free: 2.266 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.012e-06/0.6881, allocations: 5.531 kB / 0.9609 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.781e-05/0.6881, allocations: 1.469 kB / 0.9609 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.975e-06/0.6881, allocations: 1.469 kB / 0.9609 GB, free: 2.262 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 5.028e-05/0.6881, allocations: 115.5 kB / 0.961 GB, free: 2.141 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.523e-05/0.6882, allocations: 5.406 kB / 0.961 GB, free: 2.137 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.401e-05/0.6883, allocations: 116.6 kB / 0.9611 GB, free: 2.016 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-05/0.6883, allocations: 184.2 kB / 0.9613 GB, free: 1.828 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.309e-05/0.6883, allocations: 181.6 kB / 0.9615 GB, free: 1.645 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.241e-05/0.6883, allocations: 182 kB / 0.9617 GB, free: 1.461 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001292/0.6885, allocations: 403.1 kB / 0.9621 GB, free: 1.012 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.417e-05/0.6885, allocations: 106.7 kB / 0.9622 GB, free: 0.9023 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.52e-05/0.6885, allocations: 112.9 kB / 0.9623 GB, free: 0.7852 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.248e-05/0.6886, allocations: 182.2 kB / 0.9624 GB, free: 0.6016 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.441e-05/0.6886, allocations: 182.4 kB / 0.9626 GB, free: 428 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.097e-05/0.6886, allocations: 176.3 kB / 0.9628 GB, free: 244 kB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.09e-05/0.6886, allocations: 184.1 kB / 0.963 GB, free: 52 kB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001409/0.6888, allocations: 313.5 kB / 0.9633 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 6.91e-05/0.6889, allocations: 183.9 kB / 0.9634 GB, free: 15.52 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.2e-05/0.6889, allocations: 184.2 kB / 0.9636 GB, free: 15.34 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001517/0.6891, allocations: 112.7 kB / 0.9637 GB, free: 15.22 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.717e-05/0.6892, allocations: 178.1 kB / 0.9639 GB, free: 15.04 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.181e-05/0.6892, allocations: 105.3 kB / 0.964 GB, free: 14.93 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.704e-05/0.6893, allocations: 93.2 kB / 0.9641 GB, free: 14.85 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6893, allocations: 0 / 0.9641 GB, free: 14.85 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002768/0.6895, allocations: 31.72 kB / 0.9641 GB, free: 14.84 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.0002878/0.6898, allocations: 244.9 kB / 0.9643 GB, free: 14.64 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 7.551e-05/0.6899, allocations: 9.281 kB / 0.9643 GB, free: 14.64 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.6899, allocations: 1.375 kB / 0.9643 GB, free: 14.64 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 1.162e-06/0.6899, allocations: 0 / 0.9643 GB, free: 14.64 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005372/0.6905, allocations: 0.5288 MB / 0.9649 GB, free: 14.11 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002569/0.6907, allocations: 189.7 kB / 0.965 GB, free: 13.91 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000239/0.691, allocations: 0.6758 MB / 0.9657 GB, free: 13.21 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 4.116e-05/0.691, allocations: 4.125 kB / 0.9657 GB, free: 13.21 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.231e-05/0.6911, allocations: 12.81 kB / 0.9657 GB, free: 13.2 MB / 0.7325 GB Notification: Performance of SimCode: time 2.6e-07/0.6911, allocations: 3.938 kB / 0.9657 GB, free: 13.2 MB / 0.7325 GB Notification: Performance of Templates: time 0.003706/0.6948, allocations: 1.165 MB / 0.9669 GB, free: 12.61 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/jenkins/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