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: 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_10_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_10_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.001296/0.001296, 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.002313/0.002314, allocations: 194.5 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 1.438/1.438, allocations: 222.9 MB / 239.9 MB, free: 4.508 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.626/2.626, allocations: 437 MB / 0.71 GB, free: 5.273 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001392/0.001392, allocations: 59.91 kB / 0.8687 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7968/0.7982, allocations: 151.6 MB / 1.017 GB, free: 2.746 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck): time 0.002745/0.801, allocations: 1.338 MB / 1.018 GB, free: 1.398 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.003/0.8041, allocations: 2.48 MB / 1.021 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.38e-05/0.8041, allocations: 0 / 1.021 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.998e-05/0.8041, allocations: 0 / 1.021 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 4.837e-05/0.8042, allocations: 0 / 1.021 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005891/0.8048, allocations: 119.5 kB / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 8.215e-05/0.8049, allocations: 35.84 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.028e-05/0.805, allocations: 4 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 4.533e-05/0.805, allocations: 19.98 kB / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 6.471e-05/0.8051, allocations: 19.92 kB / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.383e-05/0.8051, allocations: 7.938 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000298/0.8054, allocations: 115.8 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.325e-05/0.8054, allocations: 4 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.556e-05/0.8055, allocations: 23.91 kB / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000192/0.8057, allocations: 77.81 kB / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.8057, allocations: 0 / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.343e-06/0.8057, allocations: 0 / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.791e-06/0.8057, allocations: 0 / 1.021 GB, free: 14.49 MB / 0.7794 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.0004211/0.8061, allocations: 367.3 kB / 1.021 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.8062, allocations: 8.031 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002107/0.8064, allocations: 8.938 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001073/0.8065, allocations: 172.3 kB / 1.021 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.419e-05/0.8065, allocations: 4.375 kB / 1.021 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.485e-05/0.8066, allocations: 8.281 kB / 1.021 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001421/0.8067, allocations: 76.38 kB / 1.022 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.8067, allocations: 0 / 1.022 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.202e-05/0.8067, allocations: 0 / 1.022 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.588e-06/0.8067, allocations: 4 kB / 1.022 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.647e-05/0.8068, allocations: 15.92 kB / 1.022 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006266/0.8074, allocations: 470.9 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001314/0.8076, allocations: 75.66 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.565e-05/0.8076, allocations: 22.64 kB / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.042e-05/0.8076, allocations: 3.938 kB / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.806e-05/0.8077, allocations: 46.64 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=5): time 1.192e-06/0.8077, allocations: 0 / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0006353/0.8083, allocations: 294.1 kB / 1.022 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.178e-05/0.8084, allocations: 106.8 kB / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.31e-05/0.8085, allocations: 98.09 kB / 1.023 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.906e-05/0.8085, allocations: 37.7 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.471e-05/0.8086, allocations: 84.05 kB / 1.023 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.235e-05/0.8086, allocations: 35.56 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.204e-05/0.8086, allocations: 25.72 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001086/0.8088, allocations: 318.8 kB / 1.023 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.767e-05/0.8088, allocations: 12 kB / 1.023 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.6e-05/0.8089, allocations: 53.14 kB / 1.023 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.535e-05/0.809, allocations: 73.08 kB / 1.023 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.809, allocations: 4 kB / 1.023 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001302/0.8091, allocations: 97.45 kB / 1.023 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.8091, allocations: 4 kB / 1.023 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.8091, allocations: 4.062 kB / 1.023 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.8092, allocations: 4.609 kB / 1.023 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.725e-05/0.8092, allocations: 19.94 kB / 1.023 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.277e-06/0.8093, allocations: 7.984 kB / 1.023 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.789e-05/0.8093, allocations: 4 kB / 1.023 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.005e-06/0.8093, allocations: 4 kB / 1.023 GB, free: 11.61 MB / 0.7794 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.707e-05/0.8094, allocations: 122.4 kB / 1.023 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.744e-05/0.8095, allocations: 4 kB / 1.023 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.458e-05/0.8095, allocations: 7.562 kB / 1.023 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.8095, allocations: 7.984 kB / 1.024 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.8095, allocations: 3.938 kB / 1.024 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.189e-06/0.8095, allocations: 3.938 kB / 1.024 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003365/0.8099, allocations: 181.5 kB / 1.024 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-06/0.8099, allocations: 4 kB / 1.024 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.534e-05/0.81, allocations: 19.98 kB / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.81, allocations: 0 / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.202e-05/0.81, allocations: 8 kB / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.81, allocations: 0 / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.81, allocations: 0 / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002542/0.8103, allocations: 333.9 kB / 1.024 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.636e-05/0.8104, allocations: 85.02 kB / 1.024 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.947e-05/0.8104, allocations: 8.031 kB / 1.024 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001769/0.8106, allocations: 8 kB / 1.024 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.543e-05/0.8106, allocations: 0 / 1.024 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.608e-06/0.8106, allocations: 7.938 kB / 1.024 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.716e-05/0.8107, allocations: 87.27 kB / 1.024 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8107, allocations: 0 / 1.024 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003152/0.811, allocations: 8 kB / 1.024 GB, free: 10.63 MB / 0.7794 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.0001558/0.8111, allocations: 113.4 kB / 1.024 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001322/0.8113, allocations: 47.86 kB / 1.024 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.8113, allocations: 0 / 1.024 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 3.984e-05/0.8113, allocations: 23.92 kB / 1.024 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004604/0.8118, allocations: 6.031 kB / 1.024 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006417/0.8125, allocations: 356.6 kB / 1.025 GB, free: 10.06 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002781/0.8127, allocations: 0.6807 MB / 1.025 GB, free: 9.355 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.638e-05/0.8128, allocations: 15.97 kB / 1.025 GB, free: 9.34 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.743e-05/0.8129, allocations: 11.44 kB / 1.025 GB, free: 9.328 MB / 0.7794 GB Notification: Performance of SimCode: time 5.61e-07/0.8129, allocations: 0 / 1.025 GB, free: 9.328 MB / 0.7794 GB Notification: Performance of Templates: time 0.003183/0.816, allocations: 0.6409 MB / 1.026 GB, free: 8.727 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.makefile (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 & ./Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches