Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck,fileNamePrefix="Buildings_9_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.004573/0.004573, allocations: 108.9 kB / 15.74 MB, free: 6.441 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.001156/0.001156, allocations: 191.7 kB / 16.67 MB, free: 6.355 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.429/1.429, allocations: 222.9 MB / 240.4 MB, free: 4.289 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.454/2.454, allocations: 390.3 MB / 0.6648 GB, free: 236 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 70.62 kB / 0.9504 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2901/0.2913, allocations: 140.4 MB / 1.087 GB, free: 1.996 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck): time 0.002584/0.294, allocations: 1.256 MB / 1.089 GB, free: 0.7305 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002902/0.2969, allocations: 2.501 MB / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.919e-05/0.2969, allocations: 0 / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.874e-05/0.297, allocations: 0 / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.807e-05/0.2971, allocations: 7.922 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000578/0.2976, allocations: 127.4 kB / 1.091 GB, free: 14.09 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 8.283e-05/0.2977, allocations: 43.86 kB / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.162e-05/0.2978, allocations: 3.984 kB / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.868e-05/0.2979, allocations: 19.92 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.237e-05/0.2979, allocations: 15.92 kB / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.2e-05/0.2979, allocations: 4 kB / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002917/0.2982, allocations: 111.8 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.621e-05/0.2983, allocations: 11.98 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.671e-05/0.2983, allocations: 19.92 kB / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001968/0.2985, allocations: 78.66 kB / 1.092 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.2985, allocations: 0 / 1.092 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.833e-06/0.2985, allocations: 4 kB / 1.092 GB, free: 13.78 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.6e-06/0.2985, allocations: 0 / 1.092 GB, free: 13.78 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.0004025/0.2989, allocations: 356.3 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.299, allocations: 8.031 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.896e-05/0.299, allocations: 38.69 kB / 1.092 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002331/0.2993, allocations: 16.83 kB / 1.092 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001118/0.2994, allocations: 164.4 kB / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.252e-05/0.2994, allocations: 4.375 kB / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.988e-05/0.2994, allocations: 384 / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001329/0.2996, allocations: 80.19 kB / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.2996, allocations: 4 kB / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.062e-05/0.2996, allocations: 3.938 kB / 1.092 GB, free: 13.01 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.191e-06/0.2996, allocations: 0 / 1.092 GB, free: 13.01 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.688e-05/0.2997, allocations: 19.92 kB / 1.092 GB, free: 12.99 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005657/0.3003, allocations: 470.9 kB / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001282/0.3004, allocations: 71.64 kB / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.996e-05/0.3004, allocations: 26.78 kB / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 8.426e-06/0.3004, allocations: 4 kB / 1.093 GB, free: 12.33 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.95e-05/0.3005, allocations: 34.56 kB / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=5): time 1.142e-06/0.3005, allocations: 0 / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0005939/0.3011, allocations: 306.1 kB / 1.093 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.106e-05/0.3012, allocations: 115 kB / 1.093 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.021e-05/0.3012, allocations: 93.86 kB / 1.093 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.622e-05/0.3012, allocations: 33.64 kB / 1.093 GB, free: 11.66 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.797e-05/0.3013, allocations: 92.03 kB / 1.093 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.064e-05/0.3013, allocations: 23.56 kB / 1.093 GB, free: 11.54 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.265e-05/0.3014, allocations: 29.7 kB / 1.093 GB, free: 11.51 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001048/0.3015, allocations: 318.8 kB / 1.094 GB, free: 11.19 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.861e-05/0.3015, allocations: 15.98 kB / 1.094 GB, free: 11.17 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.941e-05/0.3016, allocations: 53.14 kB / 1.094 GB, free: 11.1 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.056e-05/0.3017, allocations: 73.09 kB / 1.094 GB, free: 11.01 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.42e-07/0.3017, allocations: 0 / 1.094 GB, free: 11.01 MB / 0.8575 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001302/0.3018, allocations: 89.55 kB / 1.094 GB, free: 10.92 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.3019, allocations: 8 kB / 1.094 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.3019, allocations: 0 / 1.094 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.471e-05/0.3019, allocations: 4 kB / 1.094 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.072e-05/0.302, allocations: 23.92 kB / 1.094 GB, free: 10.88 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.042e-06/0.302, allocations: 0 / 1.094 GB, free: 10.88 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.875e-05/0.302, allocations: 8.125 kB / 1.094 GB, free: 10.88 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.034e-05/0.3021, allocations: 12.55 kB / 1.094 GB, free: 10.86 MB / 0.8575 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.464e-05/0.3021, allocations: 117.8 kB / 1.094 GB, free: 10.74 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.026e-05/0.3022, allocations: 7.906 kB / 1.094 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.039e-05/0.3022, allocations: 11.5 kB / 1.094 GB, free: 10.72 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.3022, allocations: 3.984 kB / 1.094 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.3023, allocations: 4 kB / 1.094 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.329e-06/0.3023, allocations: 3.984 kB / 1.094 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003272/0.3026, allocations: 173.6 kB / 1.094 GB, free: 10.49 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.3026, allocations: 0 / 1.094 GB, free: 10.49 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.681e-05/0.3027, allocations: 24 kB / 1.094 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.3027, allocations: 0 / 1.094 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.835e-06/0.3027, allocations: 0 / 1.094 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.879e-06/0.3027, allocations: 8.047 kB / 1.094 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.3027, allocations: 7.984 kB / 1.094 GB, free: 10.45 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002344/0.303, allocations: 326 kB / 1.095 GB, free: 10.11 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.854e-05/0.303, allocations: 93.05 kB / 1.095 GB, free: 10 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.527e-05/0.3031, allocations: 4 kB / 1.095 GB, free: 10 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001938/0.3033, allocations: 0 / 1.095 GB, free: 10 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.099e-05/0.3033, allocations: 11.92 kB / 1.095 GB, free: 9.988 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.874e-06/0.3033, allocations: 4 kB / 1.095 GB, free: 9.984 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.104e-05/0.3034, allocations: 79.28 kB / 1.095 GB, free: 9.906 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3034, allocations: 0 / 1.095 GB, free: 9.906 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003228/0.3037, allocations: 15.94 kB / 1.095 GB, free: 9.891 MB / 0.8575 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.000535/0.3042, allocations: 0.8638 MB / 1.096 GB, free: 8.996 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001203/0.3044, allocations: 52.02 kB / 1.096 GB, free: 8.945 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3044, allocations: 0 / 1.096 GB, free: 8.945 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 2.847e-05/0.3044, allocations: 19.92 kB / 1.096 GB, free: 8.926 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004665/0.3049, allocations: 12.75 kB / 1.096 GB, free: 8.914 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001506/0.3064, allocations: 1.693 MB / 1.097 GB, free: 7.105 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002394/0.3066, allocations: 0.6963 MB / 1.098 GB, free: 6.383 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.258e-05/0.3067, allocations: 3.984 kB / 1.098 GB, free: 6.379 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.905e-05/0.3067, allocations: 15.44 kB / 1.098 GB, free: 6.363 MB / 0.8575 GB Notification: Performance of SimCode: time 2.6e-07/0.3068, allocations: 4 kB / 1.098 GB, free: 6.359 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01984/0.3266, allocations: 1.713 MB / 1.1 GB, free: 4.824 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.98/8.307, allocations: 9.141 kB / 1.1 GB, free: 4.816 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityDerivativeCheck.fmu > Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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[2]=0.002000 Error: Could not read variable der(cpCod) in file Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck_res.mat. Warning: Get data of variable der(cpCod) from file Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck_res.mat failed! Error: Could not read variable der(cvCod) in file Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck_res.mat. Warning: Get data of variable der(cvCod) from file Buildings_9_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