Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.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.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_latest_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_latest_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.00575/0.00575, allocations: 100.7 kB / 15.73 MB, free: 6.043 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.001139/0.001139, allocations: 196.3 kB / 16.67 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.381/1.381, allocations: 222.9 MB / 240.3 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.692/2.692, allocations: 461.9 MB / 0.7348 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 67.89 kB / 1.054 GB, free: 7.219 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3568/0.3582, allocations: 157.4 MB / 1.208 GB, free: 9.711 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.002353/0.3606, allocations: 1.262 MB / 1.209 GB, free: 8.438 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.003856/0.3645, allocations: 3.276 MB / 1.212 GB, free: 5.141 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.833e-05/0.3645, allocations: 0 / 1.212 GB, free: 5.141 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 1.915e-05/0.3645, allocations: 4 kB / 1.212 GB, free: 5.137 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.418e-05/0.3646, allocations: 3.938 kB / 1.212 GB, free: 5.133 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005688/0.3652, allocations: 103.5 kB / 1.212 GB, free: 5.031 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 8.363e-05/0.3653, allocations: 39.84 kB / 1.212 GB, free: 4.992 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 3.678e-05/0.3653, allocations: 4 kB / 1.212 GB, free: 4.988 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 4.94e-05/0.3654, allocations: 15.92 kB / 1.212 GB, free: 4.973 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.274e-05/0.3654, allocations: 15.97 kB / 1.212 GB, free: 4.957 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.08e-05/0.3655, allocations: 4 kB / 1.212 GB, free: 4.953 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002743/0.3657, allocations: 79.81 kB / 1.212 GB, free: 4.875 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.961e-05/0.3658, allocations: 19.86 kB / 1.212 GB, free: 4.855 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.536e-05/0.3658, allocations: 15.98 kB / 1.212 GB, free: 4.84 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002039/0.366, allocations: 55.86 kB / 1.212 GB, free: 4.785 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.471e-06/0.366, allocations: 0 / 1.212 GB, free: 4.785 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.844e-06/0.366, allocations: 4 kB / 1.212 GB, free: 4.781 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.921e-06/0.3661, allocations: 0 / 1.212 GB, free: 4.781 MB / 0.9669 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.0004184/0.3665, allocations: 355.3 kB / 1.213 GB, free: 4.387 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.509e-05/0.3665, allocations: 12.03 kB / 1.213 GB, free: 4.375 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.969e-05/0.3666, allocations: 4.938 kB / 1.213 GB, free: 4.371 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001057/0.3667, allocations: 164.3 kB / 1.213 GB, free: 4.172 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.111e-05/0.3668, allocations: 12.36 kB / 1.213 GB, free: 4.16 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.572e-05/0.3668, allocations: 4.375 kB / 1.213 GB, free: 4.156 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000132/0.3669, allocations: 57.8 kB / 1.213 GB, free: 4.094 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.287e-06/0.3669, allocations: 3.938 kB / 1.213 GB, free: 4.09 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.233e-05/0.367, allocations: 0 / 1.213 GB, free: 4.09 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.367, allocations: 0 / 1.213 GB, free: 4.09 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.691e-05/0.367, allocations: 19.98 kB / 1.213 GB, free: 4.07 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001721/0.3672, allocations: 165.6 kB / 1.213 GB, free: 3.859 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 9.512e-05/0.3673, allocations: 54.61 kB / 1.213 GB, free: 3.797 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.321e-05/0.3674, allocations: 20.84 kB / 1.213 GB, free: 3.773 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007102/0.3681, allocations: 0.5907 MB / 1.214 GB, free: 3.074 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.872e-05/0.3681, allocations: 38.55 kB / 1.214 GB, free: 3.027 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=5): time 1.222e-06/0.3681, allocations: 0 / 1.214 GB, free: 3.027 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0005793/0.3687, allocations: 298.5 kB / 1.214 GB, free: 2.684 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.047e-05/0.3687, allocations: 51.41 kB / 1.214 GB, free: 2.621 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.221e-05/0.3688, allocations: 105.7 kB / 1.214 GB, free: 2.508 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.476e-05/0.3688, allocations: 25.7 kB / 1.214 GB, free: 2.477 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.186e-05/0.3689, allocations: 92.11 kB / 1.214 GB, free: 2.383 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.916e-05/0.3689, allocations: 27.56 kB / 1.215 GB, free: 2.355 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.305e-05/0.369, allocations: 29.7 kB / 1.215 GB, free: 2.32 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 9.549e-05/0.3691, allocations: 322.8 kB / 1.215 GB, free: 1.996 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.045e-05/0.3691, allocations: 11.98 kB / 1.215 GB, free: 1.984 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.401e-05/0.3692, allocations: 61.02 kB / 1.215 GB, free: 1.906 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.648e-05/0.3693, allocations: 69.09 kB / 1.215 GB, free: 1.82 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.143e-06/0.3693, allocations: 0 / 1.215 GB, free: 1.82 MB / 0.9669 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001412/0.3694, allocations: 97.89 kB / 1.215 GB, free: 1.719 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.3694, allocations: 12.12 kB / 1.215 GB, free: 1.707 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.3694, allocations: 0 / 1.215 GB, free: 1.707 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.581e-05/0.3695, allocations: 4 kB / 1.215 GB, free: 1.703 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.515e-05/0.3695, allocations: 23.98 kB / 1.215 GB, free: 1.68 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.274e-06/0.3696, allocations: 3.938 kB / 1.215 GB, free: 1.676 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.019e-05/0.3696, allocations: 7.938 kB / 1.215 GB, free: 1.668 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.427e-06/0.3696, allocations: 4 kB / 1.215 GB, free: 1.664 MB / 0.9669 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 7.276e-05/0.3697, allocations: 113.8 kB / 1.215 GB, free: 1.543 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.724e-05/0.3697, allocations: 0 / 1.215 GB, free: 1.543 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.146e-05/0.3698, allocations: 11.97 kB / 1.215 GB, free: 1.535 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.3698, allocations: 4 kB / 1.215 GB, free: 1.531 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.3698, allocations: 0 / 1.215 GB, free: 1.531 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.3698, allocations: 7.922 kB / 1.215 GB, free: 1.523 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002356/0.37, allocations: 173.7 kB / 1.215 GB, free: 1.305 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.37, allocations: 0 / 1.215 GB, free: 1.305 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.565e-05/0.3701, allocations: 12 kB / 1.215 GB, free: 1.293 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.3701, allocations: 0 / 1.215 GB, free: 1.293 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.598e-06/0.3702, allocations: 4 kB / 1.215 GB, free: 1.289 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.3702, allocations: 3.938 kB / 1.215 GB, free: 1.285 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.3702, allocations: 0 / 1.215 GB, free: 1.285 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001704/0.3703, allocations: 179.6 kB / 1.216 GB, free: 1.094 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.566e-05/0.3704, allocations: 85.23 kB / 1.216 GB, free: 0.9922 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.498e-05/0.3704, allocations: 4 kB / 1.216 GB, free: 0.9883 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001033/0.3705, allocations: 7.984 kB / 1.216 GB, free: 0.9805 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.376e-05/0.3706, allocations: 0 / 1.216 GB, free: 0.9805 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.498e-06/0.3706, allocations: 7.938 kB / 1.216 GB, free: 0.9727 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.323e-05/0.3706, allocations: 87.27 kB / 1.216 GB, free: 0.8867 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3706, allocations: 4 kB / 1.216 GB, free: 0.8828 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002489/0.3709, allocations: 8 kB / 1.216 GB, free: 0.875 MB / 0.9669 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.000119/0.371, allocations: 111.1 kB / 1.216 GB, free: 0.7539 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001117/0.3711, allocations: 39.92 kB / 1.216 GB, free: 0.7148 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.3711, allocations: 0 / 1.216 GB, free: 0.7148 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 2.722e-05/0.3712, allocations: 19.98 kB / 1.216 GB, free: 0.6953 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002795/0.3714, allocations: 12.25 kB / 1.216 GB, free: 0.6836 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005442/0.372, allocations: 322.4 kB / 1.216 GB, free: 348 kB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002218/0.3722, allocations: 0.6846 MB / 1.217 GB, free: 15.63 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.506e-05/0.3723, allocations: 7.984 kB / 1.217 GB, free: 15.62 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.325e-05/0.3723, allocations: 11.44 kB / 1.217 GB, free: 15.61 MB / 0.9825 GB Notification: Performance of SimCode: time 2.31e-07/0.3723, allocations: 0 / 1.217 GB, free: 15.61 MB / 0.9825 GB Notification: Performance of Templates: time 0.002828/0.3752, allocations: 0.6361 MB / 1.218 GB, free: 14.98 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.makefile (rm -f Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.sim & ./Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_WaterDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches