Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck,fileNamePrefix="Buildings_10_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.001267/0.001267, 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.001361/0.001361, allocations: 198.8 kB / 16.14 MB, free: 6.645 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.295/1.295, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.435/2.435, allocations: 437 MB / 0.7099 GB, free: 5.289 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001339/0.001339, allocations: 63.91 kB / 0.8687 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5034/0.5047, allocations: 151.6 MB / 1.017 GB, free: 2.91 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck): time 0.002352/0.5071, allocations: 1.331 MB / 1.018 GB, free: 1.57 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002752/0.5099, allocations: 2.503 MB / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.612e-05/0.5099, allocations: 0 / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.946e-05/0.5099, allocations: 0 / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 3.545e-05/0.51, allocations: 4 kB / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004666/0.5105, allocations: 115.4 kB / 1.021 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 5.22e-05/0.5105, allocations: 43.84 kB / 1.021 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 2.826e-05/0.5106, allocations: 0 / 1.021 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 3.977e-05/0.5106, allocations: 19.98 kB / 1.021 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 4.92e-05/0.5107, allocations: 11.92 kB / 1.021 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.071e-05/0.5107, allocations: 4 kB / 1.021 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002752/0.511, allocations: 119.7 kB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.412e-05/0.511, allocations: 8 kB / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.025e-05/0.511, allocations: 19.91 kB / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001928/0.5112, allocations: 82.23 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.5112, allocations: 0 / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of FrontEnd: time 8.82e-07/0.5112, allocations: 0 / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.927e-06/0.5112, allocations: 0 / 1.021 GB, free: 14.64 MB / 0.7794 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.000345/0.5116, allocations: 351.5 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.228e-05/0.5116, allocations: 12.03 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.53e-05/0.5117, allocations: 38.75 kB / 1.021 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001933/0.5119, allocations: 16.86 kB / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.009e-05/0.512, allocations: 164.4 kB / 1.021 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.467e-06/0.512, allocations: 384 / 1.021 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.974e-05/0.512, allocations: 12.28 kB / 1.021 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001178/0.5121, allocations: 68.19 kB / 1.022 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.492e-06/0.5121, allocations: 0 / 1.022 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.264e-05/0.5122, allocations: 8 kB / 1.022 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.5122, allocations: 4 kB / 1.022 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.595e-05/0.5122, allocations: 15.88 kB / 1.022 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004997/0.5127, allocations: 470.8 kB / 1.022 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001234/0.5129, allocations: 79.66 kB / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.993e-05/0.5129, allocations: 22.7 kB / 1.022 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 8.746e-06/0.5129, allocations: 4.078 kB / 1.022 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.11e-05/0.5129, allocations: 34.56 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=5): time 1.162e-06/0.5129, allocations: 4 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0005492/0.5135, allocations: 298.1 kB / 1.022 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.621e-05/0.5136, allocations: 110.8 kB / 1.023 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.517e-05/0.5136, allocations: 97.86 kB / 1.023 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.589e-05/0.5136, allocations: 25.7 kB / 1.023 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.594e-05/0.5137, allocations: 88.23 kB / 1.023 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.046e-05/0.5137, allocations: 35.62 kB / 1.023 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.843e-05/0.5137, allocations: 29.62 kB / 1.023 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.797e-05/0.5138, allocations: 322.8 kB / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.492e-05/0.5139, allocations: 8 kB / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.94e-05/0.5139, allocations: 53.14 kB / 1.023 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.543e-05/0.514, allocations: 81.58 kB / 1.023 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/0.514, allocations: 0 / 1.023 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001304/0.5142, allocations: 89.55 kB / 1.023 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.15e-05/0.5142, allocations: 8.125 kB / 1.023 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.5142, allocations: 4 kB / 1.023 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.839e-06/0.5142, allocations: 0 / 1.023 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.93e-05/0.5143, allocations: 27.92 kB / 1.023 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/0.5143, allocations: 4 kB / 1.023 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.755e-05/0.5143, allocations: 4 kB / 1.023 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.095e-06/0.5144, allocations: 7.938 kB / 1.023 GB, free: 11.72 MB / 0.7794 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.395e-05/0.5144, allocations: 109.8 kB / 1.023 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.447e-05/0.5145, allocations: 7.906 kB / 1.023 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.625e-05/0.5145, allocations: 15.5 kB / 1.023 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.5145, allocations: 7.938 kB / 1.023 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.5145, allocations: 0 / 1.023 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.5145, allocations: 64 / 1.023 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003213/0.5149, allocations: 185.6 kB / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.5149, allocations: 0 / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.739e-05/0.515, allocations: 15.98 kB / 1.024 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.515, allocations: 0 / 1.024 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.424e-06/0.515, allocations: 4 kB / 1.024 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.515, allocations: 0 / 1.024 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.515, allocations: 0 / 1.024 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002178/0.5152, allocations: 338 kB / 1.024 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.113e-05/0.5153, allocations: 96.92 kB / 1.024 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.322e-05/0.5153, allocations: 0 / 1.024 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001835/0.5155, allocations: 4 kB / 1.024 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.078e-05/0.5155, allocations: 11.94 kB / 1.024 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.412e-06/0.5155, allocations: 4 kB / 1.024 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.227e-05/0.5156, allocations: 83.27 kB / 1.024 GB, free: 10.76 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5156, allocations: 0 / 1.024 GB, free: 10.76 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003222/0.5159, allocations: 16 kB / 1.024 GB, free: 10.74 MB / 0.7794 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.0004162/0.5163, allocations: 0.8634 MB / 1.025 GB, free: 9.852 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 9.501e-05/0.5164, allocations: 43.97 kB / 1.025 GB, free: 9.809 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.5164, allocations: 0 / 1.025 GB, free: 9.809 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 2.883e-05/0.5165, allocations: 23.92 kB / 1.025 GB, free: 9.785 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004172/0.5169, allocations: 8.875 kB / 1.025 GB, free: 9.777 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001395/0.5183, allocations: 1.714 MB / 1.027 GB, free: 7.945 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002078/0.5185, allocations: 0.6809 MB / 1.027 GB, free: 7.238 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.545e-05/0.5186, allocations: 8 kB / 1.027 GB, free: 7.23 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.357e-05/0.5186, allocations: 19.42 kB / 1.027 GB, free: 7.211 MB / 0.7794 GB Notification: Performance of SimCode: time 2.81e-07/0.5186, allocations: 0 / 1.027 GB, free: 7.211 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3426/0.8612, allocations: 1.556 MB / 1.029 GB, free: 5.84 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002727/0.8615, allocations: 240.8 kB / 1.029 GB, free: 5.59 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.528/2.39, allocations: 0 / 1.029 GB, free: 5.59 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck_res.mat --tempDir=temp_Buildings_10_Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_10_Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityDerivativeCheck.fmu > Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck_res.mat. Warning: Get data of variable der(cpCod) from file Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck_res.mat failed! Error: Could not read variable der(cvCod) in file Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck_res.mat. Warning: Get data of variable der(cvCod) from file Buildings_10_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