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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0008556/0.0008556, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.005597/0.005597, allocations: 172.6 kB / 16.27 MB, free: 6.648 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.302/1.302, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.213/2.213, allocations: 390.9 MB / 0.6664 GB, free: 2.32 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003251/0.0003251, allocations: 8 kB / 0.8161 GB, free: 13.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6646/0.665, allocations: 142.4 MB / 0.9552 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamDerivativeCheck): time 0.0009181/0.6659, allocations: 0.9831 MB / 0.9561 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1315/0.7974, allocations: 134.3 MB / 1.087 GB, free: 7.57 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.026e-05/0.7975, allocations: 0 / 1.087 GB, free: 7.57 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 1.722e-05/0.7975, allocations: 3.938 kB / 1.087 GB, free: 7.566 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 4.986e-05/0.7975, allocations: 7.984 kB / 1.087 GB, free: 7.559 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001045/0.7986, allocations: 370.7 kB / 1.088 GB, free: 7.195 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 6.541e-05/0.7987, allocations: 39.86 kB / 1.088 GB, free: 7.156 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 3.155e-05/0.7987, allocations: 3.984 kB / 1.088 GB, free: 7.152 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 3.925e-05/0.7988, allocations: 23.92 kB / 1.088 GB, free: 7.129 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 6.64e-05/0.7988, allocations: 23.91 kB / 1.088 GB, free: 7.105 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 8.967e-06/0.7988, allocations: 0 / 1.088 GB, free: 7.105 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001319/0.8002, allocations: 0.8192 MB / 1.088 GB, free: 6.285 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.688e-05/0.8002, allocations: 11.97 kB / 1.088 GB, free: 6.273 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 4.052e-05/0.8002, allocations: 41.64 kB / 1.089 GB, free: 6.227 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0005422/0.8008, allocations: 449.3 kB / 1.089 GB, free: 5.789 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.8008, allocations: 0 / 1.089 GB, free: 5.789 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.533e-06/0.8008, allocations: 0 / 1.089 GB, free: 5.789 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 3.627e-06/0.8008, allocations: 0 / 1.089 GB, free: 5.789 MB / 0.8419 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.0004092/0.8012, allocations: 367.4 kB / 1.089 GB, free: 5.383 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.8013, allocations: 12.03 kB / 1.089 GB, free: 5.371 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.518e-05/0.8013, allocations: 30.75 kB / 1.089 GB, free: 5.332 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001608/0.8015, allocations: 16.92 kB / 1.089 GB, free: 5.316 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.354e-05/0.8016, allocations: 164.4 kB / 1.09 GB, free: 5.117 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.19e-05/0.8016, allocations: 8.312 kB / 1.09 GB, free: 5.113 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.254e-05/0.8016, allocations: 11.84 kB / 1.09 GB, free: 5.102 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001282/0.8018, allocations: 57.61 kB / 1.09 GB, free: 5.039 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.163e-06/0.8018, allocations: 0 / 1.09 GB, free: 5.039 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.758e-06/0.8018, allocations: 7.938 kB / 1.09 GB, free: 5.031 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.8018, allocations: 0 / 1.09 GB, free: 5.031 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.148e-05/0.8019, allocations: 23.97 kB / 1.09 GB, free: 5.008 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001434/0.802, allocations: 161.7 kB / 1.09 GB, free: 4.801 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 9.378e-05/0.8021, allocations: 54.48 kB / 1.09 GB, free: 4.738 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.797e-05/0.8021, allocations: 16.86 kB / 1.09 GB, free: 4.719 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01006/0.8122, allocations: 3.202 MB / 1.093 GB, free: 1.422 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.527e-05/0.8122, allocations: 38.73 kB / 1.093 GB, free: 1.375 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=7): time 1.142e-06/0.8123, allocations: 0 / 1.093 GB, free: 1.375 MB / 0.8419 GB Notification: Performance of matching and sorting (n=11): time 0.0356/0.8479, allocations: 14.26 MB / 1.107 GB, free: 2.965 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.406e-05/0.8479, allocations: 51.41 kB / 1.107 GB, free: 2.902 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.223e-05/0.848, allocations: 89.86 kB / 1.107 GB, free: 2.805 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.997e-05/0.848, allocations: 33.7 kB / 1.107 GB, free: 2.766 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.373e-05/0.848, allocations: 80.14 kB / 1.107 GB, free: 2.684 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.811e-05/0.8481, allocations: 39.39 kB / 1.107 GB, free: 2.645 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.876e-05/0.8481, allocations: 25.83 kB / 1.107 GB, free: 2.613 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.161e-05/0.8482, allocations: 318.8 kB / 1.108 GB, free: 2.293 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.185e-05/0.8482, allocations: 23.98 kB / 1.108 GB, free: 2.27 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.75e-05/0.8483, allocations: 23.98 kB / 1.108 GB, free: 2.246 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001116/0.8484, allocations: 64.05 kB / 1.108 GB, free: 2.184 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.62e-07/0.8484, allocations: 3.938 kB / 1.108 GB, free: 2.18 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002053/0.8486, allocations: 109.6 kB / 1.108 GB, free: 2.066 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.309e-05/0.8487, allocations: 4 kB / 1.108 GB, free: 2.062 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.8487, allocations: 0 / 1.108 GB, free: 2.062 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.039e-05/0.8487, allocations: 4 kB / 1.108 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001017/0.8488, allocations: 27.98 kB / 1.108 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.01e-06/0.8488, allocations: 0 / 1.108 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.539e-05/0.8488, allocations: 4 kB / 1.108 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.774e-06/0.8488, allocations: 0 / 1.108 GB, free: 2.027 MB / 0.8575 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 6.9e-05/0.8489, allocations: 121.7 kB / 1.108 GB, free: 1.898 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.767e-05/0.849, allocations: 8 kB / 1.108 GB, free: 1.891 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002339/0.8492, allocations: 121.5 kB / 1.108 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.8492, allocations: 0 / 1.108 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.8492, allocations: 4 kB / 1.108 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.8492, allocations: 0 / 1.108 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001176/0.8494, allocations: 181.6 kB / 1.108 GB, free: 1.539 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.8494, allocations: 0 / 1.108 GB, free: 1.539 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001125/0.8495, allocations: 27.92 kB / 1.108 GB, free: 1.512 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.8495, allocations: 0 / 1.108 GB, free: 1.512 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.146e-05/0.8495, allocations: 12 kB / 1.108 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.796e-06/0.8495, allocations: 3.984 kB / 1.108 GB, free: 1.496 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.8495, allocations: 0 / 1.108 GB, free: 1.496 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002501/0.8498, allocations: 153.1 kB / 1.108 GB, free: 1.328 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.615e-05/0.8498, allocations: 89.05 kB / 1.108 GB, free: 1.223 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.604e-05/0.8499, allocations: 11.92 kB / 1.109 GB, free: 1.211 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001313/0.85, allocations: 16 kB / 1.109 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.98e-05/0.85, allocations: 11.92 kB / 1.109 GB, free: 1.184 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.162e-05/0.85, allocations: 8 kB / 1.109 GB, free: 1.176 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.5e-05/0.8501, allocations: 75.28 kB / 1.109 GB, free: 1.102 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8501, allocations: 0 / 1.109 GB, free: 1.102 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.001319/0.8514, allocations: 0.5663 MB / 1.109 GB, free: 0.5352 MB / 0.8575 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.003068/0.8545, allocations: 0.9328 MB / 1.11 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0001412/0.8546, allocations: 67.91 kB / 1.11 GB, free: 15.51 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.8546, allocations: 0 / 1.11 GB, free: 15.51 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 5.739e-05/0.8547, allocations: 35.92 kB / 1.11 GB, free: 15.47 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001574/0.8549, allocations: 5.719 kB / 1.11 GB, free: 15.47 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001836/0.8567, allocations: 1.612 MB / 1.112 GB, free: 13.78 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001784/0.8569, allocations: 0.6848 MB / 1.112 GB, free: 13.07 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 8.864e-05/0.857, allocations: 24.53 kB / 1.112 GB, free: 13.04 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.019e-05/0.857, allocations: 27.44 kB / 1.112 GB, free: 13.02 MB / 0.8731 GB Notification: Performance of SimCode: time 3.11e-07/0.857, allocations: 0 / 1.112 GB, free: 13.02 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.303/5.16, allocations: 25.2 MB / 1.137 GB, free: 3.895 MB / 0.8887 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002364/5.16, allocations: 190 kB / 1.137 GB, free: 3.645 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.836/7.996, allocations: 64 / 1.137 GB, free: 3.645 MB / 0.8887 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