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.001523/0.001523, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.0029/0.002901, allocations: 198.1 kB / 16.14 MB, free: 6.711 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.465/1.465, allocations: 222.9 MB / 239.8 MB, free: 4.637 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.799/2.799, allocations: 461.9 MB / 0.7342 GB, free: 15.06 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 60.81 kB / 0.8984 GB, free: 37.24 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3532/0.3546, allocations: 157.4 MB / 1.052 GB, free: 8.906 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.002519/0.3571, allocations: 1.321 MB / 1.053 GB, free: 7.57 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003796/0.3609, allocations: 3.241 MB / 1.057 GB, free: 4.312 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.662e-05/0.361, allocations: 0 / 1.057 GB, free: 4.312 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.582e-05/0.3611, allocations: 7.922 kB / 1.057 GB, free: 4.305 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.165e-05/0.3612, allocations: 4 kB / 1.057 GB, free: 4.301 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004769/0.3616, allocations: 107.5 kB / 1.057 GB, free: 4.195 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.393e-05/0.3617, allocations: 35.86 kB / 1.057 GB, free: 4.16 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.855e-05/0.3618, allocations: 4 kB / 1.057 GB, free: 4.156 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.246e-05/0.3618, allocations: 15.92 kB / 1.057 GB, free: 4.141 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.312e-05/0.3619, allocations: 23.91 kB / 1.057 GB, free: 4.117 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.034e-05/0.3619, allocations: 0 / 1.057 GB, free: 4.117 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002223/0.3621, allocations: 75.81 kB / 1.057 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.589e-05/0.3621, allocations: 7.984 kB / 1.057 GB, free: 4.035 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.454e-05/0.3622, allocations: 23.92 kB / 1.057 GB, free: 4.012 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001946/0.3624, allocations: 68.08 kB / 1.057 GB, free: 3.945 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.3624, allocations: 0 / 1.057 GB, free: 3.945 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.052e-06/0.3624, allocations: 0 / 1.057 GB, free: 3.945 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.849e-06/0.3624, allocations: 4 kB / 1.057 GB, free: 3.941 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.0004451/0.3629, allocations: 343.5 kB / 1.057 GB, free: 3.559 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.3629, allocations: 8.031 kB / 1.057 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001044/0.363, allocations: 4.938 kB / 1.057 GB, free: 3.547 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000116/0.3631, allocations: 172.2 kB / 1.057 GB, free: 3.34 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.273e-05/0.3632, allocations: 8.375 kB / 1.057 GB, free: 3.332 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.638e-05/0.3632, allocations: 12.36 kB / 1.057 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001315/0.3633, allocations: 49.81 kB / 1.057 GB, free: 3.266 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.516e-06/0.3633, allocations: 0 / 1.057 GB, free: 3.266 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.436e-05/0.3634, allocations: 3.984 kB / 1.057 GB, free: 3.262 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.3634, allocations: 0 / 1.057 GB, free: 3.262 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.104e-05/0.3634, allocations: 23.92 kB / 1.057 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001821/0.3636, allocations: 165.7 kB / 1.058 GB, free: 3.027 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 9.103e-05/0.3637, allocations: 54.55 kB / 1.058 GB, free: 2.965 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.818e-05/0.3638, allocations: 12.86 kB / 1.058 GB, free: 2.949 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007451/0.3645, allocations: 0.5946 MB / 1.058 GB, free: 2.246 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.082e-05/0.3646, allocations: 34.55 kB / 1.058 GB, free: 2.203 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=5): time 2.855e-06/0.3646, allocations: 3.938 kB / 1.058 GB, free: 2.199 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0006097/0.3652, allocations: 310.5 kB / 1.059 GB, free: 1.844 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.258e-05/0.3652, allocations: 55.41 kB / 1.059 GB, free: 1.777 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.295e-05/0.3653, allocations: 93.86 kB / 1.059 GB, free: 1.676 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.929e-05/0.3653, allocations: 29.7 kB / 1.059 GB, free: 1.641 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.351e-05/0.3654, allocations: 88.03 kB / 1.059 GB, free: 1.551 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.996e-05/0.3654, allocations: 23.66 kB / 1.059 GB, free: 1.527 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.243e-05/0.3655, allocations: 33.61 kB / 1.059 GB, free: 1.488 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000111/0.3656, allocations: 318.8 kB / 1.059 GB, free: 1.168 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.802e-05/0.3656, allocations: 15.98 kB / 1.059 GB, free: 1.152 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.607e-05/0.3657, allocations: 45.16 kB / 1.059 GB, free: 1.09 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.719e-05/0.3658, allocations: 85.02 kB / 1.059 GB, free: 0.9883 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.52e-07/0.3658, allocations: 3.938 kB / 1.059 GB, free: 0.9844 MB / 0.8106 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001418/0.3659, allocations: 89.83 kB / 1.059 GB, free: 0.8906 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/0.3659, allocations: 8 kB / 1.059 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.3659, allocations: 448 / 1.059 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.366, allocations: 4.125 kB / 1.059 GB, free: 0.8789 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.747e-05/0.3661, allocations: 23.98 kB / 1.06 GB, free: 0.8555 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.845e-06/0.3661, allocations: 0 / 1.06 GB, free: 0.8555 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.563e-05/0.3661, allocations: 15.94 kB / 1.06 GB, free: 0.8398 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.048e-05/0.3661, allocations: 7.984 kB / 1.06 GB, free: 0.832 MB / 0.8106 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 9.439e-05/0.3662, allocations: 113.8 kB / 1.06 GB, free: 0.7109 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.826e-05/0.3663, allocations: 4 kB / 1.06 GB, free: 0.707 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.89e-05/0.3663, allocations: 7.969 kB / 1.06 GB, free: 0.6953 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.3663, allocations: 4 kB / 1.06 GB, free: 0.6914 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.3663, allocations: 4 kB / 1.06 GB, free: 0.6875 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/0.3663, allocations: 7.922 kB / 1.06 GB, free: 0.6797 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002574/0.3666, allocations: 165.7 kB / 1.06 GB, free: 480 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.3666, allocations: 0 / 1.06 GB, free: 480 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.882e-05/0.3667, allocations: 15.98 kB / 1.06 GB, free: 464 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.3667, allocations: 3.938 kB / 1.06 GB, free: 460 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.193e-05/0.3667, allocations: 8 kB / 1.06 GB, free: 452 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.3667, allocations: 0 / 1.06 GB, free: 452 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.3668, allocations: 0 / 1.06 GB, free: 452 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002032/0.367, allocations: 187.4 kB / 1.06 GB, free: 248 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 7.708e-05/0.367, allocations: 85.06 kB / 1.06 GB, free: 144 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.721e-05/0.3671, allocations: 3.984 kB / 1.06 GB, free: 140 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001146/0.3672, allocations: 4 kB / 1.06 GB, free: 136 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.879e-05/0.3672, allocations: 4 kB / 1.06 GB, free: 132 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.024e-05/0.3672, allocations: 7.938 kB / 1.06 GB, free: 124 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.782e-05/0.3673, allocations: 79.27 kB / 1.06 GB, free: 44 kB / 0.8106 GB Notification: Performance of sort global known variables: time 9.1e-08/0.3673, allocations: 0 / 1.06 GB, free: 44 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002456/0.3675, allocations: 16 kB / 1.06 GB, free: 28 kB / 0.8106 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.0001973/0.3677, allocations: 99.25 kB / 1.06 GB, free: 15.92 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001304/0.3679, allocations: 47.86 kB / 1.06 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.3679, allocations: 0 / 1.06 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.524e-05/0.3679, allocations: 15.98 kB / 1.06 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000335/0.3683, allocations: 10.67 kB / 1.06 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006364/0.3689, allocations: 336.5 kB / 1.061 GB, free: 15.49 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003081/0.3692, allocations: 0.6809 MB / 1.061 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.736e-05/0.3693, allocations: 15.88 kB / 1.061 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.468e-05/0.3693, allocations: 11.44 kB / 1.061 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of SimCode: time 3.81e-07/0.3693, allocations: 0 / 1.061 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of Templates: time 0.002856/0.3722, allocations: 0.5976 MB / 1.062 GB, free: 14.16 MB / 0.8262 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