Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Media.Examples.WaterDerivativeCheck.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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.Examples.WaterDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.cpSym.|der.cpCod.|der.cvSym.|der.cvCod.",fileNamePrefix="Buildings_11_Buildings.Media.Examples.WaterDerivativeCheck") translateModel(Buildings.Media.Examples.WaterDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.cpSym.|der.cpCod.|der.cvSym.|der.cvCod.",fileNamePrefix="Buildings_11_Buildings.Media.Examples.WaterDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00897/0.00897, allocations: 98.59 kB / 15.73 MB, free: 6.059 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.001901/0.001901, allocations: 195.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.437/1.437, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.938/2.938, allocations: 469.8 MB / 0.7425 GB, free: 7.418 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 72.28 kB / 1.065 GB, free: 13.16 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3341/0.3352, allocations: 159.1 MB / 1.221 GB, free: 13.9 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.003027/0.3383, allocations: 1.264 MB / 1.222 GB, free: 12.63 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.004093/0.3424, allocations: 3.277 MB / 1.225 GB, free: 9.332 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.304e-05/0.3424, allocations: 0 / 1.225 GB, free: 9.332 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.195e-05/0.3424, allocations: 3.938 kB / 1.225 GB, free: 9.328 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.258e-05/0.3425, allocations: 3.984 kB / 1.225 GB, free: 9.324 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005761/0.3431, allocations: 119.4 kB / 1.225 GB, free: 9.207 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 8.199e-05/0.3431, allocations: 31.91 kB / 1.225 GB, free: 9.176 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 4.14e-05/0.3432, allocations: 4 kB / 1.225 GB, free: 9.172 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 5.259e-05/0.3432, allocations: 19.92 kB / 1.225 GB, free: 9.152 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 6.609e-05/0.3433, allocations: 15.98 kB / 1.225 GB, free: 9.137 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.022e-05/0.3433, allocations: 0 / 1.225 GB, free: 9.137 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002236/0.3435, allocations: 83.73 kB / 1.225 GB, free: 9.055 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.428e-05/0.3435, allocations: 7.922 kB / 1.225 GB, free: 9.047 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.34e-05/0.3436, allocations: 19.94 kB / 1.225 GB, free: 9.027 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001926/0.3438, allocations: 71.84 kB / 1.225 GB, free: 8.957 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.3438, allocations: 0 / 1.225 GB, free: 8.957 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.193e-06/0.3438, allocations: 0 / 1.225 GB, free: 8.957 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.063e-06/0.3438, allocations: 0 / 1.225 GB, free: 8.957 MB / 0.9825 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.0004778/0.3443, allocations: 347.3 kB / 1.226 GB, free: 8.57 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/0.3443, allocations: 8.031 kB / 1.226 GB, free: 8.562 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000133/0.3444, allocations: 8.922 kB / 1.226 GB, free: 8.555 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001277/0.3446, allocations: 168.3 kB / 1.226 GB, free: 8.352 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.458e-05/0.3446, allocations: 4.375 kB / 1.226 GB, free: 8.348 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.72e-05/0.3446, allocations: 8.375 kB / 1.226 GB, free: 8.34 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001371/0.3447, allocations: 57.73 kB / 1.226 GB, free: 8.277 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.3448, allocations: 0 / 1.226 GB, free: 8.277 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.434e-05/0.3448, allocations: 4 kB / 1.226 GB, free: 8.273 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-06/0.3448, allocations: 4 kB / 1.226 GB, free: 8.27 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.548e-05/0.3448, allocations: 15.97 kB / 1.226 GB, free: 8.254 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002094/0.345, allocations: 165.7 kB / 1.226 GB, free: 8.043 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001106/0.3451, allocations: 54.5 kB / 1.226 GB, free: 7.98 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.303e-05/0.3452, allocations: 16.84 kB / 1.226 GB, free: 7.961 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007738/0.346, allocations: 0.5907 MB / 1.227 GB, free: 7.262 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.932e-05/0.346, allocations: 34.56 kB / 1.227 GB, free: 7.219 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=5): time 1.242e-06/0.346, allocations: 0 / 1.227 GB, free: 7.219 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0007142/0.3467, allocations: 310.5 kB / 1.227 GB, free: 6.863 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.023e-05/0.3468, allocations: 51.41 kB / 1.227 GB, free: 6.801 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.94e-05/0.3469, allocations: 101.8 kB / 1.227 GB, free: 6.691 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.625e-05/0.3469, allocations: 29.7 kB / 1.227 GB, free: 6.656 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.221e-05/0.3469, allocations: 92.03 kB / 1.227 GB, free: 6.562 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 9.934e-05/0.347, allocations: 27.8 kB / 1.227 GB, free: 6.535 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4e-05/0.3471, allocations: 21.72 kB / 1.227 GB, free: 6.508 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001364/0.3472, allocations: 322.8 kB / 1.228 GB, free: 6.184 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.541e-05/0.3472, allocations: 23.86 kB / 1.228 GB, free: 6.16 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.566e-05/0.3473, allocations: 49.14 kB / 1.228 GB, free: 6.094 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001153/0.3474, allocations: 69.09 kB / 1.228 GB, free: 6.008 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.12e-07/0.3474, allocations: 4 kB / 1.228 GB, free: 6.004 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001341/0.3475, allocations: 97.5 kB / 1.228 GB, free: 5.902 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.3476, allocations: 4 kB / 1.228 GB, free: 5.898 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.665e-06/0.3476, allocations: 7.984 kB / 1.228 GB, free: 5.891 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/0.3476, allocations: 0 / 1.228 GB, free: 5.891 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.554e-05/0.3476, allocations: 19.94 kB / 1.228 GB, free: 5.871 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.736e-06/0.3477, allocations: 8.125 kB / 1.228 GB, free: 5.863 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.961e-05/0.3477, allocations: 4.375 kB / 1.228 GB, free: 5.859 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.157e-05/0.3477, allocations: 8 kB / 1.228 GB, free: 5.852 MB / 0.9825 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.756e-05/0.3478, allocations: 121.8 kB / 1.228 GB, free: 5.723 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.643e-05/0.3478, allocations: 4 kB / 1.228 GB, free: 5.719 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.159e-05/0.3479, allocations: 7.969 kB / 1.228 GB, free: 5.715 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.3479, allocations: 0 / 1.228 GB, free: 5.715 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.3479, allocations: 4 kB / 1.228 GB, free: 5.711 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.3479, allocations: 3.938 kB / 1.228 GB, free: 5.707 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002615/0.3481, allocations: 173.7 kB / 1.228 GB, free: 5.488 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.3481, allocations: 4 kB / 1.228 GB, free: 5.484 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.441e-05/0.3482, allocations: 15.94 kB / 1.228 GB, free: 5.469 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.606e-06/0.3482, allocations: 3.984 kB / 1.228 GB, free: 5.465 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.137e-05/0.3482, allocations: 4 kB / 1.228 GB, free: 5.461 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.3482, allocations: 0 / 1.228 GB, free: 5.461 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.3482, allocations: 0 / 1.228 GB, free: 5.461 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002019/0.3484, allocations: 175.4 kB / 1.228 GB, free: 5.273 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.959e-05/0.3485, allocations: 85.14 kB / 1.229 GB, free: 5.172 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.438e-05/0.3485, allocations: 4 kB / 1.229 GB, free: 5.168 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001031/0.3486, allocations: 0 / 1.229 GB, free: 5.168 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.119e-05/0.3486, allocations: 7.984 kB / 1.229 GB, free: 5.16 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.315e-06/0.3486, allocations: 8.312 kB / 1.229 GB, free: 5.152 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.477e-05/0.3487, allocations: 91.14 kB / 1.229 GB, free: 5.062 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3487, allocations: 3.938 kB / 1.229 GB, free: 5.059 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002453/0.3489, allocations: 16 kB / 1.229 GB, free: 5.043 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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.0001508/0.3491, allocations: 99.78 kB / 1.229 GB, free: 4.934 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001261/0.3492, allocations: 43.91 kB / 1.229 GB, free: 4.891 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3492, allocations: 0 / 1.229 GB, free: 4.891 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 2.141e-05/0.3492, allocations: 12 kB / 1.229 GB, free: 4.879 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002969/0.3495, allocations: 11.94 kB / 1.229 GB, free: 4.867 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005645/0.3501, allocations: 322.2 kB / 1.229 GB, free: 4.527 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002681/0.3504, allocations: 0.6885 MB / 1.23 GB, free: 3.812 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.171e-05/0.3504, allocations: 7.984 kB / 1.23 GB, free: 3.805 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.602e-05/0.3504, allocations: 15.44 kB / 1.23 GB, free: 3.789 MB / 0.9825 GB Notification: Performance of SimCode: time 4.01e-07/0.3504, allocations: 0 / 1.23 GB, free: 3.789 MB / 0.9825 GB Notification: Performance of Templates: time 0.003283/0.3537, allocations: 0.6272 MB / 1.23 GB, free: 3.164 MB / 0.9825 GB make -j1 -f Buildings_11_Buildings.Media.Examples.WaterDerivativeCheck.makefile (rm -f Buildings_11_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo Buildings_11_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < Buildings_11_Buildings.Media.Examples.WaterDerivativeCheck.pipe >> ../files/Buildings_11_Buildings.Media.Examples.WaterDerivativeCheck.sim & ./Buildings_11_Buildings.Media.Examples.WaterDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Media.Examples.WaterDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Media_Examples_WaterDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Media.Examples.WaterDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches