Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.0009734/0.0009733, allocations: 92.16 kB / 16.02 MB, free: 80 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.001056/0.001056, allocations: 173 kB / 16.92 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.377/1.377, allocations: 223.3 MB / 241 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.786/2.786, allocations: 462.6 MB / 0.737 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000461/0.0004611, allocations: 14.5 kB / 0.9034 GB, free: 36.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2994/0.2999, allocations: 159.6 MB / 1.059 GB, free: 4.973 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamDerivativeCheck): time 0.001364/0.3013, allocations: 0.9899 MB / 1.06 GB, free: 3.973 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.137/0.4383, allocations: 134.2 MB / 1.191 GB, free: 13.23 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.691e-05/0.4384, allocations: 0 / 1.191 GB, free: 13.23 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 1.881e-05/0.4384, allocations: 0 / 1.191 GB, free: 13.23 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 4.626e-05/0.4385, allocations: 4 kB / 1.191 GB, free: 13.23 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.00114/0.4396, allocations: 366.8 kB / 1.192 GB, free: 12.87 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 6.702e-05/0.4397, allocations: 35.86 kB / 1.192 GB, free: 12.83 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 4.067e-05/0.4398, allocations: 7.984 kB / 1.192 GB, free: 12.82 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 4.933e-05/0.4398, allocations: 27.92 kB / 1.192 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 7.103e-05/0.4399, allocations: 19.97 kB / 1.192 GB, free: 12.78 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.021e-05/0.4399, allocations: 0 / 1.192 GB, free: 12.78 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001493/0.4414, allocations: 0.8153 MB / 1.193 GB, free: 11.96 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 1.79e-05/0.4414, allocations: 11.94 kB / 1.193 GB, free: 11.95 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 4.182e-05/0.4415, allocations: 45.62 kB / 1.193 GB, free: 11.9 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.00038/0.4419, allocations: 287.7 kB / 1.193 GB, free: 11.62 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.4419, allocations: 7.938 kB / 1.193 GB, free: 11.61 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.653e-06/0.4419, allocations: 0 / 1.193 GB, free: 11.61 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.719e-06/0.4419, allocations: 0 / 1.193 GB, free: 11.61 MB / 0.9512 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.0004812/0.4424, allocations: 359.5 kB / 1.193 GB, free: 11.21 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.4424, allocations: 15.97 kB / 1.193 GB, free: 11.2 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001713/0.4426, allocations: 8.938 kB / 1.193 GB, free: 11.19 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001023/0.4427, allocations: 176.2 kB / 1.193 GB, free: 10.98 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.387e-05/0.4428, allocations: 8.375 kB / 1.193 GB, free: 10.97 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.512e-05/0.4428, allocations: 8.125 kB / 1.193 GB, free: 10.96 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001326/0.4429, allocations: 53.67 kB / 1.194 GB, free: 10.9 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.422e-06/0.4429, allocations: 0 / 1.194 GB, free: 10.9 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.188e-05/0.4429, allocations: 0 / 1.194 GB, free: 10.9 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.523e-06/0.443, allocations: 0 / 1.194 GB, free: 10.9 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.122e-05/0.443, allocations: 19.98 kB / 1.194 GB, free: 10.88 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001627/0.4432, allocations: 169.7 kB / 1.194 GB, free: 10.67 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001031/0.4433, allocations: 54.48 kB / 1.194 GB, free: 10.61 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.525e-05/0.4434, allocations: 20.8 kB / 1.194 GB, free: 10.58 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01107/0.4544, allocations: 3.202 MB / 1.197 GB, free: 7.285 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.34e-05/0.4545, allocations: 38.5 kB / 1.197 GB, free: 7.238 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 1.963e-06/0.4545, allocations: 4 kB / 1.197 GB, free: 7.234 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11): time 0.03925/0.4938, allocations: 14.25 MB / 1.211 GB, free: 8.836 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.475e-05/0.4938, allocations: 51.41 kB / 1.211 GB, free: 8.773 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.524e-05/0.4939, allocations: 89.86 kB / 1.211 GB, free: 8.676 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.033e-05/0.4939, allocations: 37.64 kB / 1.211 GB, free: 8.633 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 2.848e-05/0.494, allocations: 80.14 kB / 1.211 GB, free: 8.551 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.103e-05/0.494, allocations: 35.45 kB / 1.211 GB, free: 8.516 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.045e-05/0.4941, allocations: 21.7 kB / 1.211 GB, free: 8.488 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 9.651e-05/0.4942, allocations: 318.8 kB / 1.211 GB, free: 8.168 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.523e-05/0.4942, allocations: 28.05 kB / 1.211 GB, free: 8.141 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.344e-05/0.4943, allocations: 27.98 kB / 1.212 GB, free: 8.113 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001147/0.4944, allocations: 55.73 kB / 1.212 GB, free: 8.059 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.42e-07/0.4944, allocations: 0 / 1.212 GB, free: 8.059 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002117/0.4946, allocations: 113.6 kB / 1.212 GB, free: 7.941 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.4946, allocations: 4 kB / 1.212 GB, free: 7.938 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.4946, allocations: 0 / 1.212 GB, free: 7.938 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.422e-05/0.4947, allocations: 0 / 1.212 GB, free: 7.938 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001159/0.4948, allocations: 27.92 kB / 1.212 GB, free: 7.91 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.4948, allocations: 0 / 1.212 GB, free: 7.91 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.924e-05/0.4948, allocations: 12 kB / 1.212 GB, free: 7.898 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.057e-05/0.4949, allocations: 7.938 kB / 1.212 GB, free: 7.891 MB / 0.9669 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 7.739e-05/0.4949, allocations: 113.8 kB / 1.212 GB, free: 7.77 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.944e-05/0.495, allocations: 4 kB / 1.212 GB, free: 7.766 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002679/0.4953, allocations: 137.4 kB / 1.212 GB, free: 7.625 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.205e-06/0.4953, allocations: 0 / 1.212 GB, free: 7.625 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.4953, allocations: 0 / 1.212 GB, free: 7.625 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.4953, allocations: 7.969 kB / 1.212 GB, free: 7.617 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001366/0.4954, allocations: 177.6 kB / 1.212 GB, free: 7.395 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-06/0.4954, allocations: 0 / 1.212 GB, free: 7.395 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001189/0.4956, allocations: 23.98 kB / 1.212 GB, free: 7.371 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.4956, allocations: 0 / 1.212 GB, free: 7.371 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.515e-05/0.4956, allocations: 11.98 kB / 1.212 GB, free: 7.359 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.4956, allocations: 0 / 1.212 GB, free: 7.359 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.4956, allocations: 0 / 1.212 GB, free: 7.359 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002916/0.4959, allocations: 153 kB / 1.212 GB, free: 7.191 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.42e-05/0.496, allocations: 89.05 kB / 1.212 GB, free: 7.086 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.979e-05/0.496, allocations: 3.984 kB / 1.212 GB, free: 7.082 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001566/0.4962, allocations: 19.94 kB / 1.212 GB, free: 7.062 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.181e-05/0.4962, allocations: 7.984 kB / 1.212 GB, free: 7.055 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.319e-05/0.4962, allocations: 12 kB / 1.212 GB, free: 7.043 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.794e-05/0.4963, allocations: 75.28 kB / 1.213 GB, free: 6.969 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4963, allocations: 0 / 1.213 GB, free: 6.969 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.001694/0.498, allocations: 0.5624 MB / 1.213 GB, free: 6.406 MB / 0.9669 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.00297/0.5009, allocations: 355 kB / 1.213 GB, free: 6.051 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001711/0.5011, allocations: 63.91 kB / 1.213 GB, free: 5.988 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.5011, allocations: 4 kB / 1.213 GB, free: 5.984 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 6.245e-05/0.5012, allocations: 35.92 kB / 1.214 GB, free: 5.949 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001917/0.5014, allocations: 15.94 kB / 1.214 GB, free: 5.934 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005797/0.502, allocations: 440.1 kB / 1.214 GB, free: 5.473 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000201/0.5022, allocations: 0.6848 MB / 1.215 GB, free: 4.762 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.594e-05/0.5022, allocations: 15.44 kB / 1.215 GB, free: 4.746 MB / 0.9669 GB Notification: Performance of SimCode: time 3.01e-07/0.5022, allocations: 0 / 1.215 GB, free: 4.746 MB / 0.9669 GB Notification: Performance of Templates: time 0.02095/0.5232, allocations: 14.32 MB / 1.229 GB, free: 6.434 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Media.Examples.SteamDerivativeCheck.makefile (rm -f Buildings_latest_Buildings.Media.Examples.SteamDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.SteamDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.SteamDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.SteamDerivativeCheck.sim & ./Buildings_latest_Buildings.Media.Examples.SteamDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Examples.SteamDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.SteamDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_SteamDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.SteamDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches