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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.007125/0.007125, allocations: 99.05 kB / 15.73 MB, free: 6.055 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.001837/0.001837, allocations: 201.9 kB / 16.68 MB, free: 5.977 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.368/1.368, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.603/2.603, allocations: 437 MB / 0.7105 GB, free: 4.957 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 63.89 kB / 1.018 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3191/0.3204, allocations: 151.6 MB / 1.166 GB, free: 7.301 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck): time 0.002271/0.3228, allocations: 1.258 MB / 1.167 GB, free: 6.027 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.00283/0.3256, allocations: 2.515 MB / 1.17 GB, free: 3.5 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.279e-05/0.3256, allocations: 0 / 1.17 GB, free: 3.5 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 1.519e-05/0.3257, allocations: 0 / 1.17 GB, free: 3.5 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 4.465e-05/0.3257, allocations: 3.938 kB / 1.17 GB, free: 3.496 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005198/0.3263, allocations: 127.4 kB / 1.17 GB, free: 3.371 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 9.67e-05/0.3264, allocations: 43.84 kB / 1.17 GB, free: 3.328 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 3.258e-05/0.3264, allocations: 0 / 1.17 GB, free: 3.328 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 4.632e-05/0.3265, allocations: 27.91 kB / 1.17 GB, free: 3.301 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 5.583e-05/0.3265, allocations: 8 kB / 1.17 GB, free: 3.293 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.48e-05/0.3265, allocations: 4 kB / 1.17 GB, free: 3.289 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002854/0.3268, allocations: 119.7 kB / 1.17 GB, free: 3.172 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.339e-05/0.3269, allocations: 4 kB / 1.17 GB, free: 3.168 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 3.587e-05/0.3269, allocations: 23.91 kB / 1.17 GB, free: 3.145 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001974/0.3271, allocations: 86.53 kB / 1.17 GB, free: 3.062 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.3271, allocations: 0 / 1.17 GB, free: 3.062 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.343e-06/0.3271, allocations: 4 kB / 1.17 GB, free: 3.059 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.32e-06/0.3271, allocations: 0 / 1.17 GB, free: 3.059 MB / 0.92 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.0003722/0.3275, allocations: 352.3 kB / 1.171 GB, free: 2.668 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.556e-05/0.3276, allocations: 8.031 kB / 1.171 GB, free: 2.66 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.961e-05/0.3276, allocations: 38.75 kB / 1.171 GB, free: 2.613 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002003/0.3278, allocations: 20.83 kB / 1.171 GB, free: 2.594 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.522e-05/0.3279, allocations: 160.4 kB / 1.171 GB, free: 2.398 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.26e-05/0.3279, allocations: 4.375 kB / 1.171 GB, free: 2.395 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.088e-05/0.328, allocations: 8.375 kB / 1.171 GB, free: 2.387 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001281/0.3281, allocations: 80.12 kB / 1.171 GB, free: 2.293 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.3281, allocations: 0 / 1.171 GB, free: 2.293 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.328e-06/0.3281, allocations: 0 / 1.171 GB, free: 2.293 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.3281, allocations: 0 / 1.171 GB, free: 2.293 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.101e-05/0.3282, allocations: 8 kB / 1.171 GB, free: 2.285 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005393/0.3287, allocations: 474.8 kB / 1.171 GB, free: 1.758 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001284/0.3289, allocations: 71.66 kB / 1.171 GB, free: 1.66 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.823e-05/0.3289, allocations: 22.78 kB / 1.171 GB, free: 1.629 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.084e-05/0.3289, allocations: 8 kB / 1.171 GB, free: 1.621 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.042e-05/0.3289, allocations: 34.56 kB / 1.171 GB, free: 1.578 MB / 0.92 GB Notification: Performance of pre-optimization done (n=5): time 2.585e-06/0.3289, allocations: 0 / 1.171 GB, free: 1.578 MB / 0.92 GB Notification: Performance of matching and sorting (n=7): time 0.0005666/0.3295, allocations: 298.4 kB / 1.172 GB, free: 1.234 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.95e-05/0.3296, allocations: 118.7 kB / 1.172 GB, free: 1.094 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.951e-05/0.3296, allocations: 101.8 kB / 1.172 GB, free: 0.9844 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.328e-05/0.3297, allocations: 25.7 kB / 1.172 GB, free: 0.9531 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 3.56e-05/0.3297, allocations: 91.98 kB / 1.172 GB, free: 0.8594 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.958e-05/0.3297, allocations: 31.55 kB / 1.172 GB, free: 0.8281 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.741e-05/0.3298, allocations: 25.66 kB / 1.172 GB, free: 0.7969 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001003/0.3299, allocations: 326.8 kB / 1.172 GB, free: 480 kB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.808e-05/0.3299, allocations: 16 kB / 1.172 GB, free: 464 kB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.389e-05/0.33, allocations: 49.14 kB / 1.173 GB, free: 396 kB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.115e-05/0.3301, allocations: 77.02 kB / 1.173 GB, free: 300 kB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.41e-07/0.3301, allocations: 0 / 1.173 GB, free: 300 kB / 0.92 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001298/0.3302, allocations: 93.55 kB / 1.173 GB, free: 200 kB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.262e-05/0.3302, allocations: 8 kB / 1.173 GB, free: 192 kB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.3302, allocations: 0 / 1.173 GB, free: 192 kB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.3302, allocations: 4 kB / 1.173 GB, free: 188 kB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.851e-05/0.3303, allocations: 19.98 kB / 1.173 GB, free: 168 kB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.484e-05/0.3303, allocations: 0 / 1.173 GB, free: 168 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.709e-05/0.3304, allocations: 12.03 kB / 1.173 GB, free: 156 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.898e-06/0.3304, allocations: 11.94 kB / 1.173 GB, free: 144 kB / 0.92 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 7.452e-05/0.3305, allocations: 117.8 kB / 1.173 GB, free: 16 kB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.883e-05/0.3306, allocations: 4 kB / 1.173 GB, free: 12 kB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.815e-05/0.3306, allocations: 7.562 kB / 1.173 GB, free: 0 / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.3306, allocations: 0 / 1.173 GB, free: 0 / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.3306, allocations: 0 / 1.173 GB, free: 0 / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.3306, allocations: 4.047 kB / 1.173 GB, free: 15.99 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003309/0.331, allocations: 173.5 kB / 1.173 GB, free: 15.78 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.331, allocations: 0 / 1.173 GB, free: 15.78 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.81e-05/0.3311, allocations: 24.05 kB / 1.173 GB, free: 15.75 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.3311, allocations: 4.609 kB / 1.173 GB, free: 15.75 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.347e-06/0.3311, allocations: 4 kB / 1.173 GB, free: 15.75 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.3311, allocations: 0 / 1.173 GB, free: 15.75 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.3311, allocations: 4 kB / 1.173 GB, free: 15.74 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002112/0.3313, allocations: 329.9 kB / 1.173 GB, free: 15.4 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.424e-05/0.3314, allocations: 89.14 kB / 1.173 GB, free: 15.3 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.503e-05/0.3314, allocations: 4 kB / 1.173 GB, free: 15.29 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001763/0.3316, allocations: 7.938 kB / 1.173 GB, free: 15.29 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.753e-05/0.3316, allocations: 12.02 kB / 1.173 GB, free: 15.27 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.062e-05/0.3316, allocations: 7.984 kB / 1.173 GB, free: 15.27 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 2.972e-05/0.3317, allocations: 75.28 kB / 1.174 GB, free: 15.19 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1e-07/0.3317, allocations: 0 / 1.174 GB, free: 15.19 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003293/0.332, allocations: 16 kB / 1.174 GB, free: 15.18 MB / 0.9356 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.0004653/0.3325, allocations: 0.8632 MB / 1.174 GB, free: 14.28 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001163/0.3326, allocations: 55.97 kB / 1.174 GB, free: 14.23 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3326, allocations: 0 / 1.174 GB, free: 14.23 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 2.645e-05/0.3327, allocations: 19.98 kB / 1.175 GB, free: 14.21 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004372/0.3331, allocations: 11.94 kB / 1.175 GB, free: 14.2 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001479/0.3346, allocations: 1.685 MB / 1.176 GB, free: 12.39 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002312/0.3348, allocations: 0.6885 MB / 1.177 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.39e-05/0.3349, allocations: 7.844 kB / 1.177 GB, free: 11.67 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.392e-05/0.3349, allocations: 19.44 kB / 1.177 GB, free: 11.66 MB / 0.9356 GB Notification: Performance of SimCode: time 2.1e-07/0.3349, allocations: 0 / 1.177 GB, free: 11.66 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.019/0.3539, allocations: 1.717 MB / 1.179 GB, free: 10.12 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.868/8.222, allocations: 13.61 kB / 1.179 GB, free: 10.11 MB / 0.9356 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[2]=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