Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck.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.Examples.SteamDerivativeCheck,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hVapSym.|der.hVapCod.|der.cpSym.|der.cpCod.|der.cvSym.|der.cvCod.",fileNamePrefix="Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck") translateModel(Buildings.Media.Examples.SteamDerivativeCheck,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hVapSym.|der.hVapCod.|der.cpSym.|der.cpCod.|der.cvSym.|der.cvCod.",fileNamePrefix="Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001148/0.001148, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.009476/0.009476, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.372/1.372, allocations: 223.3 MB / 240.3 MB, free: 5.324 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.428/2.428, allocations: 390.9 MB / 0.6663 GB, free: 2.32 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003854/0.0003854, allocations: 12 kB / 0.8159 GB, free: 13.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7412/0.7416, allocations: 142.4 MB / 0.955 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamDerivativeCheck): time 0.00125/0.7429, allocations: 0.9938 MB / 0.956 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1562/0.8991, allocations: 134.3 MB / 1.087 GB, free: 7.559 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.5e-05/0.8992, allocations: 7.938 kB / 1.087 GB, free: 7.551 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 1.831e-05/0.8992, allocations: 0 / 1.087 GB, free: 7.551 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 5.71e-05/0.8993, allocations: 7.938 kB / 1.087 GB, free: 7.543 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001248/0.9006, allocations: 374.6 kB / 1.087 GB, free: 7.176 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 7.79e-05/0.9007, allocations: 39.91 kB / 1.088 GB, free: 7.137 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 4.131e-05/0.9007, allocations: 0 / 1.088 GB, free: 7.137 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 4.986e-05/0.9008, allocations: 31.91 kB / 1.088 GB, free: 7.105 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 7.897e-05/0.9009, allocations: 23.91 kB / 1.088 GB, free: 7.082 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.119e-05/0.9009, allocations: 0 / 1.088 GB, free: 7.082 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001725/0.9026, allocations: 0.8153 MB / 1.088 GB, free: 6.266 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.005e-05/0.9026, allocations: 11.98 kB / 1.088 GB, free: 6.254 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 5.333e-05/0.9027, allocations: 45.62 kB / 1.088 GB, free: 6.203 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0007529/0.9035, allocations: 441 kB / 1.089 GB, free: 5.773 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 6.002e-06/0.9035, allocations: 4 kB / 1.089 GB, free: 5.77 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.803e-06/0.9035, allocations: 0 / 1.089 GB, free: 5.77 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 9.428e-06/0.9035, allocations: 0 / 1.089 GB, free: 5.77 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005998/0.9041, allocations: 359.4 kB / 1.089 GB, free: 5.371 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.749e-05/0.9042, allocations: 16.03 kB / 1.089 GB, free: 5.355 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002294/0.9044, allocations: 16.92 kB / 1.089 GB, free: 5.34 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001342/0.9045, allocations: 164.3 kB / 1.089 GB, free: 5.141 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.593e-05/0.9046, allocations: 384 / 1.089 GB, free: 5.141 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.225e-05/0.9046, allocations: 8.125 kB / 1.089 GB, free: 5.133 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001768/0.9048, allocations: 53.67 kB / 1.089 GB, free: 5.074 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.9048, allocations: 0 / 1.089 GB, free: 5.074 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.431e-05/0.9048, allocations: 7.938 kB / 1.089 GB, free: 5.066 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.9048, allocations: 0 / 1.089 GB, free: 5.066 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.611e-05/0.9049, allocations: 19.98 kB / 1.089 GB, free: 5.047 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002128/0.9051, allocations: 169.6 kB / 1.09 GB, free: 4.832 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001247/0.9053, allocations: 54.5 kB / 1.09 GB, free: 4.77 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.499e-05/0.9053, allocations: 20.8 kB / 1.09 GB, free: 4.746 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01127/0.9166, allocations: 3.21 MB / 1.093 GB, free: 1.441 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.138e-05/0.9167, allocations: 30.56 kB / 1.093 GB, free: 1.402 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=7): time 1.804e-06/0.9167, allocations: 0 / 1.093 GB, free: 1.402 MB / 0.8419 GB Notification: Performance of matching and sorting (n=11): time 0.04016/0.9568, allocations: 14.25 MB / 1.107 GB, free: 2.996 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.638e-05/0.9569, allocations: 55.41 kB / 1.107 GB, free: 2.93 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.685e-05/0.957, allocations: 89.86 kB / 1.107 GB, free: 2.832 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.062e-05/0.957, allocations: 29.7 kB / 1.107 GB, free: 2.797 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.436e-05/0.957, allocations: 80.14 kB / 1.107 GB, free: 2.715 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.428e-05/0.9571, allocations: 43.39 kB / 1.107 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.285e-05/0.9571, allocations: 25.64 kB / 1.107 GB, free: 2.641 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001206/0.9573, allocations: 318.8 kB / 1.107 GB, free: 2.32 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.783e-05/0.9573, allocations: 32.05 kB / 1.107 GB, free: 2.289 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.031e-05/0.9574, allocations: 23.98 kB / 1.107 GB, free: 2.266 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00012/0.9575, allocations: 60.23 kB / 1.107 GB, free: 2.207 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.91e-07/0.9575, allocations: 0 / 1.107 GB, free: 2.207 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002125/0.9577, allocations: 105.6 kB / 1.108 GB, free: 2.098 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.065e-05/0.9578, allocations: 8 kB / 1.108 GB, free: 2.09 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.9578, allocations: 0 / 1.108 GB, free: 2.09 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.336e-05/0.9578, allocations: 0 / 1.108 GB, free: 2.09 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001167/0.9579, allocations: 31.92 kB / 1.108 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.341e-06/0.9579, allocations: 0 / 1.108 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.512e-05/0.958, allocations: 4 kB / 1.108 GB, free: 2.055 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.106e-05/0.958, allocations: 4 kB / 1.108 GB, free: 2.051 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (14): * Single equations (assignments): 14 * 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 9.065e-05/0.9581, allocations: 121.8 kB / 1.108 GB, free: 1.922 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.019e-05/0.9581, allocations: 4 kB / 1.108 GB, free: 1.918 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002718/0.9584, allocations: 121.4 kB / 1.108 GB, free: 1.797 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.9584, allocations: 4 kB / 1.108 GB, free: 1.793 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.9584, allocations: 0 / 1.108 GB, free: 1.793 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.9584, allocations: 3.984 kB / 1.108 GB, free: 1.789 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001528/0.9586, allocations: 181.6 kB / 1.108 GB, free: 1.562 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.9586, allocations: 0 / 1.108 GB, free: 1.562 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001213/0.9587, allocations: 27.98 kB / 1.108 GB, free: 1.535 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.94e-06/0.9587, allocations: 3.984 kB / 1.108 GB, free: 1.531 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.016e-05/0.9587, allocations: 7.938 kB / 1.108 GB, free: 1.523 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.9588, allocations: 0 / 1.108 GB, free: 1.523 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.9588, allocations: 0 / 1.108 GB, free: 1.523 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002836/0.959, allocations: 160.9 kB / 1.108 GB, free: 1.348 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 7.613e-05/0.9591, allocations: 92.98 kB / 1.108 GB, free: 1.238 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.908e-05/0.9592, allocations: 4 kB / 1.108 GB, free: 1.234 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001399/0.9593, allocations: 12 kB / 1.108 GB, free: 1.223 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.2e-05/0.9593, allocations: 7.984 kB / 1.108 GB, free: 1.215 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.232e-05/0.9594, allocations: 12 kB / 1.108 GB, free: 1.203 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.259e-05/0.9594, allocations: 79.27 kB / 1.108 GB, free: 1.125 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9594, allocations: 0 / 1.108 GB, free: 1.125 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.00153/0.9609, allocations: 0.5624 MB / 1.109 GB, free: 0.5625 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (hVapSym,cpSym,cvSym) * 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 (11): * Single equations (assignments): 11 * 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.002702/0.9636, allocations: 347.1 kB / 1.109 GB, free: 220 kB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001638/0.9638, allocations: 71.86 kB / 1.109 GB, free: 148 kB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.9638, allocations: 0 / 1.109 GB, free: 148 kB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 5.975e-05/0.9639, allocations: 35.92 kB / 1.109 GB, free: 112 kB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001823/0.9641, allocations: 15.94 kB / 1.109 GB, free: 96 kB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006876/0.9648, allocations: 407 kB / 1.11 GB, free: 15.67 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002641/0.965, allocations: 0.6848 MB / 1.111 GB, free: 14.96 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 9.677e-05/0.9652, allocations: 28.53 kB / 1.111 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.792e-05/0.9652, allocations: 11.44 kB / 1.111 GB, free: 14.92 MB / 0.8731 GB Notification: Performance of SimCode: time 7.92e-07/0.9652, allocations: 0 / 1.111 GB, free: 14.92 MB / 0.8731 GB Notification: Performance of Templates: time 0.04231/1.008, allocations: 24.21 MB / 1.134 GB, free: 6.688 MB / 0.8887 GB make -j1 -f Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck.makefile (rm -f Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck.sim & ./Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_SteamDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches