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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001592/0.001592, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002314/0.002314, allocations: 195.9 kB / 16.25 MB, free: 6.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.269/2.269, allocations: 222.9 MB / 239.9 MB, free: 4.555 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 4.563/4.563, allocations: 461.9 MB / 0.7344 GB, free: 14.94 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 62.03 kB / 0.8987 GB, free: 37.18 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3228/0.324, allocations: 157.4 MB / 1.052 GB, free: 8.688 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck): time 0.004138/0.3282, allocations: 1.333 MB / 1.054 GB, free: 7.34 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.005453/0.3337, allocations: 2.488 MB / 1.056 GB, free: 4.84 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.461e-05/0.3338, allocations: 8 kB / 1.056 GB, free: 4.832 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.706e-05/0.3338, allocations: 3.984 kB / 1.056 GB, free: 4.828 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.541e-05/0.3339, allocations: 3.938 kB / 1.056 GB, free: 4.824 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008919/0.3348, allocations: 119.5 kB / 1.056 GB, free: 4.707 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.512e-05/0.335, allocations: 31.86 kB / 1.056 GB, free: 4.676 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.765e-05/0.335, allocations: 4 kB / 1.056 GB, free: 4.672 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.579e-05/0.3351, allocations: 23.91 kB / 1.056 GB, free: 4.648 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.895e-05/0.3352, allocations: 23.92 kB / 1.056 GB, free: 4.625 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.34e-05/0.3352, allocations: 0 / 1.056 GB, free: 4.625 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004909/0.3357, allocations: 115.8 kB / 1.056 GB, free: 4.512 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.155e-05/0.3358, allocations: 8 kB / 1.056 GB, free: 4.504 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.869e-05/0.3358, allocations: 19.86 kB / 1.056 GB, free: 4.484 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003133/0.3362, allocations: 88 kB / 1.057 GB, free: 4.398 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 8.366e-06/0.3362, allocations: 3.984 kB / 1.057 GB, free: 4.395 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.903e-06/0.3362, allocations: 0 / 1.057 GB, free: 4.395 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.441e-06/0.3362, allocations: 0 / 1.057 GB, free: 4.395 MB / 0.8106 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.0005515/0.3368, allocations: 351.5 kB / 1.057 GB, free: 4.004 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.117e-05/0.3368, allocations: 8.031 kB / 1.057 GB, free: 3.996 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.851e-05/0.3369, allocations: 38.73 kB / 1.057 GB, free: 3.949 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003816/0.3373, allocations: 16.94 kB / 1.057 GB, free: 3.934 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001402/0.3375, allocations: 164.3 kB / 1.057 GB, free: 3.734 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.172e-05/0.3375, allocations: 384 / 1.057 GB, free: 3.734 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.265e-05/0.3376, allocations: 12.36 kB / 1.057 GB, free: 3.723 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001883/0.3378, allocations: 72.14 kB / 1.057 GB, free: 3.637 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/0.3378, allocations: 0 / 1.057 GB, free: 3.637 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.757e-05/0.3378, allocations: 11.94 kB / 1.057 GB, free: 3.625 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.3378, allocations: 0 / 1.057 GB, free: 3.625 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.957e-05/0.3379, allocations: 15.92 kB / 1.057 GB, free: 3.609 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008871/0.3388, allocations: 458.9 kB / 1.058 GB, free: 3.098 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002279/0.3391, allocations: 75.66 kB / 1.058 GB, free: 2.996 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.929e-05/0.3391, allocations: 26.69 kB / 1.058 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.818e-05/0.3392, allocations: 4 kB / 1.058 GB, free: 2.957 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.526e-05/0.3392, allocations: 38.5 kB / 1.058 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=5): time 2.184e-06/0.3392, allocations: 0 / 1.058 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0009834/0.3402, allocations: 306.2 kB / 1.058 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.126e-05/0.3403, allocations: 106.8 kB / 1.058 GB, free: 2.43 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.701e-05/0.3404, allocations: 102.1 kB / 1.058 GB, free: 2.32 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.374e-05/0.3405, allocations: 29.7 kB / 1.058 GB, free: 2.285 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.54e-05/0.3405, allocations: 84.05 kB / 1.058 GB, free: 2.199 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.931e-05/0.3406, allocations: 31.62 kB / 1.058 GB, free: 2.168 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.322e-05/0.3407, allocations: 29.62 kB / 1.058 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001352/0.3408, allocations: 314.8 kB / 1.059 GB, free: 1.816 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.322e-05/0.3409, allocations: 15.98 kB / 1.059 GB, free: 1.801 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.078e-05/0.341, allocations: 57.14 kB / 1.059 GB, free: 1.727 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000158/0.3412, allocations: 73.03 kB / 1.059 GB, free: 1.637 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.3412, allocations: 0 / 1.059 GB, free: 1.637 MB / 0.8106 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002676/0.3415, allocations: 93.55 kB / 1.059 GB, free: 1.539 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.272e-05/0.3415, allocations: 4 kB / 1.059 GB, free: 1.535 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.3415, allocations: 4 kB / 1.059 GB, free: 1.531 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.975e-05/0.3416, allocations: 3.984 kB / 1.059 GB, free: 1.527 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001567/0.3417, allocations: 24 kB / 1.059 GB, free: 1.504 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.538e-06/0.3418, allocations: 0 / 1.059 GB, free: 1.504 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.893e-05/0.3419, allocations: 4 kB / 1.059 GB, free: 1.5 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.646e-05/0.3419, allocations: 11.88 kB / 1.059 GB, free: 1.488 MB / 0.8106 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 0.0001272/0.342, allocations: 127.4 kB / 1.059 GB, free: 1.355 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001205/0.3422, allocations: 7.906 kB / 1.059 GB, free: 1.348 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.498e-05/0.3422, allocations: 12.17 kB / 1.059 GB, free: 1.34 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.3422, allocations: 0 / 1.059 GB, free: 1.34 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.381e-06/0.3423, allocations: 0 / 1.059 GB, free: 1.34 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.668e-06/0.3423, allocations: 0 / 1.059 GB, free: 1.34 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006793/0.343, allocations: 181.6 kB / 1.059 GB, free: 1.113 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.343, allocations: 64 / 1.059 GB, free: 1.113 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001836/0.3432, allocations: 19.98 kB / 1.059 GB, free: 1.094 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.115e-06/0.3432, allocations: 4 kB / 1.059 GB, free: 1.09 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.637e-05/0.3432, allocations: 3.984 kB / 1.059 GB, free: 1.086 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.426e-06/0.3433, allocations: 4 kB / 1.059 GB, free: 1.082 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.059e-06/0.3433, allocations: 3.938 kB / 1.059 GB, free: 1.078 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003723/0.3436, allocations: 330 kB / 1.06 GB, free: 0.7383 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 9.116e-05/0.3438, allocations: 85.02 kB / 1.06 GB, free: 0.6367 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.504e-05/0.3438, allocations: 0 / 1.06 GB, free: 0.6367 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003751/0.3442, allocations: 12.03 kB / 1.06 GB, free: 0.625 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.568e-05/0.3442, allocations: 11.94 kB / 1.06 GB, free: 0.6133 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.248e-05/0.3443, allocations: 0 / 1.06 GB, free: 0.6133 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.272e-05/0.3443, allocations: 79.28 kB / 1.06 GB, free: 0.5352 MB / 0.8106 GB Notification: Performance of sort global known variables: time 3.81e-07/0.3443, allocations: 0 / 1.06 GB, free: 0.5352 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0006641/0.345, allocations: 16 kB / 1.06 GB, free: 0.5195 MB / 0.8106 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.0007682/0.3458, allocations: 0.8629 MB / 1.061 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001854/0.346, allocations: 51.86 kB / 1.061 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.346, allocations: 0 / 1.061 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 5.242e-05/0.3461, allocations: 20.31 kB / 1.061 GB, free: 15.56 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008367/0.347, allocations: 15.92 kB / 1.061 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002683/0.3497, allocations: 1.692 MB / 1.062 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003467/0.35, allocations: 0.6846 MB / 1.063 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001112/0.3502, allocations: 11.98 kB / 1.063 GB, free: 13.01 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.42e-05/0.3502, allocations: 15.44 kB / 1.063 GB, free: 13 MB / 0.8262 GB Notification: Performance of SimCode: time 6.51e-07/0.3502, allocations: 0 / 1.063 GB, free: 13 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.861/4.211, allocations: 1.601 MB / 1.065 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002621/4.212, allocations: 253.4 kB / 1.065 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.852/7.064, allocations: 0 / 1.065 GB, free: 11.34 MB / 0.8262 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 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.mat","/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) "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_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck_res.mat. Warning: Get data of variable der(cpCod) from file Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck_res.mat failed! Error: Could not read variable der(cvCod) in file Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck_res.mat. Warning: Get data of variable der(cvCod) from file Buildings_latest_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