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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.001717/0.001717, allocations: 112.5 kB / 15.73 MB, free: 76 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.00198/0.00198, allocations: 187.9 kB / 16.66 MB, free: 6.582 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.349/1.349, allocations: 222.9 MB / 240.4 MB, free: 4.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.748/2.748, allocations: 469.4 MB / 0.7421 GB, free: 7.641 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 59.91 kB / 1.064 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2665/0.2678, allocations: 159.1 MB / 1.22 GB, free: 14.71 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck): time 0.002127/0.27, allocations: 1.27 MB / 1.221 GB, free: 13.43 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002846/0.2728, allocations: 2.485 MB / 1.223 GB, free: 10.93 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.42e-05/0.2729, allocations: 0 / 1.223 GB, free: 10.93 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.005e-05/0.2729, allocations: 7.922 kB / 1.223 GB, free: 10.92 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 3.889e-05/0.273, allocations: 3.938 kB / 1.223 GB, free: 10.92 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005615/0.2735, allocations: 147.3 kB / 1.224 GB, free: 10.77 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 7.055e-05/0.2736, allocations: 31.86 kB / 1.224 GB, free: 10.74 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 3.363e-05/0.2736, allocations: 7.984 kB / 1.224 GB, free: 10.73 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 4.268e-05/0.2737, allocations: 15.98 kB / 1.224 GB, free: 10.72 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.542e-05/0.2738, allocations: 19.92 kB / 1.224 GB, free: 10.7 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 9.749e-06/0.2738, allocations: 0 / 1.224 GB, free: 10.7 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003116/0.2741, allocations: 123.7 kB / 1.224 GB, free: 10.58 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.302e-05/0.2741, allocations: 0 / 1.224 GB, free: 10.58 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.128e-05/0.2742, allocations: 23.86 kB / 1.224 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001949/0.2744, allocations: 79.78 kB / 1.224 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.633e-06/0.2744, allocations: 7.984 kB / 1.224 GB, free: 10.47 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.163e-06/0.2744, allocations: 0 / 1.224 GB, free: 10.47 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.569e-06/0.2744, allocations: 0 / 1.224 GB, free: 10.47 MB / 0.9825 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.0003551/0.2748, allocations: 347.3 kB / 1.224 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.625e-05/0.2748, allocations: 12.03 kB / 1.224 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.934e-05/0.2748, allocations: 34.75 kB / 1.224 GB, free: 10.03 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002042/0.275, allocations: 12.92 kB / 1.224 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.161e-05/0.2751, allocations: 172.3 kB / 1.224 GB, free: 9.809 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.055e-06/0.2752, allocations: 4.375 kB / 1.224 GB, free: 9.805 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.641e-05/0.2752, allocations: 12.36 kB / 1.224 GB, free: 9.793 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001173/0.2753, allocations: 68.2 kB / 1.224 GB, free: 9.711 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.2753, allocations: 0 / 1.224 GB, free: 9.711 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.012e-05/0.2753, allocations: 3.938 kB / 1.224 GB, free: 9.707 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.2754, allocations: 4 kB / 1.224 GB, free: 9.703 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.917e-05/0.2754, allocations: 11.92 kB / 1.224 GB, free: 9.691 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005152/0.2759, allocations: 470.9 kB / 1.225 GB, free: 9.168 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000124/0.2761, allocations: 79.72 kB / 1.225 GB, free: 9.062 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.95e-05/0.2761, allocations: 22.64 kB / 1.225 GB, free: 9.031 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 6.532e-06/0.2761, allocations: 3.938 kB / 1.225 GB, free: 9.027 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.214e-05/0.2761, allocations: 34.56 kB / 1.225 GB, free: 8.984 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=5): time 1.222e-06/0.2761, allocations: 0 / 1.225 GB, free: 8.984 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0005675/0.2767, allocations: 310.8 kB / 1.225 GB, free: 8.629 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.517e-05/0.2768, allocations: 102.8 kB / 1.225 GB, free: 8.504 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.737e-05/0.2768, allocations: 105.8 kB / 1.226 GB, free: 8.391 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.457e-05/0.2769, allocations: 29.7 kB / 1.226 GB, free: 8.355 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 3.599e-05/0.2769, allocations: 84.09 kB / 1.226 GB, free: 8.27 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.987e-05/0.2769, allocations: 31.73 kB / 1.226 GB, free: 8.238 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.861e-05/0.277, allocations: 25.72 kB / 1.226 GB, free: 8.207 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 8.487e-05/0.2771, allocations: 322.8 kB / 1.226 GB, free: 7.883 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.93e-05/0.2771, allocations: 11.98 kB / 1.226 GB, free: 7.871 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.966e-05/0.2771, allocations: 57.08 kB / 1.226 GB, free: 7.797 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.137e-05/0.2772, allocations: 69.09 kB / 1.226 GB, free: 7.711 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.123e-06/0.2772, allocations: 0 / 1.226 GB, free: 7.711 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001325/0.2774, allocations: 101.5 kB / 1.226 GB, free: 7.605 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.167e-05/0.2774, allocations: 4 kB / 1.226 GB, free: 7.602 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.2774, allocations: 4 kB / 1.226 GB, free: 7.598 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/0.2774, allocations: 4.047 kB / 1.226 GB, free: 7.594 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.414e-05/0.2775, allocations: 28.06 kB / 1.226 GB, free: 7.566 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.2775, allocations: 4 kB / 1.226 GB, free: 7.562 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.872e-05/0.2776, allocations: 0 / 1.226 GB, free: 7.562 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.778e-06/0.2776, allocations: 11.88 kB / 1.226 GB, free: 7.551 MB / 0.9825 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.815e-05/0.2777, allocations: 118.3 kB / 1.226 GB, free: 7.426 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.5e-05/0.2777, allocations: 7.984 kB / 1.226 GB, free: 7.418 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.343e-05/0.2778, allocations: 7.562 kB / 1.226 GB, free: 7.414 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.2778, allocations: 4 kB / 1.226 GB, free: 7.41 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.2778, allocations: 0 / 1.226 GB, free: 7.41 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.2778, allocations: 4 kB / 1.226 GB, free: 7.406 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003329/0.2781, allocations: 181.5 kB / 1.227 GB, free: 7.18 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.2781, allocations: 4 kB / 1.227 GB, free: 7.176 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.903e-05/0.2782, allocations: 19.92 kB / 1.227 GB, free: 7.156 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.2782, allocations: 0 / 1.227 GB, free: 7.156 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.187e-06/0.2783, allocations: 4 kB / 1.227 GB, free: 7.152 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.2783, allocations: 0 / 1.227 GB, free: 7.152 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.2783, allocations: 0 / 1.227 GB, free: 7.152 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002071/0.2785, allocations: 334.1 kB / 1.227 GB, free: 6.809 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.999e-05/0.2785, allocations: 85.06 kB / 1.227 GB, free: 6.707 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.445e-05/0.2786, allocations: 3.938 kB / 1.227 GB, free: 6.703 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001837/0.2788, allocations: 7.984 kB / 1.227 GB, free: 6.695 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.757e-05/0.2788, allocations: 7.938 kB / 1.227 GB, free: 6.688 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.214e-06/0.2788, allocations: 4 kB / 1.227 GB, free: 6.684 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 3.329e-05/0.2788, allocations: 79.66 kB / 1.227 GB, free: 6.605 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.11e-07/0.2788, allocations: 4 kB / 1.227 GB, free: 6.602 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003293/0.2792, allocations: 12 kB / 1.227 GB, free: 6.59 MB / 0.9825 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.0004198/0.2796, allocations: 0.877 MB / 1.228 GB, free: 5.684 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000105/0.2797, allocations: 43.91 kB / 1.228 GB, free: 5.641 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.2797, allocations: 4 kB / 1.228 GB, free: 5.637 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 2.71e-05/0.2798, allocations: 15.94 kB / 1.228 GB, free: 5.621 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004377/0.2802, allocations: 11.94 kB / 1.228 GB, free: 5.609 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001398/0.2816, allocations: 1.696 MB / 1.23 GB, free: 3.797 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002152/0.2818, allocations: 0.6884 MB / 1.23 GB, free: 3.082 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.348e-05/0.2819, allocations: 4 kB / 1.23 GB, free: 3.078 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.712e-05/0.2819, allocations: 19.42 kB / 1.23 GB, free: 3.059 MB / 0.9825 GB Notification: Performance of SimCode: time 2.31e-07/0.2819, allocations: 0 / 1.23 GB, free: 3.059 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01711/0.2991, allocations: 1.719 MB / 1.232 GB, free: 1.523 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.241/7.54, allocations: 12.12 kB / 1.232 GB, free: 1.512 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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) Reference file matches