Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityDerivativeCheck",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.004473/0.004473, allocations: 97.03 kB / 15.73 MB, free: 6.484 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.001322/0.001322, allocations: 192.2 kB / 16.67 MB, free: 6.391 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.263/1.263, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.535/2.535, allocations: 482.6 MB / 0.755 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001695/0.001695, allocations: 67.89 kB / 1.083 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2682/0.2699, allocations: 162.3 MB / 1.242 GB, free: 9.883 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck): time 0.001951/0.2719, allocations: 1.261 MB / 1.243 GB, free: 8.613 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.002725/0.2746, allocations: 2.484 MB / 1.245 GB, free: 6.117 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.151e-05/0.2746, allocations: 0 / 1.245 GB, free: 6.117 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 1.395e-05/0.2746, allocations: 7.938 kB / 1.246 GB, free: 6.109 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 3.81e-05/0.2747, allocations: 7.984 kB / 1.246 GB, free: 6.102 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004487/0.2752, allocations: 135.3 kB / 1.246 GB, free: 5.969 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 6.888e-05/0.2752, allocations: 27.92 kB / 1.246 GB, free: 5.941 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 2.84e-05/0.2753, allocations: 4 kB / 1.246 GB, free: 5.938 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.939e-05/0.2753, allocations: 19.97 kB / 1.246 GB, free: 5.918 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.552e-05/0.2754, allocations: 19.92 kB / 1.246 GB, free: 5.898 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 9.528e-06/0.2754, allocations: 4 kB / 1.246 GB, free: 5.895 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002667/0.2757, allocations: 119.7 kB / 1.246 GB, free: 5.777 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.257e-05/0.2757, allocations: 3.984 kB / 1.246 GB, free: 5.773 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 2.99e-05/0.2757, allocations: 19.92 kB / 1.246 GB, free: 5.754 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001802/0.2759, allocations: 79.72 kB / 1.246 GB, free: 5.676 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.985e-06/0.2759, allocations: 0 / 1.246 GB, free: 5.676 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.263e-06/0.2759, allocations: 0 / 1.246 GB, free: 5.676 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.138e-06/0.2759, allocations: 4 kB / 1.246 GB, free: 5.672 MB / 0.9981 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.0003818/0.2763, allocations: 355.3 kB / 1.246 GB, free: 5.277 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.078e-05/0.2763, allocations: 12.03 kB / 1.246 GB, free: 5.266 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.047e-05/0.2764, allocations: 42.75 kB / 1.246 GB, free: 5.215 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001763/0.2766, allocations: 16.86 kB / 1.246 GB, free: 5.199 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001019/0.2767, allocations: 160.4 kB / 1.246 GB, free: 5.004 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.602e-05/0.2767, allocations: 12.31 kB / 1.246 GB, free: 4.992 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.433e-05/0.2767, allocations: 8.328 kB / 1.247 GB, free: 4.984 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001246/0.2769, allocations: 76.17 kB / 1.247 GB, free: 4.895 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-06/0.2769, allocations: 4 kB / 1.247 GB, free: 4.891 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.307e-06/0.2769, allocations: 0 / 1.247 GB, free: 4.891 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.2769, allocations: 4 kB / 1.247 GB, free: 4.887 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.525e-05/0.2769, allocations: 11.92 kB / 1.247 GB, free: 4.875 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005246/0.2775, allocations: 462.9 kB / 1.247 GB, free: 4.359 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001275/0.2776, allocations: 75.83 kB / 1.247 GB, free: 4.258 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.053e-05/0.2776, allocations: 26.62 kB / 1.247 GB, free: 4.223 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.404e-05/0.2777, allocations: 3.938 kB / 1.247 GB, free: 4.219 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.505e-05/0.2777, allocations: 42.56 kB / 1.247 GB, free: 4.168 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=5): time 1.202e-06/0.2777, allocations: 0 / 1.247 GB, free: 4.168 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7): time 0.0005447/0.2782, allocations: 306.5 kB / 1.247 GB, free: 3.816 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.354e-05/0.2783, allocations: 102.8 kB / 1.248 GB, free: 3.691 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.587e-05/0.2784, allocations: 101.8 kB / 1.248 GB, free: 3.582 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.442e-05/0.2784, allocations: 25.95 kB / 1.248 GB, free: 3.551 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 4.401e-05/0.2785, allocations: 100.1 kB / 1.248 GB, free: 3.449 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.038e-05/0.2785, allocations: 27.75 kB / 1.248 GB, free: 3.422 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.751e-05/0.2785, allocations: 25.7 kB / 1.248 GB, free: 3.391 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001161/0.2787, allocations: 318.8 kB / 1.248 GB, free: 3.07 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.749e-05/0.2787, allocations: 15.98 kB / 1.248 GB, free: 3.055 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.324e-05/0.2787, allocations: 57.08 kB / 1.248 GB, free: 2.98 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.11e-05/0.2788, allocations: 65.09 kB / 1.248 GB, free: 2.898 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.32e-07/0.2788, allocations: 0 / 1.248 GB, free: 2.898 MB / 0.9981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001322/0.279, allocations: 105.5 kB / 1.248 GB, free: 2.789 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.254e-05/0.279, allocations: 4 kB / 1.248 GB, free: 2.785 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.687e-06/0.279, allocations: 3.938 kB / 1.248 GB, free: 2.781 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.236e-05/0.279, allocations: 4 kB / 1.248 GB, free: 2.777 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.011e-05/0.2791, allocations: 19.98 kB / 1.248 GB, free: 2.758 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.2791, allocations: 7.938 kB / 1.248 GB, free: 2.75 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.524e-05/0.2791, allocations: 0 / 1.248 GB, free: 2.75 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.016e-05/0.2792, allocations: 11.94 kB / 1.248 GB, free: 2.738 MB / 0.9981 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.603e-05/0.2792, allocations: 117.8 kB / 1.249 GB, free: 2.613 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.217e-05/0.2793, allocations: 8.094 kB / 1.249 GB, free: 2.605 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.004e-05/0.2793, allocations: 11.55 kB / 1.249 GB, free: 2.59 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.2793, allocations: 4 kB / 1.249 GB, free: 2.586 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.2793, allocations: 0 / 1.249 GB, free: 2.586 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.2794, allocations: 0 / 1.249 GB, free: 2.586 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003115/0.2797, allocations: 173.6 kB / 1.249 GB, free: 2.367 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.2797, allocations: 4.062 kB / 1.249 GB, free: 2.363 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.151e-05/0.2798, allocations: 19.94 kB / 1.249 GB, free: 2.344 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.2798, allocations: 0 / 1.249 GB, free: 2.344 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.141e-06/0.2798, allocations: 0 / 1.249 GB, free: 2.344 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.045e-06/0.2798, allocations: 11.98 kB / 1.249 GB, free: 2.332 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.2798, allocations: 0 / 1.249 GB, free: 2.332 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00022/0.28, allocations: 330 kB / 1.249 GB, free: 1.992 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.38e-05/0.2801, allocations: 81.14 kB / 1.249 GB, free: 1.895 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.162e-05/0.2801, allocations: 4 kB / 1.249 GB, free: 1.891 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001585/0.2803, allocations: 8 kB / 1.249 GB, free: 1.883 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.792e-05/0.2803, allocations: 15.86 kB / 1.249 GB, free: 1.867 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.263e-06/0.2803, allocations: 4.375 kB / 1.249 GB, free: 1.863 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 3.702e-05/0.2803, allocations: 83.27 kB / 1.249 GB, free: 1.781 MB / 0.9981 GB Notification: Performance of sort global known variables: time 9e-08/0.2803, allocations: 0 / 1.249 GB, free: 1.781 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002849/0.2806, allocations: 12 kB / 1.249 GB, free: 1.77 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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.0004919/0.2811, allocations: 0.8677 MB / 1.25 GB, free: 0.8711 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0001035/0.2812, allocations: 43.97 kB / 1.25 GB, free: 0.8281 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.2813, allocations: 0 / 1.25 GB, free: 0.8281 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 2.761e-05/0.2813, allocations: 24.23 kB / 1.25 GB, free: 0.8047 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003783/0.2817, allocations: 16 kB / 1.25 GB, free: 0.7891 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4918/0.7735, allocations: 1.681 MB / 1.252 GB, free: 13.66 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001017/0.7736, allocations: 0.6844 MB / 1.253 GB, free: 12.96 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 5.335e-05/0.7737, allocations: 11.28 kB / 1.253 GB, free: 12.96 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.26e-05/0.7737, allocations: 16.45 kB / 1.253 GB, free: 12.95 MB / 0.9981 GB Notification: Performance of SimCode: time 6.61e-07/0.7737, allocations: 0.8438 kB / 1.253 GB, free: 12.95 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2228/0.9965, allocations: 1.71 MB / 1.254 GB, free: 12.69 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.227/10.22, allocations: 10.91 kB / 1.254 GB, free: 12.69 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-08 Buildings_latest_Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityDerivativeCheck.fmu > Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.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_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck_res.mat. Warning: Get data of variable der(cpCod) from file Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck_res.mat failed! Error: Could not read variable der(cvCod) in file Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck_res.mat. Warning: Get data of variable der(cvCod) from file Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck_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