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.001403/0.001403, allocations: 104.9 kB / 16.35 MB, free: 5.902 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.001447/0.001447, allocations: 193.9 kB / 17.29 MB, free: 5.523 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.405/1.405, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.426/2.426, allocations: 442.6 MB / 0.7165 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 65.06 kB / 0.8773 GB, free: 11.02 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2761/0.2773, allocations: 153 MB / 1.027 GB, free: 2.102 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamDerivativeCheck): time 0.002214/0.2796, allocations: 1.268 MB / 1.028 GB, free: 0.8242 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.668/0.9476, allocations: 137.7 MB / 1.162 GB, free: 3.367 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.828e-05/0.9476, allocations: 0 / 1.162 GB, free: 3.367 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 2.565e-05/0.9477, allocations: 9.031 kB / 1.162 GB, free: 3.359 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 5.078e-05/0.9478, allocations: 3.938 kB / 1.162 GB, free: 3.355 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.001221/0.949, allocations: 460.3 kB / 1.163 GB, free: 3.199 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 7.708e-05/0.9491, allocations: 43.62 kB / 1.163 GB, free: 3.184 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 3.431e-05/0.9491, allocations: 2.5 kB / 1.163 GB, free: 3.184 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 4.226e-05/0.9492, allocations: 27.09 kB / 1.163 GB, free: 3.172 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 6.9e-05/0.9492, allocations: 18.03 kB / 1.163 GB, free: 3.168 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 1.229e-05/0.9493, allocations: 1.094 kB / 1.163 GB, free: 3.168 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001398/0.9507, allocations: 0.8301 MB / 1.164 GB, free: 2.969 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 2.314e-05/0.9507, allocations: 13.11 kB / 1.164 GB, free: 2.961 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 3.458e-05/0.9507, allocations: 11.78 kB / 1.164 GB, free: 2.957 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.0005837/0.9513, allocations: 444.5 kB / 1.164 GB, free: 2.855 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.9513, allocations: 4 kB / 1.164 GB, free: 2.852 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.635e-06/0.9514, allocations: 1.125 kB / 1.164 GB, free: 2.852 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 5.681e-06/0.9514, allocations: 0 / 1.164 GB, free: 2.852 MB / 0.8731 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.0004918/0.9519, allocations: 374 kB / 1.165 GB, free: 2.477 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.9519, allocations: 9.219 kB / 1.165 GB, free: 2.477 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002057/0.9521, allocations: 15.61 kB / 1.165 GB, free: 2.473 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001015/0.9522, allocations: 165.5 kB / 1.165 GB, free: 2.273 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.099e-05/0.9522, allocations: 2.344 kB / 1.165 GB, free: 2.273 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.014e-05/0.9523, allocations: 10.67 kB / 1.165 GB, free: 2.27 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001462/0.9524, allocations: 64.64 kB / 1.165 GB, free: 2.219 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.124e-06/0.9525, allocations: 0 / 1.165 GB, free: 2.219 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.163e-05/0.9525, allocations: 1.281 kB / 1.165 GB, free: 2.219 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.9525, allocations: 0 / 1.165 GB, free: 2.219 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.31e-05/0.9525, allocations: 20.17 kB / 1.165 GB, free: 2.215 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001593/0.9527, allocations: 164.1 kB / 1.165 GB, free: 2.02 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 9.908e-05/0.9528, allocations: 48.98 kB / 1.165 GB, free: 1.988 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.032e-05/0.9529, allocations: 19.8 kB / 1.165 GB, free: 1.973 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01084/0.9637, allocations: 3.203 MB / 1.168 GB, free: 1.078 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.038e-05/0.9638, allocations: 39.83 kB / 1.168 GB, free: 1.031 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=7): time 1.923e-06/0.9638, allocations: 1.062 kB / 1.168 GB, free: 1.031 MB / 0.8731 GB Notification: Performance of matching and sorting (n=11): time 0.03906/1.003, allocations: 15 MB / 1.183 GB, free: 12.19 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.741e-05/1.003, allocations: 54.09 kB / 1.183 GB, free: 12.13 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.22e-05/1.003, allocations: 89.86 kB / 1.183 GB, free: 12.03 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.981e-05/1.003, allocations: 32.23 kB / 1.183 GB, free: 12 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 3.142e-05/1.003, allocations: 80.14 kB / 1.183 GB, free: 11.91 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 4.074e-05/1.003, allocations: 35.77 kB / 1.183 GB, free: 11.88 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.376e-05/1.003, allocations: 40.64 kB / 1.183 GB, free: 11.85 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 9.739e-05/1.003, allocations: 312.7 kB / 1.183 GB, free: 11.54 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.184e-05/1.003, allocations: 25.02 kB / 1.184 GB, free: 11.52 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.055e-05/1.003, allocations: 24.48 kB / 1.184 GB, free: 11.51 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001174/1.004, allocations: 64.17 kB / 1.184 GB, free: 11.48 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.42e-07/1.004, allocations: 0 / 1.184 GB, free: 11.48 MB / 0.8887 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002048/1.004, allocations: 109.3 kB / 1.184 GB, free: 11.41 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/1.004, allocations: 4.812 kB / 1.184 GB, free: 11.41 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/1.004, allocations: 2.875 kB / 1.184 GB, free: 11.41 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/1.004, allocations: 4 kB / 1.184 GB, free: 11.41 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001139/1.004, allocations: 27.67 kB / 1.184 GB, free: 11.4 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.555e-06/1.004, allocations: 0 / 1.184 GB, free: 11.4 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.706e-05/1.004, allocations: 4.812 kB / 1.184 GB, free: 11.39 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.799e-05/1.004, allocations: 9.375 kB / 1.184 GB, free: 11.39 MB / 0.8887 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.421e-05/1.004, allocations: 128 kB / 1.184 GB, free: 11.26 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.951e-05/1.004, allocations: 2.406 kB / 1.184 GB, free: 11.26 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002467/1.004, allocations: 128.4 kB / 1.184 GB, free: 11.16 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/1.004, allocations: 2.5 kB / 1.184 GB, free: 11.16 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/1.004, allocations: 0 / 1.184 GB, free: 11.16 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.085e-06/1.004, allocations: 0 / 1.184 GB, free: 11.16 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001289/1.005, allocations: 178.2 kB / 1.184 GB, free: 10.95 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/1.005, allocations: 0.5 kB / 1.184 GB, free: 10.95 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001178/1.005, allocations: 31.89 kB / 1.184 GB, free: 10.94 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/1.005, allocations: 0 / 1.184 GB, free: 10.94 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.076e-05/1.005, allocations: 3.812 kB / 1.184 GB, free: 10.94 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/1.005, allocations: 4 kB / 1.184 GB, free: 10.94 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/1.005, allocations: 3.984 kB / 1.184 GB, free: 10.93 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002683/1.005, allocations: 148.4 kB / 1.184 GB, free: 10.82 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 6.479e-05/1.005, allocations: 93.39 kB / 1.184 GB, free: 10.72 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.59e-05/1.005, allocations: 3.031 kB / 1.184 GB, free: 10.72 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001438/1.005, allocations: 15.73 kB / 1.184 GB, free: 10.71 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.655e-05/1.005, allocations: 13.73 kB / 1.184 GB, free: 10.7 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.122e-05/1.005, allocations: 5.594 kB / 1.184 GB, free: 10.7 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 2.992e-05/1.005, allocations: 75.28 kB / 1.185 GB, free: 10.62 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.3e-07/1.005, allocations: 0 / 1.185 GB, free: 10.62 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001677/1.007, allocations: 0.5634 MB / 1.185 GB, free: 10.59 MB / 0.8887 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.002693/1.01, allocations: 356.5 kB / 1.185 GB, free: 10.42 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.0001699/1.01, allocations: 64.45 kB / 1.185 GB, free: 10.39 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/1.01, allocations: 0 / 1.185 GB, free: 10.39 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 5.963e-05/1.01, allocations: 38.56 kB / 1.186 GB, free: 10.38 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001809/1.01, allocations: 15.78 kB / 1.186 GB, free: 10.37 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005695/1.011, allocations: 345 kB / 1.186 GB, free: 10.05 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002168/1.011, allocations: 0.6922 MB / 1.187 GB, free: 9.336 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 7.646e-05/1.011, allocations: 28.52 kB / 1.187 GB, free: 9.309 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.079e-05/1.011, allocations: 19.44 kB / 1.187 GB, free: 9.289 MB / 0.8887 GB Notification: Performance of SimCode: time 1.392e-06/1.011, allocations: 3.938 kB / 1.187 GB, free: 9.285 MB / 0.8887 GB Notification: Performance of Templates: time 0.03397/1.045, allocations: 24.26 MB / 1.21 GB, free: 0.9961 MB / 0.9044 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 -s gbode -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