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: translateModel(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.cpSym.|der.cpCod.|der.cvSym.|der.cvCod.",fileNamePrefix="Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck") translateModel(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.cpSym.|der.cpCod.|der.cvSym.|der.cvCod.",fileNamePrefix="Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001005/0.001005, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.008316/0.008317, allocations: 170.6 kB / 16.27 MB, free: 6.652 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.433/1.433, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.837/2.837, allocations: 462.7 MB / 0.7364 GB, free: 284 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0004956/0.0004958, allocations: 8.562 kB / 0.9028 GB, free: 36.66 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3653/0.3658, allocations: 159.6 MB / 1.059 GB, free: 5.473 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck): time 0.001666/0.3675, allocations: 0.9899 MB / 1.06 GB, free: 4.473 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003641/0.3712, allocations: 2.468 MB / 1.062 GB, free: 1.992 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.243e-05/0.3713, allocations: 0 / 1.062 GB, free: 1.992 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.549e-05/0.3713, allocations: 3.938 kB / 1.062 GB, free: 1.988 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.188e-05/0.3714, allocations: 4 kB / 1.062 GB, free: 1.984 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000607/0.372, allocations: 123.4 kB / 1.062 GB, free: 1.863 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.837e-05/0.3721, allocations: 35.86 kB / 1.062 GB, free: 1.828 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.63e-05/0.3721, allocations: 4 kB / 1.062 GB, free: 1.824 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.743e-05/0.3722, allocations: 15.97 kB / 1.062 GB, free: 1.809 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.379e-05/0.3722, allocations: 19.92 kB / 1.062 GB, free: 1.789 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 9.778e-06/0.3722, allocations: 0 / 1.062 GB, free: 1.789 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003227/0.3726, allocations: 115.7 kB / 1.062 GB, free: 1.676 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.615e-05/0.3726, allocations: 8 kB / 1.062 GB, free: 1.668 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.624e-05/0.3727, allocations: 49.61 kB / 1.062 GB, free: 1.613 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002066/0.3729, allocations: 84.06 kB / 1.062 GB, free: 1.531 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.3729, allocations: 0 / 1.062 GB, free: 1.531 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.222e-06/0.3729, allocations: 0 / 1.062 GB, free: 1.531 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.177e-06/0.3729, allocations: 0 / 1.062 GB, free: 1.531 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.0003894/0.3733, allocations: 335.6 kB / 1.063 GB, free: 1.156 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.3733, allocations: 12.03 kB / 1.063 GB, free: 1.145 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002393/0.3736, allocations: 12.92 kB / 1.063 GB, free: 1.133 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000112/0.3737, allocations: 168.3 kB / 1.063 GB, free: 0.9297 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.435e-05/0.3737, allocations: 8.375 kB / 1.063 GB, free: 0.9219 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.71e-05/0.3738, allocations: 12.28 kB / 1.063 GB, free: 0.9102 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000146/0.3739, allocations: 76.36 kB / 1.063 GB, free: 0.8203 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.3739, allocations: 3.938 kB / 1.063 GB, free: 0.8164 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.177e-05/0.374, allocations: 0 / 1.063 GB, free: 0.8164 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.374, allocations: 4 kB / 1.063 GB, free: 0.8125 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.388e-05/0.374, allocations: 11.92 kB / 1.063 GB, free: 0.8008 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006084/0.3746, allocations: 463 kB / 1.064 GB, free: 292 kB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001374/0.3748, allocations: 75.66 kB / 1.064 GB, free: 188 kB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.425e-05/0.3748, allocations: 30.78 kB / 1.064 GB, free: 148 kB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.164e-05/0.3748, allocations: 3.938 kB / 1.064 GB, free: 144 kB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.8e-05/0.3749, allocations: 34.56 kB / 1.064 GB, free: 100 kB / 0.8106 GB Notification: Performance of pre-optimization done (n=5): time 1.463e-06/0.3749, allocations: 0 / 1.064 GB, free: 100 kB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0006756/0.3756, allocations: 310.3 kB / 1.064 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.258e-05/0.3756, allocations: 102.8 kB / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.571e-05/0.3757, allocations: 101.8 kB / 1.064 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.757e-05/0.3757, allocations: 29.7 kB / 1.064 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.682e-05/0.3758, allocations: 88.03 kB / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.494e-05/0.3758, allocations: 27.64 kB / 1.064 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.183e-05/0.3759, allocations: 21.7 kB / 1.064 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001089/0.376, allocations: 322.8 kB / 1.065 GB, free: 15 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.679e-05/0.376, allocations: 15.98 kB / 1.065 GB, free: 14.99 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.829e-05/0.3761, allocations: 49.09 kB / 1.065 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.815e-05/0.3762, allocations: 73.08 kB / 1.065 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.3762, allocations: 4 kB / 1.065 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000151/0.3763, allocations: 101.9 kB / 1.065 GB, free: 14.72 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.3763, allocations: 4 kB / 1.065 GB, free: 14.72 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.902e-06/0.3764, allocations: 4 kB / 1.065 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/0.3764, allocations: 96 / 1.065 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.872e-05/0.3765, allocations: 23.92 kB / 1.065 GB, free: 14.69 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.713e-06/0.3765, allocations: 8.125 kB / 1.065 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.725e-05/0.3765, allocations: 3.984 kB / 1.065 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.175e-06/0.3765, allocations: 4 kB / 1.065 GB, free: 14.68 MB / 0.8262 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 8.807e-05/0.3766, allocations: 121.7 kB / 1.065 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.755e-05/0.3767, allocations: 4 kB / 1.065 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.059e-05/0.3767, allocations: 11.56 kB / 1.065 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-06/0.3767, allocations: 4 kB / 1.065 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.3767, allocations: 3.984 kB / 1.065 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.3767, allocations: 0 / 1.065 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003268/0.3771, allocations: 177.6 kB / 1.065 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.3771, allocations: 4 kB / 1.065 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.125e-05/0.3772, allocations: 15.94 kB / 1.065 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.3772, allocations: 0 / 1.065 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.859e-06/0.3772, allocations: 4 kB / 1.065 GB, free: 14.28 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.3772, allocations: 0 / 1.065 GB, free: 14.28 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.3772, allocations: 3.984 kB / 1.065 GB, free: 14.28 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002404/0.3775, allocations: 337.9 kB / 1.066 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.363e-05/0.3775, allocations: 89.05 kB / 1.066 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.686e-05/0.3776, allocations: 0 / 1.066 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001651/0.3777, allocations: 11.94 kB / 1.066 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.869e-05/0.3778, allocations: 3.984 kB / 1.066 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.775e-06/0.3778, allocations: 7.938 kB / 1.066 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.467e-05/0.3778, allocations: 79.28 kB / 1.066 GB, free: 13.72 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3778, allocations: 0 / 1.066 GB, free: 13.72 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000303/0.3781, allocations: 16 kB / 1.066 GB, free: 13.71 MB / 0.8262 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.0001668/0.3783, allocations: 103.2 kB / 1.066 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001337/0.3784, allocations: 43.92 kB / 1.066 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.3784, allocations: 0 / 1.066 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 3.125e-05/0.3785, allocations: 23.98 kB / 1.066 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004504/0.3789, allocations: 12.38 kB / 1.066 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000682/0.3796, allocations: 404.5 kB / 1.066 GB, free: 13.09 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003327/0.38, allocations: 0.6848 MB / 1.067 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.973e-05/0.38, allocations: 8 kB / 1.067 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.73e-05/0.3801, allocations: 11.44 kB / 1.067 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of SimCode: time 3.21e-07/0.3801, allocations: 7.875 kB / 1.067 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of Templates: time 0.003196/0.3833, allocations: 0.6113 MB / 1.068 GB, free: 11.77 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.makefile (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 & ./Buildings_latest_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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