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.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.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.00715/0.00715, allocations: 99.64 kB / 15.73 MB, free: 6.035 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.001639/0.001639, allocations: 189.6 kB / 16.67 MB, free: 5.969 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.409/1.409, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.762/2.762, allocations: 461.9 MB / 0.7348 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 60.12 kB / 1.054 GB, free: 7.703 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3118/0.3131, allocations: 157.4 MB / 1.207 GB, free: 10.2 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck): time 0.002948/0.3161, allocations: 1.264 MB / 1.208 GB, free: 8.922 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.003876/0.32, allocations: 2.492 MB / 1.211 GB, free: 6.414 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.359e-05/0.3201, allocations: 0 / 1.211 GB, free: 6.414 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.999e-05/0.3202, allocations: 0 / 1.211 GB, free: 6.414 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.232e-05/0.3203, allocations: 7.922 kB / 1.211 GB, free: 6.406 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008587/0.3212, allocations: 131.4 kB / 1.211 GB, free: 6.277 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001165/0.3213, allocations: 43.8 kB / 1.211 GB, free: 6.234 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 5.054e-05/0.3214, allocations: 3.984 kB / 1.211 GB, free: 6.23 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 5.991e-05/0.3214, allocations: 16 kB / 1.211 GB, free: 6.215 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.721e-05/0.3215, allocations: 15.91 kB / 1.211 GB, free: 6.199 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.85e-05/0.3215, allocations: 4 kB / 1.211 GB, free: 6.195 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000426/0.322, allocations: 119.7 kB / 1.211 GB, free: 6.078 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.862e-05/0.322, allocations: 8 kB / 1.211 GB, free: 6.07 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.329e-05/0.3221, allocations: 19.92 kB / 1.211 GB, free: 6.051 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002782/0.3224, allocations: 91.98 kB / 1.211 GB, free: 5.961 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.3224, allocations: 0 / 1.211 GB, free: 5.961 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.494e-06/0.3224, allocations: 0 / 1.211 GB, free: 5.961 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.875e-06/0.3224, allocations: 0 / 1.211 GB, free: 5.961 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.0005799/0.323, allocations: 351.4 kB / 1.212 GB, free: 5.57 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.522e-05/0.323, allocations: 12.02 kB / 1.212 GB, free: 5.559 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.257e-05/0.3231, allocations: 38.75 kB / 1.212 GB, free: 5.512 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002371/0.3233, allocations: 8.938 kB / 1.212 GB, free: 5.504 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001407/0.3235, allocations: 172.4 kB / 1.212 GB, free: 5.297 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.282e-05/0.3235, allocations: 4.375 kB / 1.212 GB, free: 5.293 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.606e-05/0.3235, allocations: 384 / 1.212 GB, free: 5.293 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001563/0.3237, allocations: 76.14 kB / 1.212 GB, free: 5.203 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.3237, allocations: 3.984 kB / 1.212 GB, free: 5.199 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.197e-05/0.3237, allocations: 0 / 1.212 GB, free: 5.199 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.701e-06/0.3238, allocations: 0 / 1.212 GB, free: 5.199 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.401e-05/0.3238, allocations: 12 kB / 1.212 GB, free: 5.188 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007121/0.3245, allocations: 478.7 kB / 1.212 GB, free: 4.656 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001689/0.3247, allocations: 75.66 kB / 1.213 GB, free: 4.555 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.452e-05/0.3248, allocations: 18.7 kB / 1.213 GB, free: 4.527 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.054e-05/0.3248, allocations: 4 kB / 1.213 GB, free: 4.523 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.222e-05/0.3248, allocations: 38.64 kB / 1.213 GB, free: 4.477 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=5): time 3.356e-06/0.3248, allocations: 3.984 kB / 1.213 GB, free: 4.473 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0007468/0.3256, allocations: 302.4 kB / 1.213 GB, free: 4.125 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.388e-05/0.3257, allocations: 110.8 kB / 1.213 GB, free: 3.992 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.827e-05/0.3258, allocations: 101.8 kB / 1.213 GB, free: 3.883 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.311e-05/0.3258, allocations: 29.7 kB / 1.213 GB, free: 3.848 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.155e-05/0.3259, allocations: 80.14 kB / 1.213 GB, free: 3.766 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.429e-05/0.3259, allocations: 31.55 kB / 1.213 GB, free: 3.734 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.838e-05/0.326, allocations: 25.72 kB / 1.213 GB, free: 3.703 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001331/0.3261, allocations: 326.8 kB / 1.214 GB, free: 3.375 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.301e-05/0.3261, allocations: 12 kB / 1.214 GB, free: 3.363 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6e-05/0.3262, allocations: 53.14 kB / 1.214 GB, free: 3.293 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001059/0.3263, allocations: 73.08 kB / 1.214 GB, free: 3.203 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.81e-07/0.3263, allocations: 3.938 kB / 1.214 GB, free: 3.199 MB / 0.9669 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001626/0.3265, allocations: 93.45 kB / 1.214 GB, free: 3.102 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.772e-05/0.3265, allocations: 9.875 kB / 1.214 GB, free: 3.094 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.3265, allocations: 0 / 1.214 GB, free: 3.094 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.139e-05/0.3266, allocations: 4 kB / 1.214 GB, free: 3.09 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.876e-05/0.3267, allocations: 20.12 kB / 1.214 GB, free: 3.07 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.487e-06/0.3267, allocations: 7.922 kB / 1.214 GB, free: 3.062 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.953e-05/0.3267, allocations: 11.98 kB / 1.214 GB, free: 3.051 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.166e-05/0.3268, allocations: 7.938 kB / 1.214 GB, free: 3.043 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.0001182/0.3269, allocations: 117.8 kB / 1.214 GB, free: 2.918 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.715e-05/0.327, allocations: 4 kB / 1.214 GB, free: 2.914 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.748e-05/0.327, allocations: 7.562 kB / 1.214 GB, free: 2.91 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.327, allocations: 3.938 kB / 1.214 GB, free: 2.906 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.205e-06/0.327, allocations: 4 kB / 1.214 GB, free: 2.902 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.327, allocations: 4 kB / 1.214 GB, free: 2.898 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000414/0.3275, allocations: 178.2 kB / 1.214 GB, free: 2.676 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.3275, allocations: 0 / 1.214 GB, free: 2.676 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.299e-05/0.3276, allocations: 28.05 kB / 1.214 GB, free: 2.648 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.3276, allocations: 0 / 1.214 GB, free: 2.648 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.091e-05/0.3276, allocations: 0 / 1.214 GB, free: 2.648 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.438e-06/0.3276, allocations: 4 kB / 1.214 GB, free: 2.645 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.3276, allocations: 0 / 1.214 GB, free: 2.645 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003091/0.3279, allocations: 329.9 kB / 1.214 GB, free: 2.305 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 8.802e-05/0.328, allocations: 85.2 kB / 1.215 GB, free: 2.203 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.38e-05/0.3281, allocations: 12.02 kB / 1.215 GB, free: 2.191 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001726/0.3283, allocations: 0 / 1.215 GB, free: 2.191 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.784e-05/0.3283, allocations: 7.938 kB / 1.215 GB, free: 2.184 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.064e-05/0.3283, allocations: 8 kB / 1.215 GB, free: 2.176 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.608e-05/0.3284, allocations: 79.27 kB / 1.215 GB, free: 2.098 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3284, allocations: 4 kB / 1.215 GB, free: 2.094 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003352/0.3287, allocations: 12 kB / 1.215 GB, free: 2.082 MB / 0.9669 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.000631/0.3293, allocations: 0.8711 MB / 1.216 GB, free: 1.18 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001488/0.3295, allocations: 47.86 kB / 1.216 GB, free: 1.133 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.3295, allocations: 0 / 1.216 GB, free: 1.133 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 2.97e-05/0.3296, allocations: 12 kB / 1.216 GB, free: 1.121 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004944/0.3301, allocations: 16.14 kB / 1.216 GB, free: 1.105 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001941/0.332, allocations: 1.696 MB / 1.217 GB, free: 15.29 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003121/0.3324, allocations: 0.6807 MB / 1.218 GB, free: 14.58 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.645e-05/0.3324, allocations: 11.98 kB / 1.218 GB, free: 14.57 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.041e-05/0.3325, allocations: 19.38 kB / 1.218 GB, free: 14.55 MB / 0.9825 GB Notification: Performance of SimCode: time 1.793e-06/0.3325, allocations: 0 / 1.218 GB, free: 14.55 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02349/0.356, allocations: 1.721 MB / 1.22 GB, free: 13.01 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.872/8.228, allocations: 19.98 kB / 1.22 GB, free: 12.99 MB / 0.9825 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[2]=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