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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0013/0.0013, 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.001315/0.001315, allocations: 195 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.308/1.308, allocations: 222.9 MB / 239.8 MB, free: 4.496 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.216/2.216, allocations: 390.2 MB / 0.6643 GB, free: 0.625 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001136/0.001136, allocations: 64.09 kB / 0.812 GB, free: 14.8 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4814/0.4825, allocations: 140.4 MB / 0.949 GB, free: 9.18 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck): time 0.001776/0.4843, allocations: 1.333 MB / 0.9503 GB, free: 8.117 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001948/0.4863, allocations: 2.499 MB / 0.9528 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.303e-05/0.4863, allocations: 0 / 0.9528 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.74e-05/0.4863, allocations: 0 / 0.9528 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.288e-05/0.4864, allocations: 1.781 kB / 0.9528 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003549/0.4867, allocations: 119.7 kB / 0.9529 GB, free: 6.016 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.624e-05/0.4868, allocations: 41.58 kB / 0.9529 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 2.799e-05/0.4868, allocations: 2.438 kB / 0.9529 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.269e-05/0.4869, allocations: 16.92 kB / 0.953 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.425e-05/0.4869, allocations: 18.17 kB / 0.953 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.038e-05/0.4869, allocations: 5.812 kB / 0.953 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00023/0.4872, allocations: 112.3 kB / 0.9531 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.303e-05/0.4872, allocations: 10.94 kB / 0.9531 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.369e-05/0.4872, allocations: 18.91 kB / 0.9531 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001567/0.4874, allocations: 79.41 kB / 0.9532 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.856e-06/0.4874, allocations: 0 / 0.9532 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of FrontEnd: time 6.82e-07/0.4874, allocations: 1.062 kB / 0.9532 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 2.715e-06/0.4874, allocations: 0 / 0.9532 GB, free: 5.855 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.0002536/0.4876, allocations: 354.1 kB / 0.9535 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.237e-05/0.4877, allocations: 9.594 kB / 0.9535 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.115e-05/0.4877, allocations: 35.81 kB / 0.9536 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001798/0.4879, allocations: 13.23 kB / 0.9536 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.432e-05/0.4879, allocations: 169.5 kB / 0.9537 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.526e-06/0.488, allocations: 3 kB / 0.9537 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.902e-05/0.488, allocations: 6.938 kB / 0.9538 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.793e-05/0.4881, allocations: 77.27 kB / 0.9538 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.741e-06/0.4881, allocations: 1.25 kB / 0.9538 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.057e-06/0.4881, allocations: 0.9688 kB / 0.9538 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.4881, allocations: 1.812 kB / 0.9538 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.193e-05/0.4882, allocations: 9.5 kB / 0.9538 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000383/0.4885, allocations: 474.2 kB / 0.9543 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 9.681e-05/0.4886, allocations: 82.59 kB / 0.9544 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.095e-05/0.4887, allocations: 26.62 kB / 0.9544 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.989e-06/0.4887, allocations: 1.406 kB / 0.9544 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.114e-05/0.4887, allocations: 35.91 kB / 0.9544 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 1.132e-06/0.4887, allocations: 0 / 0.9544 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.000444/0.4892, allocations: 310.8 kB / 0.9547 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.349e-05/0.4892, allocations: 105.3 kB / 0.9548 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.469e-05/0.4892, allocations: 97.42 kB / 0.9549 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.246e-06/0.4892, allocations: 26.98 kB / 0.9549 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.051e-05/0.4893, allocations: 93.38 kB / 0.955 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.3e-05/0.4893, allocations: 26.81 kB / 0.9551 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.01e-05/0.4893, allocations: 25.3 kB / 0.9551 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.053e-05/0.4894, allocations: 324.2 kB / 0.9554 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.402e-05/0.4894, allocations: 16.86 kB / 0.9554 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.119e-05/0.4894, allocations: 43.69 kB / 0.9555 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.265e-05/0.4895, allocations: 74.61 kB / 0.9555 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.71e-07/0.4895, allocations: 1.469 kB / 0.9555 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000108/0.4896, allocations: 98.33 kB / 0.9556 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 9.919e-06/0.4896, allocations: 5.875 kB / 0.9556 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.947e-06/0.4896, allocations: 1.438 kB / 0.9556 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.818e-06/0.4896, allocations: 1.594 kB / 0.9556 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.181e-05/0.4897, allocations: 32.98 kB / 0.9557 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.56e-06/0.4897, allocations: 2.125 kB / 0.9557 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.465e-05/0.4898, allocations: 1.469 kB / 0.9557 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.905e-06/0.4898, allocations: 8.656 kB / 0.9557 GB, free: 3.234 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.128e-05/0.4898, allocations: 113.8 kB / 0.9558 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.699e-05/0.4899, allocations: 10.72 kB / 0.9558 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.235e-05/0.4899, allocations: 8.531 kB / 0.9558 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.4899, allocations: 1.094 kB / 0.9558 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.4899, allocations: 13.11 kB / 0.9558 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.4899, allocations: 1.062 kB / 0.9558 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002608/0.4902, allocations: 182.6 kB / 0.956 GB, free: 2.879 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.4902, allocations: 4.547 kB / 0.956 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.882e-05/0.4903, allocations: 14.34 kB / 0.956 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.4903, allocations: 1.375 kB / 0.956 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.063e-06/0.4903, allocations: 1.375 kB / 0.956 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.4903, allocations: 1.188 kB / 0.956 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.4903, allocations: 1.438 kB / 0.956 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001357/0.4905, allocations: 336.4 kB / 0.9563 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.97e-05/0.4905, allocations: 83.98 kB / 0.9564 GB, free: 2.461 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.249e-05/0.4905, allocations: 1.469 kB / 0.9564 GB, free: 2.461 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001658/0.4907, allocations: 10.2 kB / 0.9564 GB, free: 2.453 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.35e-05/0.4907, allocations: 12.17 kB / 0.9564 GB, free: 2.445 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.793e-06/0.4907, allocations: 2.688 kB / 0.9564 GB, free: 2.445 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.575e-05/0.4907, allocations: 80.88 kB / 0.9565 GB, free: 2.367 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.4907, allocations: 0 / 0.9565 GB, free: 2.367 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002919/0.491, allocations: 15.28 kB / 0.9565 GB, free: 2.363 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.0002455/0.4913, allocations: 0.8635 MB / 0.9574 GB, free: 1.523 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 8.702e-05/0.4914, allocations: 43.72 kB / 0.9574 GB, free: 1.508 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.4914, allocations: 0 / 0.9574 GB, free: 1.508 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.25e-05/0.4914, allocations: 23.36 kB / 0.9574 GB, free: 1.496 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003765/0.4918, allocations: 9.594 kB / 0.9574 GB, free: 1.492 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001041/0.4928, allocations: 1.698 MB / 0.9591 GB, free: 15.83 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001919/0.493, allocations: 0.6823 MB / 0.9598 GB, free: 15.13 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 5.278e-05/0.4931, allocations: 20.08 kB / 0.9598 GB, free: 15.12 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.998e-05/0.4931, allocations: 18.97 kB / 0.9598 GB, free: 15.1 MB / 0.7325 GB Notification: Performance of SimCode: time 2.1e-07/0.4931, allocations: 0 / 0.9598 GB, free: 15.1 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.259/1.752, allocations: 1.547 MB / 0.9613 GB, free: 14.39 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001986/1.752, allocations: 244.3 kB / 0.9616 GB, free: 14.13 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.358/4.11, allocations: 3.938 kB / 0.9616 GB, free: 14.13 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