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.001052/0.001052, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001059/0.001059, allocations: 193.7 kB / 16.53 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.219/1.219, allocations: 222.9 MB / 240.2 MB, free: 4.41 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.113/2.113, allocations: 390.3 MB / 0.6647 GB, free: 288 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 63.89 kB / 0.8127 GB, free: 14.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4948/0.496, allocations: 140.4 MB / 0.9497 GB, free: 9.18 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck): time 0.001769/0.4978, allocations: 1.259 MB / 0.951 GB, free: 8.176 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002058/0.4999, allocations: 2.498 MB / 0.9534 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.985e-05/0.4999, allocations: 0 / 0.9534 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.539e-05/0.4999, allocations: 3.938 kB / 0.9534 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.193e-05/0.5, allocations: 7.922 kB / 0.9534 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004047/0.5004, allocations: 124.5 kB / 0.9535 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.342e-05/0.5004, allocations: 37.62 kB / 0.9536 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.372e-05/0.5005, allocations: 6.203 kB / 0.9536 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.452e-05/0.5005, allocations: 16.88 kB / 0.9536 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.747e-05/0.5006, allocations: 18.59 kB / 0.9536 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.09e-05/0.5006, allocations: 6.188 kB / 0.9536 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002511/0.5008, allocations: 118 kB / 0.9537 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.258e-05/0.5009, allocations: 9.047 kB / 0.9537 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.51e-05/0.5009, allocations: 16.2 kB / 0.9537 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001612/0.501, allocations: 82.72 kB / 0.9538 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.5011, allocations: 0 / 0.9538 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.262e-06/0.5011, allocations: 1 kB / 0.9538 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.747e-06/0.5011, allocations: 0 / 0.9538 GB, free: 5.891 MB / 0.7169 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.0002641/0.5013, allocations: 357.4 kB / 0.9542 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.005e-05/0.5014, allocations: 9.469 kB / 0.9542 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.419e-05/0.5014, allocations: 36.17 kB / 0.9542 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001755/0.5016, allocations: 9.656 kB / 0.9542 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.168e-05/0.5016, allocations: 174.2 kB / 0.9544 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.919e-06/0.5017, allocations: 5.906 kB / 0.9544 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.833e-05/0.5017, allocations: 3.812 kB / 0.9544 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001035/0.5018, allocations: 72.8 kB / 0.9545 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.303e-06/0.5018, allocations: 5.281 kB / 0.9545 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.819e-06/0.5018, allocations: 3.984 kB / 0.9545 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.5018, allocations: 1.562 kB / 0.9545 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.465e-05/0.5019, allocations: 14.34 kB / 0.9545 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003933/0.5023, allocations: 474.4 kB / 0.9549 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 9.67e-05/0.5024, allocations: 69.78 kB / 0.955 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.087e-05/0.5024, allocations: 23.2 kB / 0.955 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.052e-05/0.5024, allocations: 1.125 kB / 0.955 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.352e-05/0.5024, allocations: 44.95 kB / 0.9551 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 1.193e-06/0.5024, allocations: 0 / 0.9551 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004586/0.5029, allocations: 294.7 kB / 0.9553 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.689e-05/0.5029, allocations: 109.1 kB / 0.9555 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.73e-05/0.503, allocations: 105.5 kB / 0.9556 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.188e-06/0.503, allocations: 30.64 kB / 0.9556 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.089e-05/0.503, allocations: 86.23 kB / 0.9557 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.488e-05/0.503, allocations: 26.7 kB / 0.9557 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.178e-05/0.5031, allocations: 28.91 kB / 0.9557 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.318e-05/0.5031, allocations: 320 kB / 0.956 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.452e-05/0.5032, allocations: 12.5 kB / 0.956 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.359e-05/0.5032, allocations: 56.89 kB / 0.9561 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.541e-05/0.5033, allocations: 74.95 kB / 0.9562 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.42e-07/0.5033, allocations: 0 / 0.9562 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001276/0.5034, allocations: 99.14 kB / 0.9563 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.176e-05/0.5034, allocations: 5.562 kB / 0.9563 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.117e-06/0.5034, allocations: 1.5 kB / 0.9563 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.172e-05/0.5034, allocations: 2.562 kB / 0.9563 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.088e-05/0.5035, allocations: 19.59 kB / 0.9563 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.5035, allocations: 2.969 kB / 0.9563 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.669e-05/0.5036, allocations: 9.469 kB / 0.9563 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.073e-06/0.5036, allocations: 11.52 kB / 0.9563 GB, free: 3.266 MB / 0.7169 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 4.451e-05/0.5036, allocations: 117.5 kB / 0.9564 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.837e-05/0.5037, allocations: 3.562 kB / 0.9564 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.272e-05/0.5037, allocations: 8.781 kB / 0.9564 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.5037, allocations: 1 kB / 0.9564 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.5037, allocations: 1.156 kB / 0.9564 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.564e-06/0.5037, allocations: 1.188 kB / 0.9564 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002696/0.504, allocations: 182.6 kB / 0.9566 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.504, allocations: 0 / 0.9566 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.021e-05/0.5041, allocations: 25.92 kB / 0.9566 GB, free: 2.914 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.5041, allocations: 1.375 kB / 0.9566 GB, free: 2.914 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.374e-06/0.5041, allocations: 5.188 kB / 0.9566 GB, free: 2.91 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.5041, allocations: 1.375 kB / 0.9566 GB, free: 2.91 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.5041, allocations: 4.969 kB / 0.9566 GB, free: 2.906 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000143/0.5043, allocations: 324.8 kB / 0.957 GB, free: 2.602 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.145e-05/0.5043, allocations: 87.61 kB / 0.957 GB, free: 2.5 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.328e-05/0.5043, allocations: 10.25 kB / 0.957 GB, free: 2.492 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001656/0.5045, allocations: 7.062 kB / 0.9571 GB, free: 2.488 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.416e-05/0.5045, allocations: 6.531 kB / 0.9571 GB, free: 2.484 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.442e-06/0.5045, allocations: 2.812 kB / 0.9571 GB, free: 2.484 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.704e-05/0.5046, allocations: 85.95 kB / 0.9571 GB, free: 2.402 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5046, allocations: 0 / 0.9571 GB, free: 2.402 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003044/0.5049, allocations: 10.78 kB / 0.9572 GB, free: 2.402 MB / 0.7169 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.0002615/0.5052, allocations: 0.8676 MB / 0.958 GB, free: 1.559 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 9.617e-05/0.5053, allocations: 47.69 kB / 0.958 GB, free: 1.539 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.5053, allocations: 1.281 kB / 0.958 GB, free: 1.539 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.255e-05/0.5053, allocations: 20.44 kB / 0.9581 GB, free: 1.531 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003922/0.5057, allocations: 16.98 kB / 0.9581 GB, free: 1.52 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00106/0.5068, allocations: 1.689 MB / 0.9597 GB, free: 15.87 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002002/0.507, allocations: 0.6855 MB / 0.9604 GB, free: 15.17 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 4.845e-05/0.507, allocations: 7.375 kB / 0.9604 GB, free: 15.16 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.015e-05/0.5071, allocations: 15.06 kB / 0.9604 GB, free: 15.15 MB / 0.7325 GB Notification: Performance of SimCode: time 2.91e-07/0.5071, allocations: 5.781 kB / 0.9604 GB, free: 15.15 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2924/0.7995, allocations: 1.675 MB / 0.9621 GB, free: 14.29 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.71/8.509, allocations: 5.562 kB / 0.9621 GB, free: 14.29 MB / 0.7325 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[3]=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