Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Media_Examples_WaterDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterDerivativeCheck,fileNamePrefix="Buildings_latest_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.007224/0.007224, allocations: 99.92 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.001761/0.001761, allocations: 186.8 kB / 16.67 MB, free: 5.977 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.375/1.375, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.782/2.782, allocations: 461.9 MB / 0.7348 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001466/0.001466, allocations: 67.98 kB / 1.054 GB, free: 7.742 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3707/0.3722, allocations: 157.4 MB / 1.207 GB, free: 10.24 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.002587/0.3748, allocations: 1.262 MB / 1.208 GB, free: 8.961 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.004128/0.379, allocations: 3.272 MB / 1.212 GB, free: 5.668 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.412e-05/0.379, allocations: 0 / 1.212 GB, free: 5.668 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.308e-05/0.3791, allocations: 3.984 kB / 1.212 GB, free: 5.664 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.929e-05/0.3791, allocations: 3.938 kB / 1.212 GB, free: 5.66 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005931/0.3797, allocations: 103.5 kB / 1.212 GB, free: 5.559 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 7.971e-05/0.3798, allocations: 35.91 kB / 1.212 GB, free: 5.523 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 3.753e-05/0.3799, allocations: 0 / 1.212 GB, free: 5.523 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 6.099e-05/0.3799, allocations: 27.86 kB / 1.212 GB, free: 5.496 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.437e-05/0.38, allocations: 19.97 kB / 1.212 GB, free: 5.477 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.241e-05/0.38, allocations: 4 kB / 1.212 GB, free: 5.473 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002474/0.3803, allocations: 75.81 kB / 1.212 GB, free: 5.398 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.869e-05/0.3803, allocations: 11.94 kB / 1.212 GB, free: 5.387 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.71e-05/0.3804, allocations: 15.91 kB / 1.212 GB, free: 5.371 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002022/0.3806, allocations: 64.14 kB / 1.212 GB, free: 5.309 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.3806, allocations: 0 / 1.212 GB, free: 5.309 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.673e-06/0.3806, allocations: 0 / 1.212 GB, free: 5.309 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 9.328e-06/0.3806, allocations: 0 / 1.212 GB, free: 5.309 MB / 0.9669 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.0004251/0.381, allocations: 359.4 kB / 1.212 GB, free: 4.91 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.257e-05/0.3811, allocations: 8.625 kB / 1.212 GB, free: 4.902 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.294e-05/0.3811, allocations: 38.69 kB / 1.212 GB, free: 4.855 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.443e-05/0.3812, allocations: 4.938 kB / 1.212 GB, free: 4.852 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001209/0.3814, allocations: 172.3 kB / 1.213 GB, free: 4.645 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.145e-05/0.3814, allocations: 384 / 1.213 GB, free: 4.645 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.452e-05/0.3814, allocations: 8.375 kB / 1.213 GB, free: 4.637 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001169/0.3815, allocations: 53.61 kB / 1.213 GB, free: 4.578 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.3816, allocations: 0 / 1.213 GB, free: 4.578 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.114e-05/0.3816, allocations: 4 kB / 1.213 GB, free: 4.574 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.132e-06/0.3816, allocations: 4 kB / 1.213 GB, free: 4.57 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.895e-05/0.3816, allocations: 19.92 kB / 1.213 GB, free: 4.551 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001711/0.3818, allocations: 165.6 kB / 1.213 GB, free: 4.34 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001028/0.3819, allocations: 54.55 kB / 1.213 GB, free: 4.277 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.609e-05/0.382, allocations: 8.859 kB / 1.213 GB, free: 4.266 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007455/0.3827, allocations: 0.6027 MB / 1.213 GB, free: 3.555 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.786e-05/0.3828, allocations: 38.5 kB / 1.213 GB, free: 3.508 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=5): time 1.272e-06/0.3828, allocations: 0 / 1.213 GB, free: 3.508 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.000604/0.3834, allocations: 306.5 kB / 1.214 GB, free: 3.156 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.721e-05/0.3834, allocations: 51.41 kB / 1.214 GB, free: 3.094 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.959e-05/0.3835, allocations: 105.8 kB / 1.214 GB, free: 2.98 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.044e-05/0.3836, allocations: 33.69 kB / 1.214 GB, free: 2.941 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.17e-05/0.3836, allocations: 84.14 kB / 1.214 GB, free: 2.855 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.26e-05/0.3836, allocations: 27.56 kB / 1.214 GB, free: 2.828 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.139e-05/0.3837, allocations: 25.7 kB / 1.214 GB, free: 2.797 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001167/0.3838, allocations: 318.8 kB / 1.214 GB, free: 2.477 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3e-05/0.3838, allocations: 15.98 kB / 1.214 GB, free: 2.461 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.513e-05/0.3839, allocations: 57.14 kB / 1.214 GB, free: 2.387 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.134e-05/0.384, allocations: 69.03 kB / 1.215 GB, free: 2.301 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.384, allocations: 0 / 1.215 GB, free: 2.301 MB / 0.9669 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001568/0.3842, allocations: 105.5 kB / 1.215 GB, free: 2.191 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.3842, allocations: 4 kB / 1.215 GB, free: 2.188 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.3842, allocations: 0 / 1.215 GB, free: 2.188 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.753e-05/0.3842, allocations: 4 kB / 1.215 GB, free: 2.184 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.962e-05/0.3843, allocations: 19.98 kB / 1.215 GB, free: 2.164 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.3843, allocations: 4 kB / 1.215 GB, free: 2.16 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.982e-05/0.3844, allocations: 3.938 kB / 1.215 GB, free: 2.156 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.888e-06/0.3844, allocations: 8 kB / 1.215 GB, free: 2.148 MB / 0.9669 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 0.0001141/0.3845, allocations: 121.9 kB / 1.215 GB, free: 2.02 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.272e-05/0.3846, allocations: 4 kB / 1.215 GB, free: 2.016 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.945e-05/0.3846, allocations: 7.969 kB / 1.215 GB, free: 2.012 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.3846, allocations: 0 / 1.215 GB, free: 2.012 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.3846, allocations: 3.984 kB / 1.215 GB, free: 2.008 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.3846, allocations: 3.938 kB / 1.215 GB, free: 2.004 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002459/0.3849, allocations: 173.7 kB / 1.215 GB, free: 1.785 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.3849, allocations: 0 / 1.215 GB, free: 1.785 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.67e-05/0.385, allocations: 16 kB / 1.215 GB, free: 1.77 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.385, allocations: 0 / 1.215 GB, free: 1.77 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.637e-06/0.385, allocations: 8 kB / 1.215 GB, free: 1.762 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.385, allocations: 0 / 1.215 GB, free: 1.762 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.385, allocations: 0 / 1.215 GB, free: 1.762 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000191/0.3852, allocations: 179.6 kB / 1.215 GB, free: 1.57 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.892e-05/0.3853, allocations: 81.14 kB / 1.215 GB, free: 1.473 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.645e-05/0.3853, allocations: 4 kB / 1.215 GB, free: 1.469 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000104/0.3854, allocations: 0 / 1.215 GB, free: 1.469 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.667e-05/0.3854, allocations: 19.89 kB / 1.215 GB, free: 1.449 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.678e-06/0.3854, allocations: 11.98 kB / 1.215 GB, free: 1.438 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.605e-05/0.3855, allocations: 79.28 kB / 1.215 GB, free: 1.359 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3855, allocations: 0 / 1.215 GB, free: 1.359 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002412/0.3857, allocations: 12 kB / 1.215 GB, free: 1.348 MB / 0.9669 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.0004581/0.3862, allocations: 0.7084 MB / 1.216 GB, free: 0.6094 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001123/0.3863, allocations: 43.97 kB / 1.216 GB, free: 0.5664 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3863, allocations: 0 / 1.216 GB, free: 0.5664 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 2.386e-05/0.3864, allocations: 19.98 kB / 1.216 GB, free: 0.5469 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003127/0.3867, allocations: 9.625 kB / 1.216 GB, free: 0.5391 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001476/0.3882, allocations: 1.528 MB / 1.218 GB, free: 14.9 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002914/0.3885, allocations: 0.6807 MB / 1.218 GB, free: 14.19 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.953e-05/0.3885, allocations: 11.98 kB / 1.218 GB, free: 14.18 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.412e-05/0.3886, allocations: 15.44 kB / 1.218 GB, free: 14.16 MB / 0.9825 GB Notification: Performance of SimCode: time 3.3e-07/0.3886, allocations: 0 / 1.218 GB, free: 14.16 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01923/0.4078, allocations: 1.671 MB / 1.22 GB, free: 12.58 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.582/7.989, allocations: 11.11 kB / 1.22 GB, free: 12.57 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Media_Examples_WaterDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Media_Examples_WaterDerivativeCheck.fmu > Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_WaterDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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_latest_Buildings.Media.Examples.WaterDerivativeCheck_res.mat. Warning: Get data of variable der(cpCod) from file Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck_res.mat failed! Error: Could not read variable der(cvCod) in file Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck_res.mat. Warning: Get data of variable der(cvCod) from file Buildings_latest_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