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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.00108/0.00108, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.008832/0.008832, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.312/1.312, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.212/2.212, allocations: 390.9 MB / 0.6664 GB, free: 2.34 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003244/0.0003244, allocations: 8 kB / 0.8161 GB, free: 13.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6569/0.6572, allocations: 142.4 MB / 0.9551 GB, free: 7.742 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.000987/0.6582, allocations: 0.9906 MB / 0.9561 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002656/0.6609, allocations: 3.208 MB / 0.9592 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.479e-05/0.6609, allocations: 0 / 0.9592 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.308e-05/0.6609, allocations: 0 / 0.9592 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.396e-05/0.661, allocations: 1.469 kB / 0.9593 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003781/0.6614, allocations: 100.2 kB / 0.9593 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.212e-05/0.6614, allocations: 41 kB / 0.9594 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.202e-05/0.6615, allocations: 6.016 kB / 0.9594 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.733e-05/0.6615, allocations: 12.44 kB / 0.9594 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.289e-05/0.6616, allocations: 23.91 kB / 0.9594 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.829e-06/0.6616, allocations: 0 / 0.9594 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001828/0.6618, allocations: 69.69 kB / 0.9595 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.359e-05/0.6618, allocations: 13.27 kB / 0.9595 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.521e-05/0.6618, allocations: 48.84 kB / 0.9596 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000143/0.662, allocations: 68.72 kB / 0.9596 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.662, allocations: 1.469 kB / 0.9596 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.563e-06/0.662, allocations: 0 / 0.9596 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.297e-06/0.662, allocations: 0 / 0.9596 GB, free: 4.07 MB / 0.7169 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.0002749/0.6623, allocations: 339.4 kB / 0.9599 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.6623, allocations: 8.969 kB / 0.96 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.724e-05/0.6624, allocations: 35.72 kB / 0.96 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.534e-05/0.6625, allocations: 8.938 kB / 0.96 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.223e-05/0.6625, allocations: 165.8 kB / 0.9602 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.016e-05/0.6625, allocations: 1.812 kB / 0.9602 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.453e-05/0.6626, allocations: 12.69 kB / 0.9602 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001046/0.6627, allocations: 57.48 kB / 0.9602 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.512e-06/0.6627, allocations: 0 / 0.9602 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.023e-05/0.6627, allocations: 1.812 kB / 0.9602 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.6627, allocations: 3.938 kB / 0.9602 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.541e-05/0.6628, allocations: 18.86 kB / 0.9602 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001195/0.6629, allocations: 172.8 kB / 0.9604 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 7.391e-05/0.663, allocations: 48.09 kB / 0.9605 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.333e-05/0.663, allocations: 12.05 kB / 0.9605 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005094/0.6635, allocations: 0.6073 MB / 0.9611 GB, free: 2.461 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.514e-05/0.6635, allocations: 35.94 kB / 0.9611 GB, free: 2.418 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 9.81e-07/0.6636, allocations: 0 / 0.9611 GB, free: 2.418 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004586/0.664, allocations: 299.8 kB / 0.9614 GB, free: 2.125 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.458e-05/0.664, allocations: 52.78 kB / 0.9614 GB, free: 2.062 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.339e-05/0.6641, allocations: 101.9 kB / 0.9615 GB, free: 1.957 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.967e-06/0.6641, allocations: 29.7 kB / 0.9616 GB, free: 1.922 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.258e-05/0.6641, allocations: 85.42 kB / 0.9616 GB, free: 1.836 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.402e-05/0.6642, allocations: 27.78 kB / 0.9617 GB, free: 1.812 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.15e-05/0.6642, allocations: 20.45 kB / 0.9617 GB, free: 1.789 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.094e-05/0.6642, allocations: 312.2 kB / 0.962 GB, free: 1.477 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.495e-05/0.6643, allocations: 16.23 kB / 0.962 GB, free: 1.469 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.834e-05/0.6643, allocations: 61.45 kB / 0.9621 GB, free: 1.402 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.735e-05/0.6644, allocations: 69.72 kB / 0.9621 GB, free: 1.336 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.6644, allocations: 1.375 kB / 0.9621 GB, free: 1.336 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001126/0.6645, allocations: 94.58 kB / 0.9622 GB, free: 1.273 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.158e-05/0.6645, allocations: 5.5 kB / 0.9622 GB, free: 1.273 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.349e-06/0.6645, allocations: 5.578 kB / 0.9622 GB, free: 1.27 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.095e-05/0.6645, allocations: 1.375 kB / 0.9622 GB, free: 1.27 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.756e-05/0.6646, allocations: 24.42 kB / 0.9622 GB, free: 1.262 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.957e-05/0.6646, allocations: 6.734 kB / 0.9623 GB, free: 1.258 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.736e-05/0.6647, allocations: 13.25 kB / 0.9623 GB, free: 1.246 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.973e-06/0.6647, allocations: 4.125 kB / 0.9623 GB, free: 1.246 MB / 0.7169 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 4.952e-05/0.6648, allocations: 114 kB / 0.9624 GB, free: 1.129 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.395e-05/0.6648, allocations: 1.375 kB / 0.9624 GB, free: 1.129 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.631e-05/0.6648, allocations: 17.33 kB / 0.9624 GB, free: 1.109 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.6648, allocations: 1.812 kB / 0.9624 GB, free: 1.109 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.6648, allocations: 0 / 0.9624 GB, free: 1.109 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.165e-06/0.6648, allocations: 3.938 kB / 0.9624 GB, free: 1.105 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001716/0.665, allocations: 178.2 kB / 0.9626 GB, free: 0.8984 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.665, allocations: 0 / 0.9626 GB, free: 0.8984 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.72e-05/0.6651, allocations: 21.69 kB / 0.9626 GB, free: 0.8906 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.6651, allocations: 0 / 0.9626 GB, free: 0.8906 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.733e-06/0.6651, allocations: 1.375 kB / 0.9626 GB, free: 0.8906 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.6651, allocations: 0 / 0.9626 GB, free: 0.8906 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.6651, allocations: 1.375 kB / 0.9626 GB, free: 0.8906 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001243/0.6653, allocations: 180.2 kB / 0.9628 GB, free: 0.7266 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.65e-05/0.6653, allocations: 84.27 kB / 0.9628 GB, free: 0.6289 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.17e-05/0.6653, allocations: 1.375 kB / 0.9628 GB, free: 0.6289 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.629e-05/0.6654, allocations: 5.375 kB / 0.9629 GB, free: 0.625 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.433e-05/0.6654, allocations: 10.67 kB / 0.9629 GB, free: 0.6172 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.571e-06/0.6654, allocations: 2.75 kB / 0.9629 GB, free: 0.6172 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.641e-05/0.6655, allocations: 80.64 kB / 0.9629 GB, free: 0.5391 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6655, allocations: 5.375 kB / 0.9629 GB, free: 0.5352 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002203/0.6657, allocations: 13.62 kB / 0.963 GB, free: 0.5312 MB / 0.7169 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.000294/0.666, allocations: 0.7124 MB / 0.9637 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 9.391e-05/0.6661, allocations: 38.34 kB / 0.9637 GB, free: 15.83 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.6661, allocations: 4 kB / 0.9637 GB, free: 15.82 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 2.47e-05/0.6661, allocations: 22.83 kB / 0.9637 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002564/0.6664, allocations: 15.56 kB / 0.9637 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00123/0.6676, allocations: 1.577 MB / 0.9653 GB, free: 14.27 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001937/0.6678, allocations: 0.6868 MB / 0.9659 GB, free: 13.57 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 5.261e-05/0.6679, allocations: 15.02 kB / 0.966 GB, free: 13.56 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.292e-05/0.6679, allocations: 11.47 kB / 0.966 GB, free: 13.55 MB / 0.7325 GB Notification: Performance of SimCode: time 3.2e-07/0.6679, allocations: 0 / 0.966 GB, free: 13.55 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.416/5.084, allocations: 1.435 MB / 0.9674 GB, free: 12.87 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002339/5.084, allocations: 192.3 kB / 0.9676 GB, free: 12.61 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.082/7.167, allocations: 3.938 kB / 0.9676 GB, free: 12.61 MB / 0.7325 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[3]=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