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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.003938/0.003938, allocations: 98.19 kB / 15.73 MB, free: 5.605 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.00111/0.001109, allocations: 199.8 kB / 16.67 MB, free: 5.531 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.265/1.265, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.473/2.473, allocations: 482.6 MB / 0.7551 GB, free: 6.652 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.00166/0.00166, allocations: 67.34 kB / 1.083 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2539/0.2556, allocations: 162.3 MB / 1.242 GB, free: 8.98 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamDerivativeCheck): time 0.001811/0.2574, allocations: 1.266 MB / 1.243 GB, free: 7.703 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.1344/0.3918, allocations: 137.7 MB / 1.378 GB, free: 13.49 MB / 1.107 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.585e-05/0.3919, allocations: 0 / 1.378 GB, free: 13.49 MB / 1.107 GB Notification: Performance of NFTyping.typeComponents: time 1.843e-05/0.3919, allocations: 0 / 1.378 GB, free: 13.49 MB / 1.107 GB Notification: Performance of NFTyping.typeBindings: time 4.077e-05/0.392, allocations: 7.922 kB / 1.378 GB, free: 13.48 MB / 1.107 GB Notification: Performance of NFTyping.typeClassSections: time 0.00101/0.393, allocations: 462.6 kB / 1.378 GB, free: 13.03 MB / 1.107 GB Notification: Performance of NFFlatten.flatten: time 6.904e-05/0.3931, allocations: 39.84 kB / 1.378 GB, free: 12.99 MB / 1.107 GB Notification: Performance of NFFlatten.resolveConnections: time 3.294e-05/0.3931, allocations: 11.98 kB / 1.378 GB, free: 12.98 MB / 1.107 GB Notification: Performance of NFEvalConstants.evaluate: time 3.66e-05/0.3932, allocations: 11.98 kB / 1.378 GB, free: 12.96 MB / 1.107 GB Notification: Performance of NFSimplifyModel.simplify: time 6.25e-05/0.3932, allocations: 23.91 kB / 1.378 GB, free: 12.94 MB / 1.107 GB Notification: Performance of NFPackage.collectConstants: time 1.184e-05/0.3933, allocations: 7.938 kB / 1.378 GB, free: 12.93 MB / 1.107 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001314/0.3946, allocations: 0.8232 MB / 1.379 GB, free: 12.11 MB / 1.107 GB Notification: Performance of NFScalarize.scalarize: time 1.717e-05/0.3946, allocations: 7.984 kB / 1.379 GB, free: 12.1 MB / 1.107 GB Notification: Performance of NFVerifyModel.verify: time 2.864e-05/0.3946, allocations: 19.92 kB / 1.379 GB, free: 12.08 MB / 1.107 GB Notification: Performance of NFConvertDAE.convert: time 0.0005237/0.3952, allocations: 443 kB / 1.379 GB, free: 11.65 MB / 1.107 GB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.3952, allocations: 0 / 1.379 GB, free: 11.65 MB / 1.107 GB Notification: Performance of FrontEnd: time 1.182e-06/0.3952, allocations: 4 kB / 1.379 GB, free: 11.64 MB / 1.107 GB Notification: Performance of Transformations before backend: time 3.807e-06/0.3952, allocations: 3.938 kB / 1.379 GB, free: 11.64 MB / 1.107 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.0004415/0.3956, allocations: 375.2 kB / 1.38 GB, free: 11.23 MB / 1.107 GB Notification: Performance of prepare preOptimizeDAE: time 3.155e-05/0.3957, allocations: 11.97 kB / 1.38 GB, free: 11.21 MB / 1.107 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.489e-05/0.3957, allocations: 38.73 kB / 1.38 GB, free: 11.17 MB / 1.107 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001448/0.3959, allocations: 12.94 kB / 1.38 GB, free: 11.16 MB / 1.107 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.832e-05/0.396, allocations: 164.3 kB / 1.38 GB, free: 10.96 MB / 1.107 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.208e-06/0.396, allocations: 384 / 1.38 GB, free: 10.96 MB / 1.107 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.218e-05/0.396, allocations: 19.92 kB / 1.38 GB, free: 10.94 MB / 1.107 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001187/0.3961, allocations: 49.67 kB / 1.38 GB, free: 10.88 MB / 1.107 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.573e-06/0.3961, allocations: 0 / 1.38 GB, free: 10.88 MB / 1.107 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.069e-05/0.3962, allocations: 4 kB / 1.38 GB, free: 10.88 MB / 1.107 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.692e-06/0.3962, allocations: 3.984 kB / 1.38 GB, free: 10.88 MB / 1.107 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.607e-05/0.3962, allocations: 19.92 kB / 1.38 GB, free: 10.86 MB / 1.107 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001562/0.3964, allocations: 165.6 kB / 1.38 GB, free: 10.64 MB / 1.107 GB Notification: Performance of preOpt comSubExp (simulation): time 9.323e-05/0.3965, allocations: 54.5 kB / 1.38 GB, free: 10.58 MB / 1.107 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.789e-05/0.3965, allocations: 24.84 kB / 1.38 GB, free: 10.55 MB / 1.107 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01012/0.4067, allocations: 3.201 MB / 1.383 GB, free: 7.258 MB / 1.107 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.695e-05/0.4067, allocations: 30.56 kB / 1.383 GB, free: 7.219 MB / 1.107 GB Notification: Performance of pre-optimization done (n=7): time 1.073e-06/0.4067, allocations: 0 / 1.383 GB, free: 7.219 MB / 1.107 GB Notification: Performance of matching and sorting (n=11): time 0.03763/0.4443, allocations: 15 MB / 1.398 GB, free: 8.066 MB / 1.123 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.169e-05/0.4444, allocations: 55.41 kB / 1.398 GB, free: 8 MB / 1.123 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.515e-05/0.4445, allocations: 93.86 kB / 1.398 GB, free: 7.898 MB / 1.123 GB Notification: Performance of collectPreVariables (initialization): time 1.766e-05/0.4445, allocations: 29.64 kB / 1.398 GB, free: 7.863 MB / 1.123 GB Notification: Performance of collectInitialEqns (initialization): time 3.111e-05/0.4445, allocations: 80.14 kB / 1.398 GB, free: 7.781 MB / 1.123 GB Notification: Performance of collectInitialBindings (initialization): time 4.174e-05/0.4446, allocations: 51.62 kB / 1.398 GB, free: 7.73 MB / 1.123 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.453e-05/0.4446, allocations: 33.83 kB / 1.398 GB, free: 7.691 MB / 1.123 GB Notification: Performance of setup shared object (initialization): time 0.0001142/0.4447, allocations: 318.8 kB / 1.399 GB, free: 7.371 MB / 1.123 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.232e-05/0.4448, allocations: 23.98 kB / 1.399 GB, free: 7.348 MB / 1.123 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.063e-05/0.4448, allocations: 27.98 kB / 1.399 GB, free: 7.32 MB / 1.123 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001129/0.445, allocations: 64.23 kB / 1.399 GB, free: 7.258 MB / 1.123 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.02e-07/0.445, allocations: 0 / 1.399 GB, free: 7.258 MB / 1.123 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001919/0.4452, allocations: 105.6 kB / 1.399 GB, free: 7.148 MB / 1.123 GB Notification: Performance of prepare postOptimizeDAE: time 1.188e-05/0.4452, allocations: 4 kB / 1.399 GB, free: 7.145 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.346e-06/0.4452, allocations: 0 / 1.399 GB, free: 7.145 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.4452, allocations: 11.98 kB / 1.399 GB, free: 7.133 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.384e-05/0.4453, allocations: 23.98 kB / 1.399 GB, free: 7.109 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.308e-06/0.4453, allocations: 0 / 1.399 GB, free: 7.109 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.46e-05/0.4453, allocations: 4 kB / 1.399 GB, free: 7.105 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.528e-06/0.4454, allocations: 4 kB / 1.399 GB, free: 7.102 MB / 1.123 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.627e-05/0.4454, allocations: 125.7 kB / 1.399 GB, free: 6.969 MB / 1.123 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.566e-05/0.4455, allocations: 3.953 kB / 1.399 GB, free: 6.965 MB / 1.123 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002353/0.4457, allocations: 125.5 kB / 1.399 GB, free: 6.828 MB / 1.123 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.4457, allocations: 0 / 1.399 GB, free: 6.828 MB / 1.123 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.317e-06/0.4457, allocations: 0 / 1.399 GB, free: 6.828 MB / 1.123 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.4458, allocations: 7.984 kB / 1.399 GB, free: 6.82 MB / 1.123 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001248/0.4459, allocations: 169.6 kB / 1.399 GB, free: 6.605 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.91e-07/0.4459, allocations: 4 kB / 1.399 GB, free: 6.602 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001083/0.446, allocations: 24 kB / 1.399 GB, free: 6.578 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.446, allocations: 3.938 kB / 1.399 GB, free: 6.574 MB / 1.123 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.387e-06/0.446, allocations: 7.984 kB / 1.399 GB, free: 6.566 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.446, allocations: 0 / 1.399 GB, free: 6.566 MB / 1.123 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.446, allocations: 0 / 1.399 GB, free: 6.566 MB / 1.123 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002577/0.4463, allocations: 152.9 kB / 1.399 GB, free: 6.398 MB / 1.123 GB Notification: Performance of postOpt removeConstants (simulation): time 6.263e-05/0.4464, allocations: 93.12 kB / 1.4 GB, free: 6.289 MB / 1.123 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.399e-05/0.4464, allocations: 4 kB / 1.4 GB, free: 6.285 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001225/0.4465, allocations: 12 kB / 1.4 GB, free: 6.273 MB / 1.123 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.246e-05/0.4465, allocations: 11.98 kB / 1.4 GB, free: 6.262 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.031e-05/0.4466, allocations: 4 kB / 1.4 GB, free: 6.258 MB / 1.123 GB Notification: Performance of sorting global known variables: time 3.027e-05/0.4466, allocations: 75.28 kB / 1.4 GB, free: 6.184 MB / 1.123 GB Notification: Performance of sort global known variables: time 9e-08/0.4466, allocations: 0 / 1.4 GB, free: 6.184 MB / 1.123 GB Notification: Performance of remove unused functions: time 0.001032/0.4476, allocations: 0.566 MB / 1.4 GB, free: 5.617 MB / 1.123 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.002906/0.4505, allocations: 0.9567 MB / 1.401 GB, free: 4.633 MB / 1.123 GB Notification: Performance of simCode: created initialization part: time 0.0001447/0.4507, allocations: 71.86 kB / 1.401 GB, free: 4.562 MB / 1.123 GB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.4507, allocations: 0 / 1.401 GB, free: 4.562 MB / 1.123 GB Notification: Performance of simCode: created simulation system equations: time 5.938e-05/0.4508, allocations: 31.98 kB / 1.401 GB, free: 4.531 MB / 1.123 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000144/0.4509, allocations: 11.98 kB / 1.401 GB, free: 4.52 MB / 1.123 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00181/0.4527, allocations: 1.551 MB / 1.403 GB, free: 2.891 MB / 1.123 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002477/0.453, allocations: 0.6846 MB / 1.403 GB, free: 2.18 MB / 1.123 GB Notification: Performance of simCode: alias equations: time 7.394e-05/0.4531, allocations: 24.53 kB / 1.403 GB, free: 2.156 MB / 1.123 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.824e-05/0.4531, allocations: 19.44 kB / 1.404 GB, free: 2.137 MB / 1.123 GB Notification: Performance of SimCode: time 1.91e-07/0.4531, allocations: 0 / 1.404 GB, free: 2.137 MB / 1.123 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.292/2.745, allocations: 25.45 MB / 1.428 GB, free: 8.734 MB / 1.154 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.1/25.85, allocations: 0 / 1.428 GB, free: 8.734 MB / 1.154 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=400 --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[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