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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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: "" <> buildModelFMU(Buildings.Media.Examples.SteamDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Media_Examples_SteamDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.SteamDerivativeCheck,fileNamePrefix="Buildings_latest_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.008801/0.008801, allocations: 103.9 kB / 15.73 MB, free: 6.031 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.001829/0.001829, allocations: 190 kB / 16.67 MB, free: 5.953 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.398/1.398, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.565/2.565, allocations: 461.9 MB / 0.7348 GB, free: 11 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001532/0.001532, allocations: 68.11 kB / 1.054 GB, free: 8.176 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8379/0.8394, allocations: 157.4 MB / 1.207 GB, free: 13.52 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamDerivativeCheck): time 0.002544/0.842, allocations: 1.278 MB / 1.208 GB, free: 12.23 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.1384/0.9805, allocations: 137.7 MB / 1.343 GB, free: 2.02 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.63e-05/0.9806, allocations: 4 kB / 1.343 GB, free: 2.016 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 1.958e-05/0.9807, allocations: 3.984 kB / 1.343 GB, free: 2.012 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 5.45e-05/0.9807, allocations: 7.922 kB / 1.343 GB, free: 2.004 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.001275/0.982, allocations: 458.3 kB / 1.343 GB, free: 1.555 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 7.782e-05/0.9821, allocations: 43.89 kB / 1.343 GB, free: 1.512 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 3.151e-05/0.9821, allocations: 4 kB / 1.343 GB, free: 1.508 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 4.73e-05/0.9822, allocations: 19.98 kB / 1.343 GB, free: 1.488 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 7.121e-05/0.9823, allocations: 19.91 kB / 1.343 GB, free: 1.469 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.065e-05/0.9823, allocations: 0 / 1.343 GB, free: 1.469 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001405/0.9837, allocations: 0.8348 MB / 1.344 GB, free: 0.6328 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.523e-05/0.9837, allocations: 4 kB / 1.344 GB, free: 0.6289 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 3.53e-05/0.9838, allocations: 27.84 kB / 1.344 GB, free: 0.6016 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0005889/0.9843, allocations: 445.4 kB / 1.345 GB, free: 172 kB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.9844, allocations: 0 / 1.345 GB, free: 172 kB / 1.061 GB Notification: Performance of FrontEnd: time 1.674e-06/0.9844, allocations: 0 / 1.345 GB, free: 172 kB / 1.061 GB Notification: Performance of Transformations before backend: time 8.005e-06/0.9844, allocations: 0 / 1.345 GB, free: 172 kB / 1.061 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.0004795/0.9849, allocations: 375.4 kB / 1.345 GB, free: 15.75 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.881e-05/0.9849, allocations: 12.03 kB / 1.345 GB, free: 15.74 MB / 1.076 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.31e-05/0.985, allocations: 38.69 kB / 1.345 GB, free: 15.7 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001686/0.9851, allocations: 12.92 kB / 1.345 GB, free: 15.68 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.183e-05/0.9852, allocations: 160.4 kB / 1.345 GB, free: 15.49 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.166e-05/0.9852, allocations: 4.375 kB / 1.345 GB, free: 15.48 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.668e-05/0.9853, allocations: 11.94 kB / 1.345 GB, free: 15.47 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001427/0.9854, allocations: 53.61 kB / 1.345 GB, free: 15.41 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.592e-06/0.9854, allocations: 0 / 1.345 GB, free: 15.41 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.127e-05/0.9855, allocations: 4 kB / 1.345 GB, free: 15.41 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.552e-06/0.9855, allocations: 4 kB / 1.345 GB, free: 15.41 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.495e-05/0.9855, allocations: 19.98 kB / 1.345 GB, free: 15.39 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001536/0.9857, allocations: 169.6 kB / 1.346 GB, free: 15.17 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001048/0.9858, allocations: 54.48 kB / 1.346 GB, free: 15.11 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.834e-05/0.9858, allocations: 16.86 kB / 1.346 GB, free: 15.09 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01112/0.997, allocations: 3.205 MB / 1.349 GB, free: 11.79 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.511e-05/0.997, allocations: 34.56 kB / 1.349 GB, free: 11.75 MB / 1.076 GB Notification: Performance of pre-optimization done (n=7): time 2.174e-06/0.997, allocations: 0 / 1.349 GB, free: 11.75 MB / 1.076 GB Notification: Performance of matching and sorting (n=11): time 0.0418/1.039, allocations: 15 MB / 1.363 GB, free: 12.59 MB / 1.092 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.446e-05/1.039, allocations: 55.41 kB / 1.363 GB, free: 12.53 MB / 1.092 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.006e-05/1.039, allocations: 101.8 kB / 1.364 GB, free: 12.42 MB / 1.092 GB Notification: Performance of collectPreVariables (initialization): time 1.727e-05/1.039, allocations: 25.7 kB / 1.364 GB, free: 12.39 MB / 1.092 GB Notification: Performance of collectInitialEqns (initialization): time 2.497e-05/1.039, allocations: 80.14 kB / 1.364 GB, free: 12.3 MB / 1.092 GB Notification: Performance of collectInitialBindings (initialization): time 4.651e-05/1.039, allocations: 47.3 kB / 1.364 GB, free: 12.26 MB / 1.092 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.819e-05/1.039, allocations: 29.72 kB / 1.364 GB, free: 12.22 MB / 1.092 GB Notification: Performance of setup shared object (initialization): time 9.474e-05/1.039, allocations: 322.8 kB / 1.364 GB, free: 11.9 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.544e-05/1.039, allocations: 24.11 kB / 1.364 GB, free: 11.88 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.192e-05/1.039, allocations: 27.25 kB / 1.364 GB, free: 11.85 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000118/1.039, allocations: 56.84 kB / 1.364 GB, free: 11.79 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.62e-07/1.039, allocations: 0 / 1.364 GB, free: 11.79 MB / 1.092 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002119/1.04, allocations: 109.6 kB / 1.364 GB, free: 11.68 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/1.04, allocations: 4 kB / 1.364 GB, free: 11.68 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/1.04, allocations: 0 / 1.364 GB, free: 11.68 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.167e-05/1.04, allocations: 3.984 kB / 1.364 GB, free: 11.67 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001071/1.04, allocations: 23.94 kB / 1.364 GB, free: 11.65 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.57e-06/1.04, allocations: 0 / 1.364 GB, free: 11.65 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.793e-05/1.04, allocations: 8 kB / 1.364 GB, free: 11.64 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.067e-05/1.04, allocations: 7.984 kB / 1.364 GB, free: 11.63 MB / 1.092 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 8.504e-05/1.04, allocations: 117.8 kB / 1.364 GB, free: 11.51 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.113e-05/1.04, allocations: 11.84 kB / 1.364 GB, free: 11.5 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002529/1.04, allocations: 125.5 kB / 1.365 GB, free: 11.37 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/1.04, allocations: 4 kB / 1.365 GB, free: 11.36 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/1.04, allocations: 0 / 1.365 GB, free: 11.36 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/1.04, allocations: 0 / 1.365 GB, free: 11.36 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001326/1.041, allocations: 177.6 kB / 1.365 GB, free: 11.14 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/1.041, allocations: 0 / 1.365 GB, free: 11.14 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001193/1.041, allocations: 23.98 kB / 1.365 GB, free: 11.12 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/1.041, allocations: 0 / 1.365 GB, free: 11.12 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.236e-05/1.041, allocations: 8 kB / 1.365 GB, free: 11.11 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/1.041, allocations: 3.938 kB / 1.365 GB, free: 11.11 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/1.041, allocations: 0 / 1.365 GB, free: 11.11 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002813/1.041, allocations: 160.9 kB / 1.365 GB, free: 10.93 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 6.974e-05/1.041, allocations: 85.14 kB / 1.365 GB, free: 10.83 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.442e-05/1.041, allocations: 0 / 1.365 GB, free: 10.83 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001388/1.041, allocations: 15.98 kB / 1.365 GB, free: 10.81 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.18e-05/1.041, allocations: 7.984 kB / 1.365 GB, free: 10.8 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.289e-05/1.041, allocations: 8 kB / 1.365 GB, free: 10.8 MB / 1.092 GB Notification: Performance of sorting global known variables: time 2.966e-05/1.041, allocations: 79.28 kB / 1.365 GB, free: 10.72 MB / 1.092 GB Notification: Performance of sort global known variables: time 3.41e-07/1.041, allocations: 7.938 kB / 1.365 GB, free: 10.71 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.0017/1.043, allocations: 0.5585 MB / 1.366 GB, free: 10.15 MB / 1.092 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.004077/1.047, allocations: 0.9365 MB / 1.367 GB, free: 9.188 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.0001928/1.047, allocations: 67.91 kB / 1.367 GB, free: 9.121 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/1.047, allocations: 0 / 1.367 GB, free: 9.121 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 7.217e-05/1.047, allocations: 39.98 kB / 1.367 GB, free: 9.082 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001929/1.048, allocations: 11.94 kB / 1.367 GB, free: 9.07 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002164/1.05, allocations: 1.548 MB / 1.368 GB, free: 7.445 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002248/1.05, allocations: 0.6846 MB / 1.369 GB, free: 6.734 MB / 1.092 GB Notification: Performance of simCode: alias equations: time 8.148e-05/1.05, allocations: 24.53 kB / 1.369 GB, free: 6.711 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.73e-05/1.05, allocations: 23.44 kB / 1.369 GB, free: 6.688 MB / 1.092 GB Notification: Performance of SimCode: time 3.1e-07/1.05, allocations: 0 / 1.369 GB, free: 6.688 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05166/1.102, allocations: 25.46 MB / 1.394 GB, free: 13.28 MB / 1.123 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.503/9.604, allocations: 11.19 kB / 1.394 GB, free: 13.27 MB / 1.123 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Media.Examples.SteamDerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Media_Examples_SteamDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-10 Buildings_latest_Buildings_Media_Examples_SteamDerivativeCheck.fmu > 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) "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