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.006245/0.006245, allocations: 101.3 kB / 15.73 MB, free: 6.043 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.001162/0.001163, allocations: 197.5 kB / 16.68 MB, free: 5.961 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.357/1.357, allocations: 222.9 MB / 240.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.642/2.642, allocations: 461.9 MB / 0.7348 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002015/0.002015, allocations: 68.11 kB / 1.054 GB, free: 8.266 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8066/0.8087, allocations: 157.4 MB / 1.207 GB, free: 13.57 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamDerivativeCheck): time 0.002348/0.811, allocations: 1.263 MB / 1.208 GB, free: 12.3 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.1341/0.9451, allocations: 137.7 MB / 1.343 GB, free: 2.078 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.625e-05/0.9452, allocations: 0 / 1.343 GB, free: 2.078 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 1.873e-05/0.9453, allocations: 0 / 1.343 GB, free: 2.078 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 6.217e-05/0.9454, allocations: 7.922 kB / 1.343 GB, free: 2.07 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.001404/0.9468, allocations: 462.3 kB / 1.343 GB, free: 1.617 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 8.04e-05/0.9469, allocations: 39.91 kB / 1.343 GB, free: 1.578 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 4.788e-05/0.9469, allocations: 7.984 kB / 1.343 GB, free: 1.57 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 4.974e-05/0.947, allocations: 23.92 kB / 1.343 GB, free: 1.547 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 6.977e-05/0.947, allocations: 19.91 kB / 1.343 GB, free: 1.527 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 9.748e-06/0.9471, allocations: 4 kB / 1.343 GB, free: 1.523 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001525/0.9486, allocations: 0.8232 MB / 1.344 GB, free: 0.6992 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.813e-05/0.9486, allocations: 11.98 kB / 1.344 GB, free: 0.6875 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 2.961e-05/0.9487, allocations: 11.92 kB / 1.344 GB, free: 0.6758 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0006809/0.9493, allocations: 449.3 kB / 1.345 GB, free: 244 kB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 6.002e-06/0.9494, allocations: 4 kB / 1.345 GB, free: 240 kB / 1.061 GB Notification: Performance of FrontEnd: time 1.472e-06/0.9494, allocations: 3.938 kB / 1.345 GB, free: 236 kB / 1.061 GB Notification: Performance of Transformations before backend: time 5.641e-06/0.9494, allocations: 0 / 1.345 GB, free: 236 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.0005798/0.95, allocations: 375.4 kB / 1.345 GB, free: 15.82 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.95, allocations: 8.031 kB / 1.345 GB, free: 15.81 MB / 1.076 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.837e-05/0.9501, allocations: 38.75 kB / 1.345 GB, free: 15.76 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001874/0.9503, allocations: 12.92 kB / 1.345 GB, free: 15.75 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001088/0.9504, allocations: 160.4 kB / 1.345 GB, free: 15.55 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.333e-05/0.9504, allocations: 4.375 kB / 1.345 GB, free: 15.55 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.996e-05/0.9504, allocations: 11.94 kB / 1.345 GB, free: 15.54 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001441/0.9506, allocations: 53.67 kB / 1.345 GB, free: 15.48 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.303e-06/0.9506, allocations: 7.938 kB / 1.345 GB, free: 15.47 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.066e-05/0.9506, allocations: 0 / 1.345 GB, free: 15.47 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.977e-06/0.9506, allocations: 0 / 1.345 GB, free: 15.47 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.169e-05/0.9507, allocations: 23.92 kB / 1.345 GB, free: 15.45 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001662/0.9509, allocations: 165.7 kB / 1.346 GB, free: 15.24 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001097/0.951, allocations: 50.5 kB / 1.346 GB, free: 15.18 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.643e-05/0.951, allocations: 16.86 kB / 1.346 GB, free: 15.16 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01046/0.9615, allocations: 3.206 MB / 1.349 GB, free: 11.86 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.409e-05/0.9616, allocations: 34.56 kB / 1.349 GB, free: 11.82 MB / 1.076 GB Notification: Performance of pre-optimization done (n=7): time 1.884e-06/0.9616, allocations: 0 / 1.349 GB, free: 11.82 MB / 1.076 GB Notification: Performance of matching and sorting (n=11): time 0.04191/1.003, allocations: 14.99 MB / 1.363 GB, free: 12.67 MB / 1.092 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.54e-05/1.004, allocations: 55.41 kB / 1.363 GB, free: 12.6 MB / 1.092 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.616e-05/1.004, allocations: 93.84 kB / 1.364 GB, free: 12.5 MB / 1.092 GB Notification: Performance of collectPreVariables (initialization): time 2.047e-05/1.004, allocations: 33.64 kB / 1.364 GB, free: 12.46 MB / 1.092 GB Notification: Performance of collectInitialEqns (initialization): time 2.524e-05/1.004, allocations: 84.14 kB / 1.364 GB, free: 12.38 MB / 1.092 GB Notification: Performance of collectInitialBindings (initialization): time 4.161e-05/1.004, allocations: 43.42 kB / 1.364 GB, free: 12.33 MB / 1.092 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.898e-05/1.004, allocations: 29.72 kB / 1.364 GB, free: 12.3 MB / 1.092 GB Notification: Performance of setup shared object (initialization): time 0.0001131/1.004, allocations: 326.8 kB / 1.364 GB, free: 11.97 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.337e-05/1.004, allocations: 20 kB / 1.364 GB, free: 11.95 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.243e-05/1.004, allocations: 23.98 kB / 1.364 GB, free: 11.93 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001193/1.004, allocations: 64.84 kB / 1.364 GB, free: 11.86 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.91e-07/1.004, allocations: 0 / 1.364 GB, free: 11.86 MB / 1.092 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002456/1.004, allocations: 101.6 kB / 1.364 GB, free: 11.75 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/1.004, allocations: 4 kB / 1.364 GB, free: 11.75 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/1.004, allocations: 8 kB / 1.364 GB, free: 11.74 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/1.004, allocations: 3.984 kB / 1.364 GB, free: 11.74 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000112/1.005, allocations: 24 kB / 1.364 GB, free: 11.71 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/1.005, allocations: 0 / 1.364 GB, free: 11.71 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.729e-05/1.005, allocations: 0 / 1.364 GB, free: 11.71 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.089e-05/1.005, allocations: 4 kB / 1.364 GB, free: 11.71 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 9.164e-05/1.005, allocations: 125.7 kB / 1.364 GB, free: 11.58 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.742e-05/1.005, allocations: 11.91 kB / 1.364 GB, free: 11.57 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002599/1.005, allocations: 121.5 kB / 1.365 GB, free: 11.44 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/1.005, allocations: 4 kB / 1.365 GB, free: 11.44 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/1.005, allocations: 0 / 1.365 GB, free: 11.44 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/1.005, allocations: 0 / 1.365 GB, free: 11.44 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001635/1.005, allocations: 181.6 kB / 1.365 GB, free: 11.21 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/1.005, allocations: 3.938 kB / 1.365 GB, free: 11.21 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000124/1.005, allocations: 27.92 kB / 1.365 GB, free: 11.18 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/1.005, allocations: 3.984 kB / 1.365 GB, free: 11.18 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.122e-05/1.005, allocations: 8 kB / 1.365 GB, free: 11.17 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.556e-06/1.005, allocations: 4 kB / 1.365 GB, free: 11.16 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/1.005, allocations: 0 / 1.365 GB, free: 11.16 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003457/1.006, allocations: 160.1 kB / 1.365 GB, free: 10.99 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 6.503e-05/1.006, allocations: 85.14 kB / 1.365 GB, free: 10.89 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.779e-05/1.006, allocations: 4 kB / 1.365 GB, free: 10.89 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001502/1.006, allocations: 15.98 kB / 1.365 GB, free: 10.87 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.494e-05/1.006, allocations: 7.984 kB / 1.365 GB, free: 10.86 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.342e-05/1.006, allocations: 8 kB / 1.365 GB, free: 10.86 MB / 1.092 GB Notification: Performance of sorting global known variables: time 2.96e-05/1.006, allocations: 75.28 kB / 1.365 GB, free: 10.78 MB / 1.092 GB Notification: Performance of sort global known variables: time 1.5e-07/1.006, allocations: 0 / 1.365 GB, free: 10.78 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.001673/1.008, allocations: 0.5663 MB / 1.366 GB, free: 10.21 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.00404/1.012, allocations: 0.9363 MB / 1.367 GB, free: 9.25 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.0002223/1.012, allocations: 67.91 kB / 1.367 GB, free: 9.184 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 3.948e-06/1.012, allocations: 0 / 1.367 GB, free: 9.184 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 7.721e-05/1.012, allocations: 35.92 kB / 1.367 GB, free: 9.148 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002043/1.012, allocations: 6.031 kB / 1.367 GB, free: 9.145 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002458/1.015, allocations: 1.551 MB / 1.368 GB, free: 7.516 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000329/1.015, allocations: 0.6846 MB / 1.369 GB, free: 6.805 MB / 1.092 GB Notification: Performance of simCode: alias equations: time 8.236e-05/1.015, allocations: 24.55 kB / 1.369 GB, free: 6.781 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.551e-05/1.015, allocations: 23.42 kB / 1.369 GB, free: 6.758 MB / 1.092 GB Notification: Performance of SimCode: time 9.62e-07/1.015, allocations: 7.938 kB / 1.369 GB, free: 6.75 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05238/1.068, allocations: 25.45 MB / 1.394 GB, free: 13.34 MB / 1.123 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.518/9.586, allocations: 7.344 kB / 1.394 GB, free: 13.34 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