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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.008486/0.008486, allocations: 103.8 kB / 15.74 MB, free: 6.449 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.00209/0.002091, allocations: 195.8 kB / 16.67 MB, free: 6.355 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.4/1.4, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.88/2.88, allocations: 472.6 MB / 0.7453 GB, free: 4.531 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002087/0.002087, allocations: 72 kB / 1.069 GB, free: 9.23 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3526/0.3547, allocations: 159.9 MB / 1.226 GB, free: 9.211 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.00245/0.3572, allocations: 1.266 MB / 1.227 GB, free: 7.934 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.004089/0.3613, allocations: 3.268 MB / 1.23 GB, free: 4.641 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.82e-05/0.3614, allocations: 0 / 1.23 GB, free: 4.641 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.424e-05/0.3615, allocations: 7.984 kB / 1.23 GB, free: 4.633 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.774e-05/0.3615, allocations: 7.922 kB / 1.23 GB, free: 4.625 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005763/0.3621, allocations: 107.5 kB / 1.23 GB, free: 4.52 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001001/0.3622, allocations: 31.86 kB / 1.23 GB, free: 4.488 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 4.863e-05/0.3623, allocations: 4 kB / 1.23 GB, free: 4.484 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 5.613e-05/0.3623, allocations: 23.91 kB / 1.23 GB, free: 4.461 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.394e-05/0.3624, allocations: 15.98 kB / 1.23 GB, free: 4.445 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.149e-05/0.3624, allocations: 0 / 1.23 GB, free: 4.445 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002639/0.3627, allocations: 79.8 kB / 1.23 GB, free: 4.367 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.897e-05/0.3627, allocations: 11.94 kB / 1.23 GB, free: 4.355 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.816e-05/0.3628, allocations: 23.91 kB / 1.23 GB, free: 4.332 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002032/0.363, allocations: 59.81 kB / 1.23 GB, free: 4.273 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.363, allocations: 4 kB / 1.23 GB, free: 4.27 MB / 0.9825 GB Notification: Performance of FrontEnd: time 4.799e-06/0.363, allocations: 0 / 1.23 GB, free: 4.27 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.004e-05/0.363, allocations: 3.938 kB / 1.23 GB, free: 4.266 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.0004337/0.3635, allocations: 347.4 kB / 1.231 GB, free: 3.879 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.873e-05/0.3635, allocations: 12.03 kB / 1.231 GB, free: 3.867 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001087/0.3636, allocations: 4.938 kB / 1.231 GB, free: 3.863 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001207/0.3637, allocations: 172.3 kB / 1.231 GB, free: 3.656 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.618e-05/0.3638, allocations: 8.359 kB / 1.231 GB, free: 3.648 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.661e-05/0.3638, allocations: 4.375 kB / 1.231 GB, free: 3.645 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001563/0.364, allocations: 57.8 kB / 1.231 GB, free: 3.582 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.297e-06/0.364, allocations: 3.984 kB / 1.231 GB, free: 3.578 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.269e-05/0.364, allocations: 0 / 1.231 GB, free: 3.578 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.364, allocations: 0 / 1.231 GB, free: 3.578 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.669e-05/0.3641, allocations: 27.89 kB / 1.231 GB, free: 3.551 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001736/0.3643, allocations: 165.7 kB / 1.231 GB, free: 3.34 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001086/0.3644, allocations: 46.56 kB / 1.231 GB, free: 3.285 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.309e-05/0.3644, allocations: 20.84 kB / 1.231 GB, free: 3.262 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006979/0.3651, allocations: 0.5948 MB / 1.232 GB, free: 2.559 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.931e-05/0.3652, allocations: 42.5 kB / 1.232 GB, free: 2.508 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=5): time 1.172e-06/0.3652, allocations: 0 / 1.232 GB, free: 2.508 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0005674/0.3657, allocations: 298.3 kB / 1.232 GB, free: 2.164 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.092e-05/0.3658, allocations: 51.41 kB / 1.232 GB, free: 2.102 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.835e-05/0.3659, allocations: 97.86 kB / 1.232 GB, free: 1.996 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.614e-05/0.3659, allocations: 25.7 kB / 1.232 GB, free: 1.965 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.124e-05/0.3659, allocations: 96.03 kB / 1.232 GB, free: 1.867 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.755e-05/0.366, allocations: 23.8 kB / 1.232 GB, free: 1.844 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.05e-05/0.366, allocations: 25.72 kB / 1.232 GB, free: 1.812 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001062/0.3661, allocations: 326.7 kB / 1.233 GB, free: 1.484 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.709e-05/0.3662, allocations: 12 kB / 1.233 GB, free: 1.473 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.113e-05/0.3662, allocations: 53.58 kB / 1.233 GB, free: 1.402 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.367e-05/0.3663, allocations: 77.02 kB / 1.233 GB, free: 1.309 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.92e-07/0.3663, allocations: 0 / 1.233 GB, free: 1.309 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001339/0.3665, allocations: 97.5 kB / 1.233 GB, free: 1.207 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.505e-05/0.3665, allocations: 12.12 kB / 1.233 GB, free: 1.195 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.3665, allocations: 0 / 1.233 GB, free: 1.195 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.3665, allocations: 4 kB / 1.233 GB, free: 1.191 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.711e-05/0.3666, allocations: 23.98 kB / 1.233 GB, free: 1.168 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.3666, allocations: 0 / 1.233 GB, free: 1.168 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.821e-05/0.3667, allocations: 11.88 kB / 1.233 GB, free: 1.156 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.743e-06/0.3667, allocations: 4 kB / 1.233 GB, free: 1.152 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 7.766e-05/0.3668, allocations: 118.3 kB / 1.233 GB, free: 1.027 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.479e-05/0.3668, allocations: 0 / 1.233 GB, free: 1.027 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.99e-05/0.3668, allocations: 16.25 kB / 1.233 GB, free: 1.016 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.3668, allocations: 0 / 1.233 GB, free: 1.016 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.3668, allocations: 0 / 1.233 GB, free: 1.016 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.3669, allocations: 7.922 kB / 1.233 GB, free: 1.008 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002392/0.3671, allocations: 177.7 kB / 1.233 GB, free: 0.7852 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.3671, allocations: 3.938 kB / 1.233 GB, free: 0.7812 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.507e-05/0.3672, allocations: 15.98 kB / 1.233 GB, free: 0.7656 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.147e-06/0.3672, allocations: 4 kB / 1.233 GB, free: 0.7617 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.154e-06/0.3672, allocations: 0 / 1.233 GB, free: 0.7617 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.3672, allocations: 0 / 1.233 GB, free: 0.7617 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.3672, allocations: 3.938 kB / 1.233 GB, free: 0.7578 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001851/0.3674, allocations: 175.4 kB / 1.234 GB, free: 0.5703 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.792e-05/0.3675, allocations: 81.11 kB / 1.234 GB, free: 484 kB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.702e-05/0.3675, allocations: 0 / 1.234 GB, free: 484 kB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001127/0.3676, allocations: 12.03 kB / 1.234 GB, free: 472 kB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.875e-05/0.3677, allocations: 3.938 kB / 1.234 GB, free: 468 kB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.536e-06/0.3677, allocations: 7.938 kB / 1.234 GB, free: 460 kB / 0.9825 GB Notification: Performance of sorting global known variables: time 3.765e-05/0.3677, allocations: 83.27 kB / 1.234 GB, free: 376 kB / 0.9825 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3677, allocations: 4 kB / 1.234 GB, free: 372 kB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002617/0.368, allocations: 12 kB / 1.234 GB, free: 360 kB / 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.0001466/0.3681, allocations: 103.2 kB / 1.234 GB, free: 244 kB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001218/0.3683, allocations: 43.84 kB / 1.234 GB, free: 200 kB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.3683, allocations: 0 / 1.234 GB, free: 200 kB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 2.614e-05/0.3683, allocations: 16 kB / 1.234 GB, free: 184 kB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002925/0.3686, allocations: 13.64 kB / 1.234 GB, free: 172 kB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006252/0.3692, allocations: 322.2 kB / 1.234 GB, free: 15.82 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003375/0.3696, allocations: 0.6876 MB / 1.235 GB, free: 15.11 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 5.418e-05/0.3697, allocations: 11.94 kB / 1.235 GB, free: 15.11 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.733e-05/0.3697, allocations: 7.438 kB / 1.235 GB, free: 15.1 MB / 0.9981 GB Notification: Performance of SimCode: time 2.71e-07/0.3697, allocations: 4 kB / 1.235 GB, free: 15.09 MB / 0.9981 GB Notification: Performance of Templates: time 0.003471/0.3732, allocations: 0.6364 MB / 1.236 GB, free: 14.46 MB / 0.9981 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