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.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.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.007273/0.007273, allocations: 100.8 kB / 15.87 MB, free: 5.867 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.001664/0.001664, allocations: 195.8 kB / 16.79 MB, free: 5.809 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.361/1.361, allocations: 222.9 MB / 240.5 MB, free: 4.594 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.383/2.383, allocations: 390.2 MB / 0.6649 GB, free: 0.6328 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001463, allocations: 67.89 kB / 0.8125 GB, free: 14.93 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6277/0.6292, allocations: 140.3 MB / 0.9496 GB, free: 9.223 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamDerivativeCheck): time 0.002102/0.6313, allocations: 1.329 MB / 0.9509 GB, free: 8.164 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1476/0.779, allocations: 135.7 MB / 1.083 GB, free: 8.594 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.326e-05/0.7791, allocations: 0 / 1.083 GB, free: 8.594 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 2.24e-05/0.7791, allocations: 0 / 1.083 GB, free: 8.594 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 5.933e-05/0.7792, allocations: 7.938 kB / 1.083 GB, free: 8.586 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0011/0.7803, allocations: 378.7 kB / 1.084 GB, free: 8.215 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 6.794e-05/0.7804, allocations: 43.84 kB / 1.084 GB, free: 8.172 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 3.358e-05/0.7804, allocations: 0 / 1.084 GB, free: 8.172 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 4.554e-05/0.7805, allocations: 27.91 kB / 1.084 GB, free: 8.145 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 6.968e-05/0.7806, allocations: 11.98 kB / 1.084 GB, free: 8.133 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.355e-05/0.7806, allocations: 0 / 1.084 GB, free: 8.133 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001329/0.7819, allocations: 0.8231 MB / 1.085 GB, free: 7.309 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.912e-05/0.7819, allocations: 15.92 kB / 1.085 GB, free: 7.293 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.289e-05/0.782, allocations: 15.92 kB / 1.085 GB, free: 7.277 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0003347/0.7823, allocations: 297.4 kB / 1.085 GB, free: 6.988 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.7823, allocations: 0 / 1.085 GB, free: 6.988 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.012e-06/0.7823, allocations: 0 / 1.085 GB, free: 6.988 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.238e-06/0.7824, allocations: 4 kB / 1.085 GB, free: 6.984 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.0004809/0.7828, allocations: 372.1 kB / 1.085 GB, free: 6.574 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.7829, allocations: 8.031 kB / 1.085 GB, free: 6.566 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001805/0.7831, allocations: 12.92 kB / 1.085 GB, free: 6.555 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001071/0.7832, allocations: 172.3 kB / 1.086 GB, free: 6.348 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.181e-05/0.7832, allocations: 384 / 1.086 GB, free: 6.348 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.864e-05/0.7832, allocations: 12.03 kB / 1.086 GB, free: 6.336 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001415/0.7834, allocations: 53.67 kB / 1.086 GB, free: 6.277 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.737e-06/0.7834, allocations: 4 kB / 1.086 GB, free: 6.273 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.254e-05/0.7834, allocations: 0 / 1.086 GB, free: 6.273 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.076e-05/0.7834, allocations: 4 kB / 1.086 GB, free: 6.27 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.941e-05/0.7835, allocations: 15.98 kB / 1.086 GB, free: 6.254 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001725/0.7837, allocations: 165.7 kB / 1.086 GB, free: 6.043 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001066/0.7838, allocations: 66.55 kB / 1.086 GB, free: 5.969 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.201e-05/0.7838, allocations: 20.78 kB / 1.086 GB, free: 5.945 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01001/0.7939, allocations: 3.166 MB / 1.089 GB, free: 2.684 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.353e-05/0.7939, allocations: 38.5 kB / 1.089 GB, free: 2.637 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=7): time 1.603e-06/0.7939, allocations: 0 / 1.089 GB, free: 2.637 MB / 0.8419 GB Notification: Performance of matching and sorting (n=11): time 0.03855/0.8325, allocations: 14.85 MB / 1.103 GB, free: 3.629 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.458e-05/0.8325, allocations: 55.41 kB / 1.104 GB, free: 3.562 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.99e-05/0.8326, allocations: 93.86 kB / 1.104 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.977e-05/0.8326, allocations: 29.7 kB / 1.104 GB, free: 3.426 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.174e-05/0.8327, allocations: 84.08 kB / 1.104 GB, free: 3.34 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.558e-05/0.8327, allocations: 39.39 kB / 1.104 GB, free: 3.301 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.305e-05/0.8328, allocations: 37.64 kB / 1.104 GB, free: 3.258 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001068/0.8329, allocations: 318.8 kB / 1.104 GB, free: 2.938 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.725e-05/0.833, allocations: 36.05 kB / 1.104 GB, free: 2.902 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.095e-05/0.833, allocations: 19.98 kB / 1.104 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000118/0.8331, allocations: 56.86 kB / 1.104 GB, free: 2.824 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.92e-07/0.8332, allocations: 4 kB / 1.104 GB, free: 2.82 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002191/0.8334, allocations: 105.6 kB / 1.104 GB, free: 2.711 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/0.8334, allocations: 5.875 kB / 1.104 GB, free: 2.707 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.8334, allocations: 0 / 1.104 GB, free: 2.707 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/0.8334, allocations: 0 / 1.104 GB, free: 2.707 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001178/0.8336, allocations: 31.92 kB / 1.104 GB, free: 2.676 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.256e-06/0.8336, allocations: 4 kB / 1.104 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.69e-05/0.8336, allocations: 4 kB / 1.104 GB, free: 2.668 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.288e-05/0.8336, allocations: 4.234 kB / 1.104 GB, free: 2.664 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 8.705e-05/0.8337, allocations: 117.8 kB / 1.104 GB, free: 2.539 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.217e-05/0.8338, allocations: 4 kB / 1.104 GB, free: 2.535 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002737/0.8341, allocations: 125.4 kB / 1.105 GB, free: 2.41 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.03e-06/0.8341, allocations: 3.984 kB / 1.105 GB, free: 2.406 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.8341, allocations: 0 / 1.105 GB, free: 2.406 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.8341, allocations: 3.984 kB / 1.105 GB, free: 2.402 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000145/0.8343, allocations: 185.6 kB / 1.105 GB, free: 2.172 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.8343, allocations: 0 / 1.105 GB, free: 2.172 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001207/0.8344, allocations: 27.94 kB / 1.105 GB, free: 2.145 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.8344, allocations: 4 kB / 1.105 GB, free: 2.141 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.138e-05/0.8344, allocations: 3.984 kB / 1.105 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.8344, allocations: 0 / 1.105 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.8344, allocations: 0 / 1.105 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002849/0.8347, allocations: 160.3 kB / 1.105 GB, free: 1.965 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 7.708e-05/0.8348, allocations: 93.03 kB / 1.105 GB, free: 1.855 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.024e-05/0.8348, allocations: 8 kB / 1.105 GB, free: 1.848 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001397/0.835, allocations: 11.94 kB / 1.105 GB, free: 1.836 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.097e-05/0.835, allocations: 7.984 kB / 1.105 GB, free: 1.828 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.216e-05/0.835, allocations: 12 kB / 1.105 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.421e-05/0.8351, allocations: 75.28 kB / 1.105 GB, free: 1.742 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8351, allocations: 0 / 1.105 GB, free: 1.742 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.001708/0.8368, allocations: 0.5663 MB / 1.106 GB, free: 1.176 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.002924/0.8397, allocations: 351.1 kB / 1.106 GB, free: 0.8242 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001653/0.8399, allocations: 67.91 kB / 1.106 GB, free: 0.7578 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.8399, allocations: 0 / 1.106 GB, free: 0.7578 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 6.391e-05/0.84, allocations: 35.92 kB / 1.106 GB, free: 0.7227 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001925/0.8402, allocations: 17.75 kB / 1.106 GB, free: 0.707 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006103/0.8408, allocations: 390 kB / 1.107 GB, free: 304 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002402/0.841, allocations: 0.6848 MB / 1.107 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.741e-05/0.8411, allocations: 23.42 kB / 1.107 GB, free: 15.56 MB / 0.8731 GB Notification: Performance of SimCode: time 4.11e-07/0.8411, allocations: 0 / 1.107 GB, free: 15.56 MB / 0.8731 GB Notification: Performance of Templates: time 0.023/0.8641, allocations: 14.32 MB / 1.121 GB, free: 1.246 MB / 0.8731 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches