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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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: "" <> buildModelFMU(Buildings.Media.Examples.SteamDerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Media_Examples_SteamDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.SteamDerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Media_Examples_SteamDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006019/0.006019, allocations: 101.3 kB / 15.73 MB, free: 6.473 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.001127/0.001127, allocations: 194.1 kB / 16.67 MB, free: 6.379 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.36/1.36, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.342/2.342, allocations: 390.3 MB / 0.6648 GB, free: 260 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002064/0.002064, allocations: 62.2 kB / 0.9504 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3344/0.3364, allocations: 140.4 MB / 1.087 GB, free: 2.012 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamDerivativeCheck): time 0.003948/0.3405, allocations: 1.266 MB / 1.089 GB, free: 0.7344 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.1553/0.4958, allocations: 137.7 MB / 1.223 GB, free: 6.477 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.585e-05/0.4959, allocations: 0 / 1.223 GB, free: 6.477 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.081e-05/0.4959, allocations: 3.938 kB / 1.223 GB, free: 6.473 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.551e-05/0.496, allocations: 4 kB / 1.223 GB, free: 6.469 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.001345/0.4974, allocations: 466.3 kB / 1.224 GB, free: 6.012 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001201/0.4975, allocations: 43.83 kB / 1.224 GB, free: 5.969 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 3.782e-05/0.4976, allocations: 8 kB / 1.224 GB, free: 5.961 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 4.754e-05/0.4976, allocations: 19.92 kB / 1.224 GB, free: 5.941 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.286e-05/0.4977, allocations: 15.97 kB / 1.224 GB, free: 5.926 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.194e-05/0.4977, allocations: 8 kB / 1.224 GB, free: 5.918 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001516/0.4992, allocations: 0.827 MB / 1.225 GB, free: 5.09 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.594e-05/0.4993, allocations: 11.92 kB / 1.225 GB, free: 5.078 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.052e-05/0.4993, allocations: 19.92 kB / 1.225 GB, free: 5.059 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0007676/0.5001, allocations: 446.6 kB / 1.225 GB, free: 4.625 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.5001, allocations: 3.938 kB / 1.225 GB, free: 4.621 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.583e-06/0.5001, allocations: 0 / 1.225 GB, free: 4.621 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.142e-05/0.5001, allocations: 0 / 1.225 GB, free: 4.621 MB / 0.9825 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.000581/0.5007, allocations: 363.8 kB / 1.225 GB, free: 4.219 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.021e-05/0.5008, allocations: 12.03 kB / 1.225 GB, free: 4.207 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.18e-05/0.5008, allocations: 38.73 kB / 1.225 GB, free: 4.16 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00019/0.501, allocations: 12.84 kB / 1.225 GB, free: 4.148 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001165/0.5011, allocations: 176.2 kB / 1.226 GB, free: 3.938 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.537e-05/0.5012, allocations: 4.375 kB / 1.226 GB, free: 3.934 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.24e-05/0.5012, allocations: 11.94 kB / 1.226 GB, free: 3.922 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001581/0.5014, allocations: 49.67 kB / 1.226 GB, free: 3.867 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.5014, allocations: 0 / 1.226 GB, free: 3.867 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.291e-05/0.5014, allocations: 4 kB / 1.226 GB, free: 3.863 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.205e-06/0.5014, allocations: 0 / 1.226 GB, free: 3.863 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.944e-05/0.5015, allocations: 19.98 kB / 1.226 GB, free: 3.844 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000196/0.5017, allocations: 165.7 kB / 1.226 GB, free: 3.633 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000119/0.5018, allocations: 58.42 kB / 1.226 GB, free: 3.566 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.993e-05/0.5019, allocations: 16.86 kB / 1.226 GB, free: 3.547 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01132/0.5132, allocations: 3.205 MB / 1.229 GB, free: 252 kB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.247e-05/0.5133, allocations: 30.56 kB / 1.229 GB, free: 212 kB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 2.144e-06/0.5133, allocations: 0 / 1.229 GB, free: 212 kB / 0.9825 GB Notification: Performance of matching and sorting (n=11): time 0.04275/0.556, allocations: 15 MB / 1.244 GB, free: 1.055 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.182e-05/0.5561, allocations: 51.41 kB / 1.244 GB, free: 0.9922 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.687e-05/0.5562, allocations: 97.86 kB / 1.244 GB, free: 0.8867 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.069e-05/0.5562, allocations: 29.83 kB / 1.244 GB, free: 0.8516 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 3.863e-05/0.5562, allocations: 84.12 kB / 1.244 GB, free: 0.7656 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 4.291e-05/0.5563, allocations: 39.38 kB / 1.244 GB, free: 0.7266 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.238e-05/0.5564, allocations: 33.7 kB / 1.244 GB, free: 0.6875 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001175/0.5565, allocations: 318.8 kB / 1.244 GB, free: 376 kB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.316e-05/0.5565, allocations: 27.86 kB / 1.244 GB, free: 348 kB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.651e-05/0.5566, allocations: 30.11 kB / 1.244 GB, free: 320 kB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001162/0.5567, allocations: 60.78 kB / 1.244 GB, free: 256 kB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.91e-07/0.5567, allocations: 4 kB / 1.244 GB, free: 252 kB / 0.9981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002084/0.5569, allocations: 108.7 kB / 1.245 GB, free: 140 kB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/0.557, allocations: 4 kB / 1.245 GB, free: 136 kB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.557, allocations: 0 / 1.245 GB, free: 136 kB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.749e-05/0.557, allocations: 0 / 1.245 GB, free: 136 kB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000125/0.5571, allocations: 27.92 kB / 1.245 GB, free: 108 kB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.5572, allocations: 0 / 1.245 GB, free: 108 kB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.747e-05/0.5572, allocations: 8 kB / 1.245 GB, free: 100 kB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.009e-05/0.5572, allocations: 0 / 1.245 GB, free: 100 kB / 0.9981 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 0.0001005/0.5573, allocations: 121.8 kB / 1.245 GB, free: 15.97 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.201e-05/0.5574, allocations: 7.906 kB / 1.245 GB, free: 15.96 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002734/0.5576, allocations: 133.5 kB / 1.245 GB, free: 15.82 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.474e-06/0.5577, allocations: 0 / 1.245 GB, free: 15.82 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.5577, allocations: 0 / 1.245 GB, free: 15.82 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.5577, allocations: 0 / 1.245 GB, free: 15.82 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001488/0.5578, allocations: 181.6 kB / 1.245 GB, free: 15.6 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.5578, allocations: 7.938 kB / 1.245 GB, free: 15.59 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001181/0.558, allocations: 27.98 kB / 1.245 GB, free: 15.56 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.558, allocations: 0 / 1.245 GB, free: 15.56 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.23e-05/0.558, allocations: 8 kB / 1.245 GB, free: 15.55 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.558, allocations: 0 / 1.245 GB, free: 15.55 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.558, allocations: 3.938 kB / 1.245 GB, free: 15.55 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002839/0.5583, allocations: 156.9 kB / 1.245 GB, free: 15.38 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 6.737e-05/0.5584, allocations: 85.14 kB / 1.245 GB, free: 15.28 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.457e-05/0.5584, allocations: 4 kB / 1.245 GB, free: 15.27 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001353/0.5585, allocations: 15.98 kB / 1.245 GB, free: 15.26 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.776e-05/0.5586, allocations: 4 kB / 1.245 GB, free: 15.25 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.582e-05/0.5586, allocations: 11.98 kB / 1.245 GB, free: 15.24 MB / 1.014 GB Notification: Performance of sorting global known variables: time 3.795e-05/0.5586, allocations: 79.28 kB / 1.245 GB, free: 15.16 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.462e-06/0.5586, allocations: 0 / 1.245 GB, free: 15.16 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.00164/0.5603, allocations: 0.5663 MB / 1.246 GB, free: 14.6 MB / 1.014 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.003554/0.5638, allocations: 0.9366 MB / 1.247 GB, free: 13.63 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0001743/0.564, allocations: 71.91 kB / 1.247 GB, free: 13.56 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.564, allocations: 0 / 1.247 GB, free: 13.56 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 6.062e-05/0.5641, allocations: 35.92 kB / 1.247 GB, free: 13.53 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001698/0.5643, allocations: 13.56 kB / 1.247 GB, free: 13.52 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00205/0.5663, allocations: 1.543 MB / 1.248 GB, free: 11.89 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002419/0.5666, allocations: 0.6929 MB / 1.249 GB, free: 11.18 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 8.045e-05/0.5667, allocations: 28.53 kB / 1.249 GB, free: 11.15 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.379e-05/0.5667, allocations: 23.42 kB / 1.249 GB, free: 11.12 MB / 1.014 GB Notification: Performance of SimCode: time 1.543e-06/0.5667, allocations: 0 / 1.249 GB, free: 11.12 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6758/1.243, allocations: 25.45 MB / 1.274 GB, free: 160.9 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.787/10.03, allocations: 8.047 kB / 1.274 GB, free: 160.9 MB / 1.014 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Media_Examples_SteamDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-10 Buildings_9_Buildings_Media_Examples_SteamDerivativeCheck.fmu > 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) "Warning: Resultfile and Reference have different end time points! Reffile[502]=1.000000 File[123]=0.244000 " Variables in the reference:time,der(hVapSym),der(hVapCod),der(cpSym),der(cpCod),der(cvSym),der(cvCod) Variables in the result:T,cpCod,cpSym,cvCod,cvSym,der(T),der(cpCod),der(cpSym),der(cvCod),der(cvSym),der(hVapCod),der(hVapSym),hVapCod,hVapSym,time