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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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: 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_9_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_9_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.001548/0.001548, allocations: 105 kB / 16.41 MB, free: 5.977 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.001295/0.001296, allocations: 188.8 kB / 17.34 MB, free: 5.586 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.372/1.372, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.224/2.224, allocations: 390.3 MB / 0.6655 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001464/0.001464, allocations: 63.84 kB / 0.9515 GB, free: 7.66 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7482/0.7497, allocations: 140.4 MB / 1.089 GB, free: 5.516 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck): time 0.002027/0.7518, allocations: 1.262 MB / 1.09 GB, free: 4.633 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002571/0.7544, allocations: 2.493 MB / 1.092 GB, free: 2.855 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.004e-05/0.7544, allocations: 0 / 1.092 GB, free: 2.855 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.179e-05/0.7544, allocations: 1.344 kB / 1.092 GB, free: 2.855 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.611e-05/0.7545, allocations: 6.203 kB / 1.092 GB, free: 2.852 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005014/0.755, allocations: 140 kB / 1.092 GB, free: 2.773 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 7.125e-05/0.7551, allocations: 35.08 kB / 1.092 GB, free: 2.762 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.406e-05/0.7551, allocations: 3 kB / 1.092 GB, free: 2.762 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.185e-05/0.7552, allocations: 24.64 kB / 1.092 GB, free: 2.75 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.444e-05/0.7552, allocations: 17.73 kB / 1.092 GB, free: 2.742 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.034e-05/0.7553, allocations: 1.094 kB / 1.092 GB, free: 2.742 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002754/0.7555, allocations: 112.5 kB / 1.093 GB, free: 2.703 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.375e-05/0.7556, allocations: 19.94 kB / 1.093 GB, free: 2.688 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.856e-05/0.7556, allocations: 9.594 kB / 1.093 GB, free: 2.688 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001881/0.7558, allocations: 84.77 kB / 1.093 GB, free: 2.66 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.7558, allocations: 0.75 kB / 1.093 GB, free: 2.66 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.353e-06/0.7558, allocations: 0 / 1.093 GB, free: 2.66 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.12e-06/0.7558, allocations: 0.7812 kB / 1.093 GB, free: 2.66 MB / 0.8575 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.0003059/0.7561, allocations: 346 kB / 1.093 GB, free: 2.301 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.32e-05/0.7562, allocations: 13 kB / 1.093 GB, free: 2.297 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002061/0.7564, allocations: 16.88 kB / 1.093 GB, free: 2.293 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.84e-05/0.7565, allocations: 174.4 kB / 1.093 GB, free: 2.086 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.12e-05/0.7565, allocations: 2.125 kB / 1.093 GB, free: 2.086 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.337e-05/0.7565, allocations: 9.203 kB / 1.093 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001151/0.7566, allocations: 75.25 kB / 1.093 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.843e-06/0.7566, allocations: 0.7969 kB / 1.093 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.177e-05/0.7566, allocations: 5.688 kB / 1.093 GB, free: 2.008 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.7567, allocations: 0.875 kB / 1.093 GB, free: 2.008 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.861e-05/0.7567, allocations: 12.66 kB / 1.093 GB, free: 2.004 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004532/0.7572, allocations: 473.8 kB / 1.094 GB, free: 1.52 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001153/0.7573, allocations: 73.81 kB / 1.094 GB, free: 1.438 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.814e-05/0.7573, allocations: 24.22 kB / 1.094 GB, free: 1.41 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 9.428e-06/0.7573, allocations: 1.578 kB / 1.094 GB, free: 1.41 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.812e-05/0.7574, allocations: 37.73 kB / 1.094 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=5): time 1.142e-06/0.7574, allocations: 0 / 1.094 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0005361/0.7579, allocations: 310.5 kB / 1.094 GB, free: 1.078 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.826e-05/0.758, allocations: 103.6 kB / 1.094 GB, free: 0.9531 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.929e-05/0.758, allocations: 101.1 kB / 1.094 GB, free: 0.8516 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 9.398e-06/0.758, allocations: 30.39 kB / 1.094 GB, free: 0.8164 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.211e-05/0.758, allocations: 85.75 kB / 1.095 GB, free: 0.7305 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.742e-05/0.7581, allocations: 29.45 kB / 1.095 GB, free: 0.707 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.67e-05/0.7581, allocations: 31.34 kB / 1.095 GB, free: 0.6797 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 3.896e-05/0.7582, allocations: 317.4 kB / 1.095 GB, free: 372 kB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.83e-05/0.7582, allocations: 14.41 kB / 1.095 GB, free: 368 kB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.187e-05/0.7582, allocations: 53.27 kB / 1.095 GB, free: 312 kB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.438e-05/0.7583, allocations: 76.73 kB / 1.095 GB, free: 240 kB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.7583, allocations: 0.6562 kB / 1.095 GB, free: 240 kB / 0.8575 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001303/0.7585, allocations: 90.62 kB / 1.095 GB, free: 188 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/0.7585, allocations: 6.25 kB / 1.095 GB, free: 188 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.7585, allocations: 1.219 kB / 1.095 GB, free: 188 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/0.7585, allocations: 6.328 kB / 1.095 GB, free: 184 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.539e-05/0.7586, allocations: 31.22 kB / 1.095 GB, free: 172 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.061e-06/0.7586, allocations: 2.594 kB / 1.095 GB, free: 172 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.604e-05/0.7586, allocations: 1.656 kB / 1.095 GB, free: 172 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.486e-06/0.7587, allocations: 5.047 kB / 1.095 GB, free: 172 kB / 0.8575 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 5.226e-05/0.7587, allocations: 121.3 kB / 1.095 GB, free: 44 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.308e-05/0.7588, allocations: 7.75 kB / 1.095 GB, free: 40 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.64e-05/0.7588, allocations: 13.8 kB / 1.095 GB, free: 28 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.7588, allocations: 2 kB / 1.095 GB, free: 28 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.7588, allocations: 4 kB / 1.095 GB, free: 24 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.7588, allocations: 2.031 kB / 1.095 GB, free: 24 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003573/0.7592, allocations: 182.4 kB / 1.095 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.7592, allocations: 0.875 kB / 1.095 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.099e-05/0.7593, allocations: 16.12 kB / 1.095 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.7593, allocations: 0.6875 kB / 1.095 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.027e-06/0.7593, allocations: 2 kB / 1.095 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.7593, allocations: 1.469 kB / 1.095 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.7594, allocations: 0.8125 kB / 1.095 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002391/0.7596, allocations: 332.1 kB / 1.096 GB, free: 15.52 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 5.971e-05/0.7597, allocations: 87.02 kB / 1.096 GB, free: 15.42 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.455e-05/0.7597, allocations: 1.531 kB / 1.096 GB, free: 15.42 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000175/0.7599, allocations: 4.156 kB / 1.096 GB, free: 15.42 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.18e-05/0.7599, allocations: 8.484 kB / 1.096 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.095e-05/0.7599, allocations: 10.97 kB / 1.096 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 3.284e-05/0.7599, allocations: 82.5 kB / 1.096 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.5e-07/0.76, allocations: 0.875 kB / 1.096 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003203/0.7603, allocations: 14.34 kB / 1.096 GB, free: 15.32 MB / 0.8731 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.0001296/0.7604, allocations: 109 kB / 1.096 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0001198/0.7605, allocations: 49.12 kB / 1.096 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.7606, allocations: 256 / 1.096 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 3.157e-05/0.7606, allocations: 21.5 kB / 1.096 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004319/0.761, allocations: 11.11 kB / 1.096 GB, free: 15.2 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006397/0.7617, allocations: 374.2 kB / 1.097 GB, free: 14.88 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002434/0.7619, allocations: 0.6869 MB / 1.097 GB, free: 14.18 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.764e-05/0.762, allocations: 11.69 kB / 1.097 GB, free: 14.17 MB / 0.8731 GB Notification: Performance of SimCode: time 2.41e-07/0.762, allocations: 0 / 1.097 GB, free: 14.17 MB / 0.8731 GB Notification: Performance of Templates: time 0.002296/0.7643, allocations: 0.7861 MB / 1.098 GB, free: 14.12 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.makefile (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 & ./Buildings_9_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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) Reference file matches