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.00111/0.00111, allocations: 99.08 kB / 15.05 MB, free: 1.105 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.001302/0.001302, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.332/1.332, allocations: 223.2 MB / 239.9 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.495/2.495, allocations: 436.5 MB / 0.7104 GB, free: 7.781 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003441/0.0003441, allocations: 8 kB / 0.8707 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6192/0.6196, allocations: 153.7 MB / 1.021 GB, free: 1.129 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamDerivativeCheck): time 0.001131/0.6207, allocations: 0.9643 MB / 1.022 GB, free: 160 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.1254/0.7462, allocations: 116.4 MB / 1.135 GB, free: 11.5 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.476e-05/0.7462, allocations: 0 / 1.135 GB, free: 11.5 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 1.765e-05/0.7463, allocations: 4 kB / 1.135 GB, free: 11.49 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 4.544e-05/0.7463, allocations: 7.969 kB / 1.135 GB, free: 11.48 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009099/0.7472, allocations: 354.9 kB / 1.136 GB, free: 11.14 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 5.687e-05/0.7473, allocations: 31.94 kB / 1.136 GB, free: 11.11 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 4.116e-05/0.7474, allocations: 4 kB / 1.136 GB, free: 11.1 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 4.289e-05/0.7474, allocations: 23.92 kB / 1.136 GB, free: 11.08 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 7.482e-05/0.7475, allocations: 23.97 kB / 1.136 GB, free: 11.05 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.054e-05/0.7475, allocations: 0 / 1.136 GB, free: 11.05 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001349/0.7489, allocations: 0.7843 MB / 1.137 GB, free: 10.27 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.733e-05/0.7489, allocations: 11.92 kB / 1.137 GB, free: 10.26 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.68e-05/0.7489, allocations: 33.7 kB / 1.137 GB, free: 10.22 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0003292/0.7493, allocations: 277.4 kB / 1.137 GB, free: 9.949 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 2.364e-06/0.7493, allocations: 0 / 1.137 GB, free: 9.949 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.253e-06/0.7493, allocations: 0 / 1.137 GB, free: 9.949 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 3.126e-06/0.7493, allocations: 0 / 1.137 GB, free: 9.949 MB / 0.8887 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.0004206/0.7497, allocations: 367.2 kB / 1.137 GB, free: 9.543 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.615e-05/0.7497, allocations: 11.98 kB / 1.137 GB, free: 9.531 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001719/0.7499, allocations: 15.98 kB / 1.137 GB, free: 9.516 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.605e-05/0.75, allocations: 163.1 kB / 1.137 GB, free: 9.316 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.708e-06/0.75, allocations: 0 / 1.137 GB, free: 9.316 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.38e-05/0.7501, allocations: 11.95 kB / 1.137 GB, free: 9.305 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001253/0.7502, allocations: 53.62 kB / 1.137 GB, free: 9.246 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.514e-06/0.7502, allocations: 3.984 kB / 1.137 GB, free: 9.242 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.26e-05/0.7502, allocations: 4 kB / 1.137 GB, free: 9.238 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.151e-06/0.7503, allocations: 0 / 1.137 GB, free: 9.238 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.706e-05/0.7503, allocations: 15.98 kB / 1.137 GB, free: 9.223 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001578/0.7505, allocations: 165.6 kB / 1.138 GB, free: 9.012 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001029/0.7506, allocations: 58.55 kB / 1.138 GB, free: 8.945 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01119/0.7618, allocations: 3.202 MB / 1.141 GB, free: 5.648 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.82e-05/0.7619, allocations: 46.44 kB / 1.141 GB, free: 5.594 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=7): time 3.977e-06/0.7619, allocations: 0 / 1.141 GB, free: 5.594 MB / 0.8887 GB Notification: Performance of matching and sorting (n=11): time 0.03814/0.8, allocations: 14.25 MB / 1.155 GB, free: 7.191 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.902e-05/0.8001, allocations: 51.41 kB / 1.155 GB, free: 7.129 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.503e-05/0.8001, allocations: 101.8 kB / 1.155 GB, free: 7.02 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.833e-05/0.8002, allocations: 25.7 kB / 1.155 GB, free: 6.988 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 2.741e-05/0.8002, allocations: 84.14 kB / 1.155 GB, free: 6.902 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.764e-05/0.8002, allocations: 43.38 kB / 1.155 GB, free: 6.859 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.91e-06/0.8003, allocations: 0 / 1.155 GB, free: 6.859 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 9.606e-05/0.8004, allocations: 318.8 kB / 1.155 GB, free: 6.539 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.402e-05/0.8004, allocations: 23.98 kB / 1.155 GB, free: 6.516 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.258e-05/0.8005, allocations: 21.86 kB / 1.155 GB, free: 6.496 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.418e-05/0.8005, allocations: 36.06 kB / 1.155 GB, free: 6.461 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.8005, allocations: 3.953 kB / 1.155 GB, free: 6.457 MB / 0.9044 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002059/0.8007, allocations: 105.5 kB / 1.156 GB, free: 6.348 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.8008, allocations: 4 kB / 1.156 GB, free: 6.344 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.8008, allocations: 0 / 1.156 GB, free: 6.344 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.654e-05/0.8008, allocations: 0 / 1.156 GB, free: 6.344 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001209/0.8009, allocations: 23.98 kB / 1.156 GB, free: 6.32 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.801, allocations: 0 / 1.156 GB, free: 6.32 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.766e-05/0.801, allocations: 8 kB / 1.156 GB, free: 6.312 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.097e-05/0.801, allocations: 4 kB / 1.156 GB, free: 6.309 MB / 0.9044 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.59e-05/0.8011, allocations: 121.8 kB / 1.156 GB, free: 6.18 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.144e-05/0.8011, allocations: 7.953 kB / 1.156 GB, free: 6.172 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002591/0.8014, allocations: 121.5 kB / 1.156 GB, free: 6.047 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.504e-06/0.8014, allocations: 0 / 1.156 GB, free: 6.047 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.8014, allocations: 0 / 1.156 GB, free: 6.047 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.8014, allocations: 4 kB / 1.156 GB, free: 6.043 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001325/0.8016, allocations: 169.7 kB / 1.156 GB, free: 5.828 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-06/0.8016, allocations: 3.938 kB / 1.156 GB, free: 5.824 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001291/0.8017, allocations: 35.88 kB / 1.156 GB, free: 5.789 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.8017, allocations: 3.938 kB / 1.156 GB, free: 5.785 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.105e-05/0.8017, allocations: 4 kB / 1.156 GB, free: 5.781 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.8018, allocations: 0 / 1.156 GB, free: 5.781 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.8018, allocations: 0 / 1.156 GB, free: 5.781 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002764/0.802, allocations: 156.3 kB / 1.156 GB, free: 5.613 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 6.749e-05/0.8021, allocations: 93.05 kB / 1.156 GB, free: 5.504 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.704e-05/0.8021, allocations: 3.953 kB / 1.156 GB, free: 5.5 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001443/0.8023, allocations: 11.98 kB / 1.156 GB, free: 5.488 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.051e-05/0.8023, allocations: 8 kB / 1.156 GB, free: 5.48 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.288e-05/0.8023, allocations: 7.984 kB / 1.156 GB, free: 5.473 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 3.361e-05/0.8024, allocations: 83.28 kB / 1.156 GB, free: 5.391 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.463e-06/0.8024, allocations: 0 / 1.156 GB, free: 5.391 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.00163/0.804, allocations: 0.5701 MB / 1.157 GB, free: 4.82 MB / 0.9044 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002739/0.8068, allocations: 351.1 kB / 1.157 GB, free: 4.465 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001537/0.8069, allocations: 63.97 kB / 1.157 GB, free: 4.402 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.8069, allocations: 0 / 1.157 GB, free: 4.402 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 5.962e-05/0.807, allocations: 31.94 kB / 1.157 GB, free: 4.371 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001364/0.8071, allocations: 12.53 kB / 1.157 GB, free: 4.359 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005523/0.8077, allocations: 406.4 kB / 1.158 GB, free: 3.938 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002315/0.8079, allocations: 0.6887 MB / 1.158 GB, free: 3.223 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 9.644e-05/0.808, allocations: 24.53 kB / 1.158 GB, free: 3.199 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.552e-05/0.8081, allocations: 15.44 kB / 1.158 GB, free: 3.184 MB / 0.9044 GB Notification: Performance of SimCode: time 2.31e-07/0.8081, allocations: 0 / 1.158 GB, free: 3.184 MB / 0.9044 GB Notification: Performance of Templates: time 0.03687/0.845, allocations: 25.64 MB / 1.184 GB, free: 9.516 MB / 0.9356 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","../files/Buildings_latest_Buildings.Media.Examples.SteamDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches