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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001163/0.001163, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001131/0.001131, allocations: 196.6 kB / 16.25 MB, free: 6.625 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.286/1.286, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.337/2.337, allocations: 437 MB / 0.7101 GB, free: 5.27 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001324/0.001324, allocations: 63.91 kB / 0.8688 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5171/0.5185, allocations: 151.6 MB / 1.017 GB, free: 2.707 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamDerivativeCheck): time 0.002611/0.5211, allocations: 1.327 MB / 1.018 GB, free: 1.371 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.1295/0.6507, allocations: 135.7 MB / 1.151 GB, free: 9.152 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.385e-05/0.6507, allocations: 0 / 1.151 GB, free: 9.152 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 2.434e-05/0.6508, allocations: 3.938 kB / 1.151 GB, free: 9.148 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 4.894e-05/0.6509, allocations: 11.92 kB / 1.151 GB, free: 9.137 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.00115/0.652, allocations: 406.7 kB / 1.151 GB, free: 8.738 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 6.372e-05/0.6521, allocations: 35.92 kB / 1.151 GB, free: 8.703 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 3.472e-05/0.6521, allocations: 4 kB / 1.151 GB, free: 8.699 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 4.398e-05/0.6522, allocations: 27.84 kB / 1.151 GB, free: 8.672 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 6.179e-05/0.6523, allocations: 15.98 kB / 1.151 GB, free: 8.656 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 1.136e-05/0.6523, allocations: 8 kB / 1.151 GB, free: 8.648 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001264/0.6535, allocations: 0.8114 MB / 1.152 GB, free: 7.836 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 1.623e-05/0.6536, allocations: 7.922 kB / 1.152 GB, free: 7.828 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 2.551e-05/0.6536, allocations: 15.98 kB / 1.152 GB, free: 7.812 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0004972/0.6541, allocations: 445.4 kB / 1.152 GB, free: 7.379 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.6541, allocations: 0 / 1.152 GB, free: 7.379 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.122e-06/0.6541, allocations: 0 / 1.152 GB, free: 7.379 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 5.17e-06/0.6541, allocations: 0 / 1.152 GB, free: 7.379 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.000447/0.6546, allocations: 375.4 kB / 1.153 GB, free: 6.965 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.416e-05/0.6546, allocations: 8.031 kB / 1.153 GB, free: 6.957 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.292e-05/0.6547, allocations: 38.75 kB / 1.153 GB, free: 6.91 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000167/0.6548, allocations: 12.92 kB / 1.153 GB, free: 6.898 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.526e-05/0.6549, allocations: 160.4 kB / 1.153 GB, free: 6.703 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.045e-05/0.6549, allocations: 384 / 1.153 GB, free: 6.703 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.454e-05/0.655, allocations: 15.84 kB / 1.153 GB, free: 6.688 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001272/0.6551, allocations: 61.59 kB / 1.153 GB, free: 6.621 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.002e-06/0.6551, allocations: 0 / 1.153 GB, free: 6.621 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.177e-05/0.6551, allocations: 4 kB / 1.153 GB, free: 6.617 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-06/0.6551, allocations: 4 kB / 1.153 GB, free: 6.613 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.223e-05/0.6552, allocations: 15.98 kB / 1.153 GB, free: 6.598 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001616/0.6554, allocations: 161.7 kB / 1.153 GB, free: 6.391 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001005/0.6555, allocations: 66.38 kB / 1.153 GB, free: 6.316 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.725e-05/0.6555, allocations: 12.86 kB / 1.153 GB, free: 6.301 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01037/0.6659, allocations: 3.174 MB / 1.156 GB, free: 3.031 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.702e-05/0.6659, allocations: 34.55 kB / 1.156 GB, free: 2.988 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=7): time 1.252e-06/0.6659, allocations: 4 kB / 1.156 GB, free: 2.984 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11): time 0.0407/0.7067, allocations: 14.86 MB / 1.171 GB, free: 3.973 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.06e-05/0.7067, allocations: 59.39 kB / 1.171 GB, free: 3.902 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.013e-05/0.7068, allocations: 97.86 kB / 1.171 GB, free: 3.797 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.728e-05/0.7068, allocations: 25.7 kB / 1.171 GB, free: 3.766 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 2.831e-05/0.7068, allocations: 84.14 kB / 1.171 GB, free: 3.68 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 4.01e-05/0.7069, allocations: 47.38 kB / 1.171 GB, free: 3.633 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.477e-05/0.7069, allocations: 25.72 kB / 1.171 GB, free: 3.602 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 9.349e-05/0.707, allocations: 326.8 kB / 1.172 GB, free: 3.273 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.03e-05/0.7071, allocations: 19.98 kB / 1.172 GB, free: 3.254 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.355e-05/0.7071, allocations: 27.81 kB / 1.172 GB, free: 3.23 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001172/0.7073, allocations: 64.97 kB / 1.172 GB, free: 3.164 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.41e-07/0.7073, allocations: 0 / 1.172 GB, free: 3.164 MB / 0.92 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002138/0.7075, allocations: 105.6 kB / 1.172 GB, free: 3.055 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/0.7075, allocations: 7.984 kB / 1.172 GB, free: 3.047 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.987e-06/0.7075, allocations: 0 / 1.172 GB, free: 3.047 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.043e-05/0.7075, allocations: 4 kB / 1.172 GB, free: 3.043 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001094/0.7077, allocations: 23.94 kB / 1.172 GB, free: 3.02 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.7077, allocations: 3.938 kB / 1.172 GB, free: 3.016 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.836e-05/0.7077, allocations: 7.984 kB / 1.172 GB, free: 3.008 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.019e-05/0.7077, allocations: 4 kB / 1.172 GB, free: 3.004 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 7.517e-05/0.7078, allocations: 122.3 kB / 1.172 GB, free: 2.875 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.869e-05/0.7078, allocations: 0 / 1.172 GB, free: 2.875 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002586/0.7081, allocations: 129.3 kB / 1.172 GB, free: 2.746 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.7081, allocations: 0 / 1.172 GB, free: 2.746 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.878e-06/0.7081, allocations: 8 kB / 1.172 GB, free: 2.738 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.7081, allocations: 0 / 1.172 GB, free: 2.738 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001233/0.7083, allocations: 177.6 kB / 1.172 GB, free: 2.516 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.7083, allocations: 0 / 1.172 GB, free: 2.516 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001234/0.7084, allocations: 27.98 kB / 1.172 GB, free: 2.488 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.7084, allocations: 0 / 1.172 GB, free: 2.488 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.112e-05/0.7084, allocations: 4 kB / 1.172 GB, free: 2.484 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.7084, allocations: 0 / 1.172 GB, free: 2.484 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.7084, allocations: 4 kB / 1.172 GB, free: 2.48 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002665/0.7087, allocations: 152.9 kB / 1.172 GB, free: 2.312 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 6.48e-05/0.7088, allocations: 93.05 kB / 1.173 GB, free: 2.203 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.492e-05/0.7088, allocations: 4 kB / 1.173 GB, free: 2.199 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001485/0.709, allocations: 15.98 kB / 1.173 GB, free: 2.184 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.956e-05/0.709, allocations: 7.984 kB / 1.173 GB, free: 2.176 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.13e-05/0.709, allocations: 4 kB / 1.173 GB, free: 2.172 MB / 0.92 GB Notification: Performance of sorting global known variables: time 2.855e-05/0.709, allocations: 83.28 kB / 1.173 GB, free: 2.09 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.1e-07/0.709, allocations: 0 / 1.173 GB, free: 2.09 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.001306/0.7104, allocations: 0.5585 MB / 1.173 GB, free: 1.531 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.003218/0.7136, allocations: 0.9368 MB / 1.174 GB, free: 0.5625 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0001565/0.7138, allocations: 68.02 kB / 1.174 GB, free: 0.4961 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.7138, allocations: 0 / 1.174 GB, free: 0.4961 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 6.241e-05/0.7138, allocations: 47.86 kB / 1.174 GB, free: 460 kB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000166/0.714, allocations: 14.47 kB / 1.174 GB, free: 448 kB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001925/0.7159, allocations: 1.551 MB / 1.176 GB, free: 14.81 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002078/0.7162, allocations: 0.6846 MB / 1.176 GB, free: 14.1 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 9.421e-05/0.7163, allocations: 24.55 kB / 1.176 GB, free: 14.07 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.157e-05/0.7163, allocations: 23.42 kB / 1.176 GB, free: 14.05 MB / 0.9356 GB Notification: Performance of SimCode: time 2.2e-07/0.7163, allocations: 0 / 1.176 GB, free: 14.05 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1994/0.9157, allocations: 25.33 MB / 1.201 GB, free: 4.793 MB / 0.9512 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003098/0.9161, allocations: 192 kB / 1.201 GB, free: 4.539 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.482/3.399, allocations: 0 / 1.201 GB, free: 4.539 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