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.002218/0.002218, allocations: 107.9 kB / 16.36 MB, free: 6.285 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.00228/0.00228, allocations: 193.2 kB / 17.29 MB, free: 5.863 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.412/1.412, 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.593/2.593, allocations: 442.6 MB / 0.7165 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001458/0.001458, allocations: 75.03 kB / 0.8773 GB, free: 11.03 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3526/0.354, allocations: 153 MB / 1.027 GB, free: 2.109 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamDerivativeCheck): time 0.002342/0.3564, allocations: 1.27 MB / 1.028 GB, free: 0.832 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.763/1.119, allocations: 137.7 MB / 1.162 GB, free: 3.121 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.97e-05/1.12, allocations: 1.531 kB / 1.162 GB, free: 3.121 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 2.645e-05/1.12, allocations: 0 / 1.162 GB, free: 3.121 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 5.978e-05/1.12, allocations: 6.188 kB / 1.162 GB, free: 3.117 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.001748/1.122, allocations: 457.6 kB / 1.163 GB, free: 2.961 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.0001096/1.122, allocations: 43.05 kB / 1.163 GB, free: 2.945 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 5.046e-05/1.122, allocations: 8.578 kB / 1.163 GB, free: 2.941 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 5.468e-05/1.122, allocations: 17.69 kB / 1.163 GB, free: 2.938 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001049/1.122, allocations: 23.03 kB / 1.163 GB, free: 2.926 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 1.591e-05/1.122, allocations: 4.938 kB / 1.163 GB, free: 2.926 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001788/1.124, allocations: 0.8296 MB / 1.164 GB, free: 2.73 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 2.409e-05/1.124, allocations: 8.922 kB / 1.164 GB, free: 2.727 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 3.87e-05/1.124, allocations: 17.44 kB / 1.164 GB, free: 2.719 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.0007281/1.124, allocations: 447 kB / 1.164 GB, free: 2.617 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/1.125, allocations: 0 / 1.164 GB, free: 2.617 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.454e-06/1.125, allocations: 1.25 kB / 1.164 GB, free: 2.617 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 6.903e-06/1.125, allocations: 0 / 1.164 GB, free: 2.617 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.0005757/1.125, allocations: 371 kB / 1.165 GB, free: 2.246 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.656e-05/1.125, allocations: 13.72 kB / 1.165 GB, free: 2.242 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002181/1.125, allocations: 15.16 kB / 1.165 GB, free: 2.242 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001148/1.126, allocations: 169.9 kB / 1.165 GB, free: 2.039 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.31e-05/1.126, allocations: 1.656 kB / 1.165 GB, free: 2.039 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.457e-05/1.126, allocations: 11.81 kB / 1.165 GB, free: 2.031 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000158/1.126, allocations: 56.47 kB / 1.165 GB, free: 1.988 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.744e-06/1.126, allocations: 1.062 kB / 1.165 GB, free: 1.988 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.309e-05/1.126, allocations: 1.969 kB / 1.165 GB, free: 1.988 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/1.126, allocations: 1.406 kB / 1.165 GB, free: 1.988 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.299e-05/1.126, allocations: 24.19 kB / 1.165 GB, free: 1.98 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000191/1.126, allocations: 156.9 kB / 1.165 GB, free: 1.789 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000121/1.126, allocations: 56.36 kB / 1.165 GB, free: 1.75 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.075e-05/1.126, allocations: 14.7 kB / 1.165 GB, free: 1.742 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01166/1.138, allocations: 3.21 MB / 1.168 GB, free: 0.8711 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.865e-05/1.138, allocations: 33.28 kB / 1.168 GB, free: 0.832 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=7): time 2.385e-06/1.138, allocations: 4 kB / 1.168 GB, free: 0.8281 MB / 0.8731 GB Notification: Performance of matching and sorting (n=11): time 0.04038/1.178, allocations: 15 MB / 1.183 GB, free: 11.99 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.158e-05/1.178, allocations: 51.41 kB / 1.183 GB, free: 11.93 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.763e-05/1.179, allocations: 96.45 kB / 1.183 GB, free: 11.83 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 2.127e-05/1.179, allocations: 25.7 kB / 1.183 GB, free: 11.8 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 3.356e-05/1.179, allocations: 89.86 kB / 1.183 GB, free: 11.71 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 5.008e-05/1.179, allocations: 38.3 kB / 1.183 GB, free: 11.67 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.832e-05/1.179, allocations: 31.89 kB / 1.183 GB, free: 11.64 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001022/1.179, allocations: 317.5 kB / 1.183 GB, free: 11.33 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.324e-05/1.179, allocations: 20.64 kB / 1.184 GB, free: 11.32 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.501e-05/1.179, allocations: 24.64 kB / 1.184 GB, free: 11.31 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001182/1.179, allocations: 65.3 kB / 1.184 GB, free: 11.27 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.82e-07/1.179, allocations: 0 / 1.184 GB, free: 11.27 MB / 0.8887 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002245/1.179, allocations: 108.6 kB / 1.184 GB, free: 11.2 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/1.179, allocations: 5.188 kB / 1.184 GB, free: 11.2 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.96e-06/1.179, allocations: 2.781 kB / 1.184 GB, free: 11.2 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.564e-05/1.179, allocations: 0 / 1.184 GB, free: 11.2 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001163/1.179, allocations: 27.48 kB / 1.184 GB, free: 11.2 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/1.179, allocations: 0 / 1.184 GB, free: 11.2 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.166e-05/1.18, allocations: 7.906 kB / 1.184 GB, free: 11.19 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.06e-05/1.18, allocations: 2.531 kB / 1.184 GB, free: 11.19 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 9.177e-05/1.18, allocations: 124.2 kB / 1.184 GB, free: 11.06 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.488e-05/1.18, allocations: 5.062 kB / 1.184 GB, free: 11.06 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000262/1.18, allocations: 129.5 kB / 1.184 GB, free: 10.96 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/1.18, allocations: 2.5 kB / 1.184 GB, free: 10.96 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/1.18, allocations: 0 / 1.184 GB, free: 10.96 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/1.18, allocations: 4 kB / 1.184 GB, free: 10.96 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001504/1.18, allocations: 181.7 kB / 1.184 GB, free: 10.75 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/1.18, allocations: 0 / 1.184 GB, free: 10.75 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001209/1.18, allocations: 25.27 kB / 1.184 GB, free: 10.74 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.993e-06/1.18, allocations: 0 / 1.184 GB, free: 10.74 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.257e-05/1.18, allocations: 6.406 kB / 1.184 GB, free: 10.74 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/1.18, allocations: 0 / 1.184 GB, free: 10.74 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/1.18, allocations: 3.984 kB / 1.184 GB, free: 10.73 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002783/1.181, allocations: 162.9 kB / 1.184 GB, free: 10.61 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 7.606e-05/1.181, allocations: 90.98 kB / 1.184 GB, free: 10.51 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.76e-05/1.181, allocations: 6.516 kB / 1.184 GB, free: 10.5 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001413/1.181, allocations: 11.84 kB / 1.184 GB, free: 10.5 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.715e-05/1.181, allocations: 9.203 kB / 1.184 GB, free: 10.5 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.218e-05/1.181, allocations: 6.594 kB / 1.184 GB, free: 10.49 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 2.811e-05/1.181, allocations: 75.28 kB / 1.185 GB, free: 10.42 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.5e-07/1.181, allocations: 4.094 kB / 1.185 GB, free: 10.41 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.002016/1.183, allocations: 0.564 MB / 1.185 GB, free: 10.38 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.002989/1.186, allocations: 352.1 kB / 1.185 GB, free: 10.21 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.0002202/1.186, allocations: 64.7 kB / 1.185 GB, free: 10.19 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/1.186, allocations: 0 / 1.185 GB, free: 10.19 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 6.421e-05/1.186, allocations: 38.03 kB / 1.186 GB, free: 10.17 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002134/1.187, allocations: 17.89 kB / 1.186 GB, free: 10.16 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006415/1.187, allocations: 348.2 kB / 1.186 GB, free: 9.867 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002507/1.187, allocations: 0.6904 MB / 1.187 GB, free: 9.16 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 8.138e-05/1.188, allocations: 26.59 kB / 1.187 GB, free: 9.145 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.787e-05/1.188, allocations: 14.31 kB / 1.187 GB, free: 9.137 MB / 0.8887 GB Notification: Performance of SimCode: time 3.91e-07/1.188, allocations: 3.938 kB / 1.187 GB, free: 9.133 MB / 0.8887 GB Notification: Performance of Templates: time 0.03854/1.226, allocations: 24.26 MB / 1.21 GB, free: 0.8828 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 cvode -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