Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_Buildings_Media_Examples_SteamDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.SteamDerivativeCheck,fileNamePrefix="Buildings_10_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.001404/0.001404, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00174/0.00174, allocations: 198.1 kB / 16.14 MB, free: 6.711 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.329/1.329, allocations: 222.9 MB / 239.8 MB, free: 4.641 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.508/2.508, allocations: 437 MB / 0.7099 GB, free: 5.398 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001456/0.001457, allocations: 63.91 kB / 0.8686 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5579/0.5594, allocations: 151.6 MB / 1.017 GB, free: 2.816 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamDerivativeCheck): time 0.00235/0.5617, allocations: 1.319 MB / 1.018 GB, free: 1.488 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.1355/0.6972, allocations: 135.7 MB / 1.151 GB, free: 9.273 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.244e-05/0.6973, allocations: 0 / 1.151 GB, free: 9.273 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 2.333e-05/0.6973, allocations: 3.984 kB / 1.151 GB, free: 9.27 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 5.538e-05/0.6974, allocations: 0 / 1.151 GB, free: 9.27 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.001162/0.6986, allocations: 366.8 kB / 1.151 GB, free: 8.91 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 7.163e-05/0.6987, allocations: 39.86 kB / 1.151 GB, free: 8.871 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 4.054e-05/0.6987, allocations: 11.98 kB / 1.151 GB, free: 8.859 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 4.809e-05/0.6988, allocations: 23.92 kB / 1.151 GB, free: 8.836 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 6.616e-05/0.6989, allocations: 11.97 kB / 1.151 GB, free: 8.824 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 1.108e-05/0.6989, allocations: 4 kB / 1.151 GB, free: 8.82 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001464/0.7004, allocations: 0.8192 MB / 1.152 GB, free: 8 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 1.753e-05/0.7004, allocations: 7.938 kB / 1.152 GB, free: 7.992 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 3.111e-05/0.7004, allocations: 15.92 kB / 1.152 GB, free: 7.977 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0007048/0.7011, allocations: 449.4 kB / 1.152 GB, free: 7.539 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.7012, allocations: 7.938 kB / 1.152 GB, free: 7.531 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.142e-06/0.7012, allocations: 3.938 kB / 1.152 GB, free: 7.527 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 3.647e-06/0.7012, allocations: 0 / 1.152 GB, free: 7.527 MB / 0.9044 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.0004995/0.7017, allocations: 371.5 kB / 1.153 GB, free: 7.117 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/0.7017, allocations: 8.031 kB / 1.153 GB, free: 7.109 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.624e-05/0.7018, allocations: 34.75 kB / 1.153 GB, free: 7.066 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001743/0.7019, allocations: 12.92 kB / 1.153 GB, free: 7.055 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.573e-05/0.702, allocations: 164.3 kB / 1.153 GB, free: 6.855 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.064e-05/0.7021, allocations: 4.375 kB / 1.153 GB, free: 6.852 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.338e-05/0.7021, allocations: 7.938 kB / 1.153 GB, free: 6.844 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001425/0.7022, allocations: 53.67 kB / 1.153 GB, free: 6.785 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.243e-06/0.7023, allocations: 0 / 1.153 GB, free: 6.785 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.229e-05/0.7023, allocations: 4 kB / 1.153 GB, free: 6.781 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.7023, allocations: 4 kB / 1.153 GB, free: 6.777 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.444e-05/0.7024, allocations: 23.86 kB / 1.153 GB, free: 6.754 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001597/0.7025, allocations: 165.7 kB / 1.153 GB, free: 6.543 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000102/0.7026, allocations: 58.5 kB / 1.153 GB, free: 6.477 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.963e-05/0.7027, allocations: 16.86 kB / 1.153 GB, free: 6.457 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01012/0.7128, allocations: 3.171 MB / 1.156 GB, free: 3.191 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.228e-05/0.7128, allocations: 34.55 kB / 1.156 GB, free: 3.148 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=7): time 1.453e-06/0.7128, allocations: 4 kB / 1.156 GB, free: 3.145 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11): time 0.0414/0.7543, allocations: 14.86 MB / 1.171 GB, free: 4.133 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.287e-05/0.7543, allocations: 59.39 kB / 1.171 GB, free: 4.062 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.73e-05/0.7544, allocations: 97.86 kB / 1.171 GB, free: 3.957 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.278e-05/0.7545, allocations: 25.7 kB / 1.171 GB, free: 3.926 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 3.98e-05/0.7545, allocations: 84.14 kB / 1.171 GB, free: 3.84 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 5.088e-05/0.7546, allocations: 43.39 kB / 1.171 GB, free: 3.797 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.788e-05/0.7546, allocations: 25.72 kB / 1.171 GB, free: 3.766 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001275/0.7548, allocations: 326.8 kB / 1.171 GB, free: 3.438 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.792e-05/0.7548, allocations: 19.98 kB / 1.171 GB, free: 3.418 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.526e-05/0.7549, allocations: 24.12 kB / 1.171 GB, free: 3.395 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001301/0.755, allocations: 64.84 kB / 1.171 GB, free: 3.328 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.755, allocations: 3.938 kB / 1.171 GB, free: 3.324 MB / 0.92 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002309/0.7552, allocations: 109.2 kB / 1.172 GB, free: 3.215 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/0.7553, allocations: 7.984 kB / 1.172 GB, free: 3.207 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.7553, allocations: 0 / 1.172 GB, free: 3.207 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.748e-05/0.7553, allocations: 4 kB / 1.172 GB, free: 3.203 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001173/0.7554, allocations: 20 kB / 1.172 GB, free: 3.184 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.645e-06/0.7555, allocations: 0 / 1.172 GB, free: 3.184 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.314e-05/0.7555, allocations: 7.984 kB / 1.172 GB, free: 3.176 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.21e-05/0.7555, allocations: 8 kB / 1.172 GB, free: 3.168 MB / 0.92 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 0.0001036/0.7556, allocations: 122.2 kB / 1.172 GB, free: 3.039 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.378e-05/0.7557, allocations: 0 / 1.172 GB, free: 3.039 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002929/0.756, allocations: 125.4 kB / 1.172 GB, free: 2.914 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.616e-06/0.756, allocations: 4 kB / 1.172 GB, free: 2.91 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.762e-06/0.756, allocations: 4 kB / 1.172 GB, free: 2.906 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.756, allocations: 0 / 1.172 GB, free: 2.906 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001716/0.7562, allocations: 185.6 kB / 1.172 GB, free: 2.676 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.7562, allocations: 0 / 1.172 GB, free: 2.676 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001285/0.7563, allocations: 31.86 kB / 1.172 GB, free: 2.645 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.7563, allocations: 0 / 1.172 GB, free: 2.645 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.373e-05/0.7564, allocations: 4 kB / 1.172 GB, free: 2.641 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.7564, allocations: 0 / 1.172 GB, free: 2.641 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.7564, allocations: 4 kB / 1.172 GB, free: 2.637 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003242/0.7567, allocations: 153.2 kB / 1.172 GB, free: 2.469 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 8.413e-05/0.7568, allocations: 89.05 kB / 1.172 GB, free: 2.363 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.895e-05/0.7568, allocations: 4 kB / 1.172 GB, free: 2.359 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001437/0.757, allocations: 15.98 kB / 1.172 GB, free: 2.344 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.084e-05/0.757, allocations: 7.984 kB / 1.172 GB, free: 2.336 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.401e-05/0.757, allocations: 8 kB / 1.172 GB, free: 2.328 MB / 0.92 GB Notification: Performance of sorting global known variables: time 4.008e-05/0.7571, allocations: 79.28 kB / 1.172 GB, free: 2.25 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7571, allocations: 0 / 1.172 GB, free: 2.25 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.001949/0.7591, allocations: 0.5585 MB / 1.173 GB, free: 1.691 MB / 0.92 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.003984/0.763, allocations: 0.9443 MB / 1.174 GB, free: 0.7148 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0001687/0.7632, allocations: 67.84 kB / 1.174 GB, free: 0.6484 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.7632, allocations: 3.938 kB / 1.174 GB, free: 0.6445 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 6.097e-05/0.7633, allocations: 39.92 kB / 1.174 GB, free: 0.6055 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001882/0.7635, allocations: 9.266 kB / 1.174 GB, free: 0.5977 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002269/0.7658, allocations: 1.539 MB / 1.176 GB, free: 14.98 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002249/0.766, allocations: 0.6887 MB / 1.176 GB, free: 14.27 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0001004/0.7661, allocations: 28.48 kB / 1.176 GB, free: 14.24 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.406e-05/0.7662, allocations: 19.44 kB / 1.176 GB, free: 14.22 MB / 0.9356 GB Notification: Performance of SimCode: time 5.61e-07/0.7662, allocations: 0 / 1.176 GB, free: 14.22 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1565/0.9227, allocations: 25.26 MB / 1.201 GB, free: 5.008 MB / 0.9512 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002111/0.923, allocations: 200.2 kB / 1.201 GB, free: 4.754 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.57/3.492, allocations: 0 / 1.201 GB, free: 4.754 MB / 0.9512 GB (rm -f Buildings_10_Buildings.Media.Examples.SteamDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Media.Examples.SteamDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Examples.SteamDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Media.Examples.SteamDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Media.Examples.SteamDerivativeCheck_res.mat --tempDir=temp_Buildings_10_Buildings_Media_Examples_SteamDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-10 Buildings_10_Buildings_Media_Examples_SteamDerivativeCheck.fmu > Buildings_10_Buildings.Media.Examples.SteamDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Examples.SteamDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Examples_SteamDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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