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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001211/0.001211, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001272/0.001272, allocations: 193.7 kB / 16.14 MB, free: 6.648 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.29/1.29, allocations: 222.9 MB / 239.8 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.538/2.538, allocations: 461.9 MB / 0.7342 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 67.86 kB / 0.8985 GB, free: 37.04 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.228/0.2293, allocations: 157.4 MB / 1.052 GB, free: 8.242 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck): time 0.002065/0.2314, allocations: 1.317 MB / 1.053 GB, free: 6.91 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002572/0.234, allocations: 2.507 MB / 1.056 GB, free: 4.391 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.367e-05/0.234, allocations: 8 kB / 1.056 GB, free: 4.383 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.64e-05/0.234, allocations: 3.984 kB / 1.056 GB, free: 4.379 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.794e-05/0.2341, allocations: 3.938 kB / 1.056 GB, free: 4.375 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004076/0.2345, allocations: 111.5 kB / 1.056 GB, free: 4.266 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.124e-05/0.2345, allocations: 35.86 kB / 1.056 GB, free: 4.23 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 2.766e-05/0.2346, allocations: 7.984 kB / 1.056 GB, free: 4.223 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.681e-05/0.2346, allocations: 15.92 kB / 1.056 GB, free: 4.207 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.836e-05/0.2347, allocations: 23.92 kB / 1.056 GB, free: 4.184 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.037e-05/0.2347, allocations: 0 / 1.056 GB, free: 4.184 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002738/0.235, allocations: 111.8 kB / 1.056 GB, free: 4.074 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.473e-05/0.235, allocations: 7.984 kB / 1.056 GB, free: 4.066 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.984e-05/0.235, allocations: 19.92 kB / 1.056 GB, free: 4.047 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001728/0.2352, allocations: 84 kB / 1.056 GB, free: 3.965 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.344e-06/0.2352, allocations: 0 / 1.056 GB, free: 3.965 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.11e-07/0.2352, allocations: 4 kB / 1.056 GB, free: 3.961 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 2.996e-06/0.2352, allocations: 0 / 1.056 GB, free: 3.961 MB / 0.8106 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.0003236/0.2356, allocations: 353.1 kB / 1.057 GB, free: 3.57 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.265e-05/0.2356, allocations: 8.031 kB / 1.057 GB, free: 3.562 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.891e-05/0.2356, allocations: 34.75 kB / 1.057 GB, free: 3.52 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001935/0.2358, allocations: 20.92 kB / 1.057 GB, free: 3.5 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.055e-05/0.2359, allocations: 164.3 kB / 1.057 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.055e-06/0.2359, allocations: 4.375 kB / 1.057 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.902e-05/0.236, allocations: 4.375 kB / 1.057 GB, free: 3.293 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001172/0.2361, allocations: 80.12 kB / 1.057 GB, free: 3.199 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.073e-06/0.2361, allocations: 0 / 1.057 GB, free: 3.199 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.027e-05/0.2361, allocations: 7.938 kB / 1.057 GB, free: 3.191 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.129e-06/0.2361, allocations: 4 kB / 1.057 GB, free: 3.188 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.563e-05/0.2362, allocations: 11.92 kB / 1.057 GB, free: 3.176 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004873/0.2366, allocations: 470.9 kB / 1.057 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001193/0.2368, allocations: 71.72 kB / 1.058 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.545e-05/0.2368, allocations: 18.64 kB / 1.058 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 8.376e-06/0.2368, allocations: 4 kB / 1.058 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.252e-05/0.2369, allocations: 42.5 kB / 1.058 GB, free: 2.473 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=5): time 1.222e-06/0.2369, allocations: 0 / 1.058 GB, free: 2.473 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0005247/0.2374, allocations: 306.5 kB / 1.058 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.333e-05/0.2374, allocations: 106.8 kB / 1.058 GB, free: 1.992 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.245e-05/0.2375, allocations: 102.1 kB / 1.058 GB, free: 1.883 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.767e-05/0.2375, allocations: 33.7 kB / 1.058 GB, free: 1.844 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.151e-05/0.2376, allocations: 88.05 kB / 1.058 GB, free: 1.754 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.933e-05/0.2376, allocations: 27.64 kB / 1.058 GB, free: 1.727 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.79e-05/0.2376, allocations: 29.62 kB / 1.058 GB, free: 1.691 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.034e-05/0.2377, allocations: 314.8 kB / 1.059 GB, free: 1.375 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.968e-05/0.2378, allocations: 15.98 kB / 1.059 GB, free: 1.359 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.555e-05/0.2378, allocations: 57.14 kB / 1.059 GB, free: 1.285 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.537e-05/0.2379, allocations: 69.03 kB / 1.059 GB, free: 1.199 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.2379, allocations: 0 / 1.059 GB, free: 1.199 MB / 0.8106 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001323/0.238, allocations: 97.55 kB / 1.059 GB, free: 1.098 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.089e-05/0.238, allocations: 4 kB / 1.059 GB, free: 1.094 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.667e-06/0.238, allocations: 0 / 1.059 GB, free: 1.094 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.849e-06/0.2381, allocations: 4 kB / 1.059 GB, free: 1.09 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.692e-05/0.2381, allocations: 19.98 kB / 1.059 GB, free: 1.07 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.121e-06/0.2382, allocations: 4 kB / 1.059 GB, free: 1.066 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.785e-05/0.2382, allocations: 4 kB / 1.059 GB, free: 1.062 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.977e-06/0.2382, allocations: 7.938 kB / 1.059 GB, free: 1.055 MB / 0.8106 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 6.406e-05/0.2383, allocations: 125.8 kB / 1.059 GB, free: 0.9219 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.203e-05/0.2383, allocations: 11.89 kB / 1.059 GB, free: 0.9102 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.227e-05/0.2384, allocations: 7.562 kB / 1.059 GB, free: 0.9062 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.2384, allocations: 0 / 1.059 GB, free: 0.9062 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.367e-06/0.2384, allocations: 4 kB / 1.059 GB, free: 0.9023 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.2384, allocations: 0 / 1.059 GB, free: 0.9023 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003153/0.2387, allocations: 177.6 kB / 1.059 GB, free: 0.6797 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.2387, allocations: 0 / 1.059 GB, free: 0.6797 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.865e-05/0.2388, allocations: 20.05 kB / 1.059 GB, free: 0.6602 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.045e-06/0.2388, allocations: 4 kB / 1.059 GB, free: 0.6562 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.153e-06/0.2388, allocations: 0 / 1.059 GB, free: 0.6562 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.542e-06/0.2389, allocations: 8 kB / 1.059 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.2389, allocations: 0 / 1.059 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001894/0.2391, allocations: 334 kB / 1.059 GB, free: 312 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.474e-05/0.2391, allocations: 81.02 kB / 1.06 GB, free: 212 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.391e-05/0.2391, allocations: 4 kB / 1.06 GB, free: 208 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001782/0.2393, allocations: 8 kB / 1.06 GB, free: 200 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.699e-05/0.2393, allocations: 7.922 kB / 1.06 GB, free: 192 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.486e-06/0.2393, allocations: 8 kB / 1.06 GB, free: 184 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 2.889e-05/0.2394, allocations: 79.66 kB / 1.06 GB, free: 104 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2394, allocations: 0 / 1.06 GB, free: 104 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003067/0.2397, allocations: 15.94 kB / 1.06 GB, free: 88 kB / 0.8106 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.000406/0.2401, allocations: 0.8635 MB / 1.061 GB, free: 15.19 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 9.253e-05/0.2402, allocations: 47.86 kB / 1.061 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.2402, allocations: 0 / 1.061 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.326e-05/0.2402, allocations: 12.38 kB / 1.061 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003942/0.2406, allocations: 18.38 kB / 1.061 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001325/0.242, allocations: 1.709 MB / 1.062 GB, free: 13.29 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002033/0.2422, allocations: 0.6887 MB / 1.063 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.162e-05/0.2423, allocations: 8 kB / 1.063 GB, free: 12.57 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.884e-05/0.2423, allocations: 15.44 kB / 1.063 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of SimCode: time 3.01e-07/0.2423, allocations: 0 / 1.063 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1969/0.4392, allocations: 1.561 MB / 1.065 GB, free: 11.17 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002259/0.4395, allocations: 259.2 kB / 1.065 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.608/2.048, allocations: 2.25 kB / 1.065 GB, free: 10.9 MB / 0.8262 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=50 --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