Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.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.WaterDerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Media_Examples_WaterDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterDerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Media_Examples_WaterDerivativeCheck",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.006392/0.006392, allocations: 101.6 kB / 15.73 MB, free: 5.98 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.001361/0.001361, allocations: 187.4 kB / 16.67 MB, free: 5.918 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.451/1.451, 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 9.1.3-maint.9.1.x/package.mo): time 2.511/2.511, allocations: 390.3 MB / 0.6648 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00156/0.00156, allocations: 67.89 kB / 0.9504 GB, free: 8.195 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9557/0.9572, allocations: 140.4 MB / 1.087 GB, free: 5.277 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.002274/0.9595, allocations: 1.266 MB / 1.089 GB, free: 4.395 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003244/0.9628, allocations: 3.257 MB / 1.092 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.036e-05/0.9629, allocations: 0 / 1.092 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.145e-05/0.9629, allocations: 5.359 kB / 1.092 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.573e-05/0.963, allocations: 5.766 kB / 1.092 GB, free: 2.02 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004672/0.9634, allocations: 109.8 kB / 1.092 GB, free: 1.961 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 7.947e-05/0.9635, allocations: 43.38 kB / 1.092 GB, free: 1.941 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.17e-05/0.9636, allocations: 3.203 kB / 1.092 GB, free: 1.941 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.912e-05/0.9636, allocations: 16.2 kB / 1.092 GB, free: 1.938 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.621e-05/0.9637, allocations: 21.17 kB / 1.092 GB, free: 1.926 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.101e-05/0.9637, allocations: 5.781 kB / 1.092 GB, free: 1.922 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002501/0.964, allocations: 81.09 kB / 1.092 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.702e-05/0.964, allocations: 3.969 kB / 1.092 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.772e-05/0.964, allocations: 20.42 kB / 1.092 GB, free: 1.875 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002249/0.9643, allocations: 68.47 kB / 1.092 GB, free: 1.855 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.9643, allocations: 0 / 1.092 GB, free: 1.855 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.473e-06/0.9643, allocations: 0 / 1.092 GB, free: 1.855 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.833e-06/0.9643, allocations: 0 / 1.092 GB, free: 1.855 MB / 0.8575 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.0004399/0.9648, allocations: 347.5 kB / 1.093 GB, free: 1.492 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.156e-05/0.9648, allocations: 17.81 kB / 1.093 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.107e-05/0.9649, allocations: 32.91 kB / 1.093 GB, free: 1.445 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001085/0.965, allocations: 8.922 kB / 1.093 GB, free: 1.441 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.685e-05/0.9651, allocations: 167 kB / 1.093 GB, free: 1.242 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.647e-05/0.9651, allocations: 1.906 kB / 1.093 GB, free: 1.242 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.372e-05/0.9651, allocations: 4.656 kB / 1.093 GB, free: 1.242 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001786/0.9653, allocations: 61.72 kB / 1.093 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.9653, allocations: 0 / 1.093 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.34e-05/0.9654, allocations: 0.75 kB / 1.093 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.9654, allocations: 1.562 kB / 1.093 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.147e-05/0.9655, allocations: 23.56 kB / 1.093 GB, free: 1.188 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001879/0.9657, allocations: 162.9 kB / 1.093 GB, free: 0.9922 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001189/0.9658, allocations: 49.44 kB / 1.093 GB, free: 0.9609 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.124e-05/0.9658, allocations: 18.27 kB / 1.093 GB, free: 0.9492 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000765/0.9666, allocations: 0.6067 MB / 1.094 GB, free: 304 kB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.972e-05/0.9666, allocations: 37.38 kB / 1.094 GB, free: 260 kB / 0.8575 GB Notification: Performance of pre-optimization done (n=5): time 1.262e-06/0.9667, allocations: 0 / 1.094 GB, free: 260 kB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0007799/0.9674, allocations: 299.4 kB / 1.094 GB, free: 15.97 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.058e-05/0.9675, allocations: 53.08 kB / 1.094 GB, free: 15.91 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001355/0.9677, allocations: 104.2 kB / 1.094 GB, free: 15.8 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.92e-05/0.9677, allocations: 27.11 kB / 1.094 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 7.906e-05/0.9678, allocations: 97.47 kB / 1.094 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 3.772e-05/0.9678, allocations: 25.86 kB / 1.094 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.302e-05/0.9679, allocations: 23.69 kB / 1.094 GB, free: 15.64 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001865/0.9681, allocations: 317.6 kB / 1.095 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.177e-05/0.9682, allocations: 14.14 kB / 1.095 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.166e-05/0.9682, allocations: 55.94 kB / 1.095 GB, free: 15.26 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001152/0.9684, allocations: 72.47 kB / 1.095 GB, free: 15.19 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.9684, allocations: 1 kB / 1.095 GB, free: 15.19 MB / 0.8731 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001873/0.9686, allocations: 97.92 kB / 1.095 GB, free: 15.13 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.087e-05/0.9686, allocations: 7.484 kB / 1.095 GB, free: 15.13 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.9686, allocations: 1 kB / 1.095 GB, free: 15.13 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.308e-05/0.9686, allocations: 2.438 kB / 1.095 GB, free: 15.13 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001161/0.9688, allocations: 22.78 kB / 1.095 GB, free: 15.13 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.467e-06/0.9688, allocations: 2.156 kB / 1.095 GB, free: 15.13 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.594e-05/0.9688, allocations: 6.234 kB / 1.095 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.276e-06/0.9688, allocations: 4.938 kB / 1.095 GB, free: 15.12 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (12): * Single equations (assignments): 12 * 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.441e-05/0.9689, allocations: 118.2 kB / 1.095 GB, free: 15 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.129e-05/0.969, allocations: 9.844 kB / 1.095 GB, free: 15 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.841e-05/0.969, allocations: 9.594 kB / 1.095 GB, free: 14.99 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.524e-06/0.969, allocations: 0.9688 kB / 1.095 GB, free: 14.99 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.969, allocations: 3.938 kB / 1.095 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.969, allocations: 9.734 kB / 1.095 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002512/0.9693, allocations: 176.9 kB / 1.095 GB, free: 14.78 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.9693, allocations: 0 / 1.095 GB, free: 14.78 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.247e-05/0.9694, allocations: 19.09 kB / 1.095 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.9694, allocations: 1.906 kB / 1.095 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.908e-06/0.9694, allocations: 1.094 kB / 1.095 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.9694, allocations: 4.797 kB / 1.095 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.9694, allocations: 0.6562 kB / 1.095 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001847/0.9696, allocations: 171.6 kB / 1.095 GB, free: 14.62 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 5.161e-05/0.9697, allocations: 90 kB / 1.095 GB, free: 14.52 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.476e-05/0.9697, allocations: 1.297 kB / 1.095 GB, free: 14.52 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000104/0.9698, allocations: 3.125 kB / 1.095 GB, free: 14.52 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.125e-05/0.9698, allocations: 8.156 kB / 1.095 GB, free: 14.52 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.637e-06/0.9698, allocations: 10.19 kB / 1.095 GB, free: 14.51 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 3.577e-05/0.9699, allocations: 83.42 kB / 1.096 GB, free: 14.43 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9699, allocations: 0 / 1.096 GB, free: 14.43 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0002428/0.9701, allocations: 10.59 kB / 1.096 GB, free: 14.43 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (hLiqSym,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 (7): * Single equations (assignments): 7 * 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.000426/0.9706, allocations: 0.7087 MB / 1.096 GB, free: 13.75 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0001239/0.9707, allocations: 43.39 kB / 1.096 GB, free: 13.73 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.9707, allocations: 1.062 kB / 1.096 GB, free: 13.73 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 2.687e-05/0.9707, allocations: 16 kB / 1.096 GB, free: 13.73 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003283/0.9711, allocations: 12.91 kB / 1.096 GB, free: 13.72 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001711/0.9728, allocations: 1.526 MB / 1.098 GB, free: 12.28 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002233/0.973, allocations: 0.6833 MB / 1.098 GB, free: 11.59 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 4.939e-05/0.9731, allocations: 12.84 kB / 1.099 GB, free: 11.58 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.85e-05/0.9731, allocations: 16.39 kB / 1.099 GB, free: 11.57 MB / 0.8731 GB Notification: Performance of SimCode: time 3.51e-07/0.9731, allocations: 0 / 1.099 GB, free: 11.57 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01979/0.9929, allocations: 1.651 MB / 1.1 GB, free: 11.16 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.597/8.59, allocations: 12.84 kB / 1.1 GB, free: 11.15 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Media_Examples_WaterDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Media_Examples_WaterDerivativeCheck.fmu > Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_WaterDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[501]=1.000000 File[2]=0.002000 Error: Could not read variable der(cpCod) in file Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck_res.mat. Warning: Get data of variable der(cpCod) from file Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck_res.mat failed! Error: Could not read variable der(cvCod) in file Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck_res.mat. Warning: Get data of variable der(cvCod) from file Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck_res.mat failed! " Variables in the reference:time,der(hLiqSym),der(hLiqCod),der(cpSym),der(cpCod),der(cvSym),der(cvCod) Variables in the result:T,cpCod,cpSym,cvCod,cvSym,der(T),der(cpSym),der(cvSym),der(hLiqCod),der(hLiqSym),hLiqCod,hLiqSym,time