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.005523/0.005523, allocations: 102.3 kB / 15.73 MB, free: 6.059 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.001098/0.001098, allocations: 191 kB / 16.67 MB, free: 5.969 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.315/1.315, allocations: 222.9 MB / 240.4 MB, free: 4.156 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.352/2.352, allocations: 390.2 MB / 0.6648 GB, free: 208 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001151/0.001151, allocations: 66.95 kB / 0.9504 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2763/0.2775, allocations: 140.4 MB / 1.087 GB, free: 2.16 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamDerivativeCheck): time 0.002002/0.2795, allocations: 1.276 MB / 1.089 GB, free: 0.875 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.1397/0.4192, allocations: 137.7 MB / 1.223 GB, free: 6.617 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.088e-05/0.4193, allocations: 4 kB / 1.223 GB, free: 6.613 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.583e-05/0.4193, allocations: 0 / 1.223 GB, free: 6.613 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.867e-05/0.4194, allocations: 7.922 kB / 1.223 GB, free: 6.605 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.001481/0.4209, allocations: 462.3 kB / 1.224 GB, free: 6.152 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 9.567e-05/0.421, allocations: 35.91 kB / 1.224 GB, free: 6.117 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 4.145e-05/0.4211, allocations: 4 kB / 1.224 GB, free: 6.113 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 5.05e-05/0.4211, allocations: 35.84 kB / 1.224 GB, free: 6.078 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.613e-05/0.4212, allocations: 11.98 kB / 1.224 GB, free: 6.066 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.305e-05/0.4212, allocations: 4 kB / 1.224 GB, free: 6.062 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001561/0.4228, allocations: 0.831 MB / 1.225 GB, free: 5.23 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.975e-05/0.4228, allocations: 11.92 kB / 1.225 GB, free: 5.219 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.475e-05/0.4229, allocations: 19.86 kB / 1.225 GB, free: 5.199 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0006334/0.4235, allocations: 446.5 kB / 1.225 GB, free: 4.766 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.4235, allocations: 0 / 1.225 GB, free: 4.766 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.625e-06/0.4235, allocations: 0 / 1.225 GB, free: 4.766 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.239e-06/0.4235, allocations: 3.938 kB / 1.225 GB, free: 4.762 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.0005145/0.424, allocations: 363.8 kB / 1.225 GB, free: 4.359 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.736e-05/0.4241, allocations: 12.03 kB / 1.225 GB, free: 4.348 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.204e-05/0.4242, allocations: 38.75 kB / 1.225 GB, free: 4.301 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001883/0.4243, allocations: 16.83 kB / 1.225 GB, free: 4.285 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001012/0.4245, allocations: 168.3 kB / 1.226 GB, free: 4.082 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.499e-05/0.4245, allocations: 4.375 kB / 1.226 GB, free: 4.078 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.987e-05/0.4245, allocations: 11.94 kB / 1.226 GB, free: 4.066 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001535/0.4247, allocations: 49.67 kB / 1.226 GB, free: 4.012 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.4247, allocations: 0 / 1.226 GB, free: 4.012 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.416e-05/0.4247, allocations: 4 kB / 1.226 GB, free: 4.008 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.143e-06/0.4247, allocations: 0 / 1.226 GB, free: 4.008 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.656e-05/0.4248, allocations: 23.92 kB / 1.226 GB, free: 3.984 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001737/0.425, allocations: 161.7 kB / 1.226 GB, free: 3.777 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001093/0.4251, allocations: 54.48 kB / 1.226 GB, free: 3.715 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.193e-05/0.4251, allocations: 16.86 kB / 1.226 GB, free: 3.695 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01145/0.4366, allocations: 3.205 MB / 1.229 GB, free: 404 kB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.854e-05/0.4366, allocations: 30.56 kB / 1.229 GB, free: 364 kB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 3.015e-06/0.4366, allocations: 4 kB / 1.229 GB, free: 360 kB / 0.9825 GB Notification: Performance of matching and sorting (n=11): time 0.04245/0.4791, allocations: 15 MB / 1.244 GB, free: 1.199 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.863e-05/0.4792, allocations: 51.41 kB / 1.244 GB, free: 1.137 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.73e-05/0.4792, allocations: 105.8 kB / 1.244 GB, free: 1.023 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.76e-05/0.4793, allocations: 25.7 kB / 1.244 GB, free: 0.9922 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 2.594e-05/0.4793, allocations: 80.14 kB / 1.244 GB, free: 0.9102 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.984e-05/0.4793, allocations: 39.38 kB / 1.244 GB, free: 0.8711 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.605e-05/0.4794, allocations: 33.7 kB / 1.244 GB, free: 0.832 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 9.032e-05/0.4795, allocations: 322.8 kB / 1.244 GB, free: 0.5078 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.235e-05/0.4795, allocations: 16 kB / 1.244 GB, free: 0.4922 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.334e-05/0.4796, allocations: 30.98 kB / 1.244 GB, free: 476 kB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001201/0.4797, allocations: 60.84 kB / 1.244 GB, free: 412 kB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.4797, allocations: 0 / 1.244 GB, free: 412 kB / 0.9981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002032/0.4799, allocations: 117.6 kB / 1.245 GB, free: 288 kB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/0.48, allocations: 6.344 kB / 1.245 GB, free: 284 kB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.48, allocations: 0 / 1.245 GB, free: 284 kB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.373e-05/0.48, allocations: 0 / 1.245 GB, free: 284 kB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001047/0.4801, allocations: 27.92 kB / 1.245 GB, free: 256 kB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.6e-06/0.4801, allocations: 0 / 1.245 GB, free: 256 kB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.885e-05/0.4801, allocations: 8 kB / 1.245 GB, free: 248 kB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.117e-06/0.4802, allocations: 0 / 1.245 GB, free: 248 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 7.667e-05/0.4802, allocations: 125.7 kB / 1.245 GB, free: 112 kB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.198e-05/0.4803, allocations: 11.89 kB / 1.245 GB, free: 100 kB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002494/0.4805, allocations: 121.5 kB / 1.245 GB, free: 15.97 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.077e-06/0.4806, allocations: 3.984 kB / 1.245 GB, free: 15.97 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.4806, allocations: 0 / 1.245 GB, free: 15.97 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.4806, allocations: 4 kB / 1.245 GB, free: 15.96 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001281/0.4807, allocations: 181.6 kB / 1.245 GB, free: 15.74 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.4807, allocations: 0 / 1.245 GB, free: 15.74 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001182/0.4808, allocations: 27.92 kB / 1.245 GB, free: 15.71 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.4809, allocations: 3.938 kB / 1.245 GB, free: 15.71 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.219e-05/0.4809, allocations: 8 kB / 1.245 GB, free: 15.7 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.4809, allocations: 0 / 1.245 GB, free: 15.7 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.4809, allocations: 0 / 1.245 GB, free: 15.7 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002654/0.4812, allocations: 152.9 kB / 1.245 GB, free: 15.53 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 6.119e-05/0.4812, allocations: 89.14 kB / 1.245 GB, free: 15.43 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.393e-05/0.4812, allocations: 0 / 1.245 GB, free: 15.43 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001332/0.4814, allocations: 15.98 kB / 1.245 GB, free: 15.41 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.948e-05/0.4814, allocations: 4 kB / 1.245 GB, free: 15.41 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.477e-05/0.4814, allocations: 7.984 kB / 1.245 GB, free: 15.4 MB / 1.014 GB Notification: Performance of sorting global known variables: time 2.977e-05/0.4815, allocations: 83.28 kB / 1.245 GB, free: 15.32 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.252e-06/0.4815, allocations: 8.031 kB / 1.245 GB, free: 15.31 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001408/0.4829, allocations: 0.5663 MB / 1.246 GB, free: 14.74 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.003487/0.4864, allocations: 0.9288 MB / 1.247 GB, free: 13.79 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0001606/0.4866, allocations: 78.84 kB / 1.247 GB, free: 13.71 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.4866, allocations: 0 / 1.247 GB, free: 13.71 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 6.448e-05/0.4866, allocations: 35.92 kB / 1.247 GB, free: 13.68 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001748/0.4868, allocations: 16 kB / 1.247 GB, free: 13.66 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002064/0.4889, allocations: 1.547 MB / 1.248 GB, free: 12.04 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002114/0.4891, allocations: 0.6928 MB / 1.249 GB, free: 11.32 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 8.104e-05/0.4892, allocations: 24.55 kB / 1.249 GB, free: 11.29 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.19e-05/0.4893, allocations: 23.42 kB / 1.249 GB, free: 11.27 MB / 1.014 GB Notification: Performance of SimCode: time 2.3e-07/0.4893, allocations: 0 / 1.249 GB, free: 11.27 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7187/1.208, allocations: 25.44 MB / 1.274 GB, free: 162.3 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.846/10.05, allocations: 3.031 kB / 1.274 GB, free: 162.3 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[406]=0.405000 " 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