Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Media_Examples_SteamDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.SteamDerivativeCheck,fileNamePrefix="Buildings_9_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.006297/0.006297, allocations: 101.1 kB / 15.73 MB, free: 6.051 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.001383/0.001384, allocations: 190.6 kB / 16.67 MB, free: 5.98 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.425/1.425, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.447/2.447, allocations: 390.3 MB / 0.6648 GB, free: 204 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 61.84 kB / 0.9504 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3459/0.3472, allocations: 140.4 MB / 1.087 GB, free: 2.066 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamDerivativeCheck): time 0.002909/0.3502, allocations: 1.27 MB / 1.089 GB, free: 0.7852 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.1746/0.5248, allocations: 137.7 MB / 1.223 GB, free: 6.531 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.948e-05/0.5249, allocations: 0 / 1.223 GB, free: 6.531 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.229e-05/0.525, allocations: 7.922 kB / 1.223 GB, free: 6.523 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.333e-05/0.5251, allocations: 3.984 kB / 1.223 GB, free: 6.52 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.001737/0.5268, allocations: 474.3 kB / 1.224 GB, free: 6.055 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001005/0.5269, allocations: 39.86 kB / 1.224 GB, free: 6.016 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 4.596e-05/0.527, allocations: 0 / 1.224 GB, free: 6.016 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 8.784e-05/0.5271, allocations: 27.91 kB / 1.224 GB, free: 5.988 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001001/0.5272, allocations: 15.98 kB / 1.224 GB, free: 5.973 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.691e-05/0.5272, allocations: 4 kB / 1.224 GB, free: 5.969 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001923/0.5291, allocations: 0.8309 MB / 1.225 GB, free: 5.137 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.558e-05/0.5292, allocations: 15.91 kB / 1.225 GB, free: 5.121 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.281e-05/0.5292, allocations: 15.94 kB / 1.225 GB, free: 5.105 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0008756/0.5301, allocations: 442.6 kB / 1.225 GB, free: 4.676 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.309e-06/0.5301, allocations: 0 / 1.225 GB, free: 4.676 MB / 0.9825 GB Notification: Performance of FrontEnd: time 5.009e-06/0.5301, allocations: 0 / 1.225 GB, free: 4.676 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.095e-05/0.5302, allocations: 7.938 kB / 1.225 GB, free: 4.668 MB / 0.9825 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.0006917/0.5309, allocations: 367.8 kB / 1.225 GB, free: 4.262 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.036e-05/0.5309, allocations: 8.031 kB / 1.225 GB, free: 4.254 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.567e-05/0.531, allocations: 38.73 kB / 1.225 GB, free: 4.207 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002155/0.5312, allocations: 16.84 kB / 1.225 GB, free: 4.191 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001387/0.5313, allocations: 168.3 kB / 1.226 GB, free: 3.988 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.558e-05/0.5314, allocations: 4.375 kB / 1.226 GB, free: 3.984 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.817e-05/0.5314, allocations: 7.938 kB / 1.226 GB, free: 3.977 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000169/0.5316, allocations: 53.67 kB / 1.226 GB, free: 3.918 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.5316, allocations: 0 / 1.226 GB, free: 3.918 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.332e-05/0.5316, allocations: 7.938 kB / 1.226 GB, free: 3.91 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.5316, allocations: 0 / 1.226 GB, free: 3.91 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.743e-05/0.5317, allocations: 23.97 kB / 1.226 GB, free: 3.887 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002321/0.5319, allocations: 161.7 kB / 1.226 GB, free: 3.68 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001249/0.5321, allocations: 54.44 kB / 1.226 GB, free: 3.617 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.94e-05/0.5321, allocations: 20.84 kB / 1.226 GB, free: 3.594 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01151/0.5436, allocations: 3.202 MB / 1.229 GB, free: 304 kB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.956e-05/0.5437, allocations: 38.56 kB / 1.229 GB, free: 256 kB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 3.206e-06/0.5438, allocations: 0 / 1.229 GB, free: 256 kB / 0.9825 GB Notification: Performance of matching and sorting (n=11): time 0.0465/0.5903, allocations: 15 MB / 1.244 GB, free: 1.098 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001758/0.5905, allocations: 55.41 kB / 1.244 GB, free: 1.031 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001038/0.5906, allocations: 89.86 kB / 1.244 GB, free: 0.9336 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.108e-05/0.5907, allocations: 33.7 kB / 1.244 GB, free: 0.8945 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 4.866e-05/0.5907, allocations: 80.14 kB / 1.244 GB, free: 0.8125 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 6.485e-05/0.5908, allocations: 43.36 kB / 1.244 GB, free: 0.7695 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.088e-05/0.5909, allocations: 29.7 kB / 1.244 GB, free: 0.7344 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001582/0.591, allocations: 322.7 kB / 1.244 GB, free: 420 kB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.815e-05/0.5911, allocations: 28.11 kB / 1.244 GB, free: 392 kB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.634e-05/0.5912, allocations: 25.11 kB / 1.244 GB, free: 368 kB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001549/0.5913, allocations: 59.23 kB / 1.244 GB, free: 308 kB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.5913, allocations: 0 / 1.244 GB, free: 308 kB / 0.9981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000276/0.5916, allocations: 109.6 kB / 1.245 GB, free: 192 kB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.068e-05/0.5917, allocations: 8 kB / 1.245 GB, free: 184 kB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.23e-05/0.5917, allocations: 0 / 1.245 GB, free: 184 kB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.781e-05/0.5917, allocations: 0 / 1.245 GB, free: 184 kB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001584/0.5919, allocations: 27.92 kB / 1.245 GB, free: 156 kB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.102e-05/0.5919, allocations: 0 / 1.245 GB, free: 156 kB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.533e-05/0.592, allocations: 8 kB / 1.245 GB, free: 148 kB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.817e-05/0.592, allocations: 4 kB / 1.245 GB, free: 144 kB / 0.9981 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.0001648/0.5921, allocations: 117.8 kB / 1.245 GB, free: 16 kB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.128e-05/0.5922, allocations: 7.906 kB / 1.245 GB, free: 8 kB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003894/0.5926, allocations: 125.6 kB / 1.245 GB, free: 15.88 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.5926, allocations: 8 kB / 1.245 GB, free: 15.87 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.298e-06/0.5927, allocations: 0 / 1.245 GB, free: 15.87 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.118e-06/0.5927, allocations: 3.984 kB / 1.245 GB, free: 15.86 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002495/0.5929, allocations: 173.6 kB / 1.245 GB, free: 15.64 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.5929, allocations: 0 / 1.245 GB, free: 15.64 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000155/0.5931, allocations: 27.98 kB / 1.245 GB, free: 15.62 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.5931, allocations: 3.938 kB / 1.245 GB, free: 15.61 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.315e-05/0.5931, allocations: 7.984 kB / 1.245 GB, free: 15.61 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.5931, allocations: 0 / 1.245 GB, free: 15.61 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.5932, allocations: 0 / 1.245 GB, free: 15.61 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004202/0.5936, allocations: 160.8 kB / 1.245 GB, free: 15.43 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001188/0.5937, allocations: 89.14 kB / 1.245 GB, free: 15.33 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.467e-05/0.5937, allocations: 3.984 kB / 1.245 GB, free: 15.32 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001496/0.5939, allocations: 8 kB / 1.245 GB, free: 15.32 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.698e-05/0.5939, allocations: 11.98 kB / 1.245 GB, free: 15.3 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.765e-05/0.594, allocations: 8.094 kB / 1.245 GB, free: 15.3 MB / 1.014 GB Notification: Performance of sorting global known variables: time 5.583e-05/0.594, allocations: 79.28 kB / 1.245 GB, free: 15.22 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.3e-07/0.594, allocations: 0 / 1.245 GB, free: 15.22 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.003039/0.5971, allocations: 0.5663 MB / 1.246 GB, free: 14.65 MB / 1.014 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.005808/0.6029, allocations: 0.9442 MB / 1.247 GB, free: 13.68 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.000243/0.6032, allocations: 67.05 kB / 1.247 GB, free: 13.62 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/0.6032, allocations: 3.938 kB / 1.247 GB, free: 13.61 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 7.551e-05/0.6033, allocations: 43.92 kB / 1.247 GB, free: 13.57 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002652/0.6035, allocations: 13.72 kB / 1.247 GB, free: 13.56 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002797/0.6063, allocations: 1.54 MB / 1.248 GB, free: 11.94 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003144/0.6067, allocations: 0.6851 MB / 1.249 GB, free: 11.23 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 9.736e-05/0.6068, allocations: 28.52 kB / 1.249 GB, free: 11.2 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.621e-05/0.6069, allocations: 19.44 kB / 1.249 GB, free: 11.18 MB / 1.014 GB Notification: Performance of SimCode: time 4.61e-07/0.6069, allocations: 0 / 1.249 GB, free: 11.18 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7897/1.397, allocations: 25.44 MB / 1.274 GB, free: 161 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.737/10.13, allocations: 14 kB / 1.274 GB, free: 161 MB / 1.014 GB (rm -f Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Media_Examples_SteamDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-10 Buildings_9_Buildings_Media_Examples_SteamDerivativeCheck.fmu > Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.SteamDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_SteamDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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