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.006287/0.006287, allocations: 99.64 kB / 15.73 MB, free: 6.027 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.001389/0.001389, allocations: 186.2 kB / 16.67 MB, free: 5.969 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.38/1.38, allocations: 222.9 MB / 240.4 MB, free: 4.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.72/2.72, allocations: 461.9 MB / 0.7348 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 63.89 kB / 1.054 GB, free: 7.227 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3123/0.3135, allocations: 157.4 MB / 1.208 GB, free: 9.715 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.002244/0.3158, allocations: 1.264 MB / 1.209 GB, free: 8.438 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.004408/0.3203, allocations: 3.264 MB / 1.212 GB, free: 5.152 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.075e-05/0.3203, allocations: 0 / 1.212 GB, free: 5.152 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.141e-05/0.3204, allocations: 11.92 kB / 1.212 GB, free: 5.141 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.565e-05/0.3205, allocations: 3.938 kB / 1.212 GB, free: 5.137 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006433/0.3211, allocations: 103.5 kB / 1.212 GB, free: 5.035 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 9.823e-05/0.3212, allocations: 35.86 kB / 1.212 GB, free: 5 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.301e-05/0.3213, allocations: 0 / 1.212 GB, free: 5 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 5.953e-05/0.3213, allocations: 27.91 kB / 1.212 GB, free: 4.973 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 8.69e-05/0.3214, allocations: 11.98 kB / 1.212 GB, free: 4.961 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.405e-05/0.3215, allocations: 4 kB / 1.212 GB, free: 4.957 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002848/0.3217, allocations: 79.8 kB / 1.212 GB, free: 4.879 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.309e-05/0.3218, allocations: 11.94 kB / 1.212 GB, free: 4.867 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.959e-05/0.3218, allocations: 11.97 kB / 1.212 GB, free: 4.855 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000205/0.322, allocations: 63.86 kB / 1.212 GB, free: 4.793 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.3221, allocations: 4 kB / 1.212 GB, free: 4.789 MB / 0.9669 GB Notification: Performance of FrontEnd: time 3.286e-06/0.3221, allocations: 0 / 1.212 GB, free: 4.789 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.232e-06/0.3221, allocations: 3.938 kB / 1.212 GB, free: 4.785 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.0005207/0.3226, allocations: 355.4 kB / 1.213 GB, free: 4.391 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.094e-05/0.3227, allocations: 11.97 kB / 1.213 GB, free: 4.379 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001414/0.3228, allocations: 4.938 kB / 1.213 GB, free: 4.375 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001382/0.3229, allocations: 168.3 kB / 1.213 GB, free: 4.172 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.536e-05/0.323, allocations: 4.375 kB / 1.213 GB, free: 4.168 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.031e-05/0.323, allocations: 8.375 kB / 1.213 GB, free: 4.16 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001598/0.3232, allocations: 57.8 kB / 1.213 GB, free: 4.098 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.3232, allocations: 0 / 1.213 GB, free: 4.098 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.604e-05/0.3232, allocations: 4 kB / 1.213 GB, free: 4.094 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.3232, allocations: 0 / 1.213 GB, free: 4.094 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.103e-05/0.3233, allocations: 23.91 kB / 1.213 GB, free: 4.07 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002293/0.3235, allocations: 165.6 kB / 1.213 GB, free: 3.859 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001064/0.3236, allocations: 46.56 kB / 1.213 GB, free: 3.805 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.988e-05/0.3237, allocations: 24.84 kB / 1.213 GB, free: 3.777 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008189/0.3245, allocations: 0.5871 MB / 1.214 GB, free: 3.082 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.099e-05/0.3246, allocations: 34.56 kB / 1.214 GB, free: 3.039 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=5): time 1.182e-06/0.3246, allocations: 0 / 1.214 GB, free: 3.039 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0006687/0.3252, allocations: 310.6 kB / 1.214 GB, free: 2.684 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.39e-05/0.3253, allocations: 55.41 kB / 1.214 GB, free: 2.617 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001143/0.3254, allocations: 101.8 kB / 1.214 GB, free: 2.508 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.088e-05/0.3255, allocations: 25.7 kB / 1.214 GB, free: 2.477 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.215e-05/0.3255, allocations: 80.14 kB / 1.214 GB, free: 2.395 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.476e-05/0.3256, allocations: 31.55 kB / 1.214 GB, free: 2.363 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.627e-05/0.3256, allocations: 25.72 kB / 1.215 GB, free: 2.332 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001544/0.3258, allocations: 318.8 kB / 1.215 GB, free: 2.012 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.142e-05/0.3258, allocations: 16 kB / 1.215 GB, free: 1.996 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.988e-05/0.3259, allocations: 61.02 kB / 1.215 GB, free: 1.918 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001178/0.326, allocations: 81.02 kB / 1.215 GB, free: 1.82 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-06/0.326, allocations: 0 / 1.215 GB, free: 1.82 MB / 0.9669 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001545/0.3262, allocations: 93.73 kB / 1.215 GB, free: 1.723 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.066e-05/0.3262, allocations: 5.719 kB / 1.215 GB, free: 1.719 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.3262, allocations: 4 kB / 1.215 GB, free: 1.715 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.764e-05/0.3263, allocations: 0 / 1.215 GB, free: 1.715 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.163e-05/0.3264, allocations: 27.98 kB / 1.215 GB, free: 1.688 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.633e-06/0.3264, allocations: 128 / 1.215 GB, free: 1.688 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.002e-05/0.3264, allocations: 11.94 kB / 1.215 GB, free: 1.676 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.158e-06/0.3264, allocations: 7.984 kB / 1.215 GB, free: 1.668 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 0.0001075/0.3265, allocations: 113.8 kB / 1.215 GB, free: 1.547 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.087e-05/0.3266, allocations: 4 kB / 1.215 GB, free: 1.543 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.134e-05/0.3266, allocations: 7.969 kB / 1.215 GB, free: 1.539 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-06/0.3266, allocations: 0 / 1.215 GB, free: 1.539 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.3266, allocations: 4 kB / 1.215 GB, free: 1.535 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.3266, allocations: 3.938 kB / 1.215 GB, free: 1.531 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002605/0.3269, allocations: 181.7 kB / 1.215 GB, free: 1.305 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.3269, allocations: 0 / 1.215 GB, free: 1.305 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.288e-05/0.327, allocations: 15.98 kB / 1.215 GB, free: 1.289 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.975e-06/0.327, allocations: 0 / 1.215 GB, free: 1.289 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.717e-06/0.327, allocations: 0 / 1.215 GB, free: 1.289 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.327, allocations: 4 kB / 1.215 GB, free: 1.285 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.327, allocations: 0 / 1.215 GB, free: 1.285 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002055/0.3272, allocations: 175.3 kB / 1.216 GB, free: 1.098 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.523e-05/0.3273, allocations: 81.11 kB / 1.216 GB, free: 1 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.759e-05/0.3273, allocations: 4 kB / 1.216 GB, free: 0.9961 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001075/0.3275, allocations: 8.031 kB / 1.216 GB, free: 0.9883 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.389e-05/0.3275, allocations: 4 kB / 1.216 GB, free: 0.9844 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.323e-05/0.3275, allocations: 7.938 kB / 1.216 GB, free: 0.9766 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.862e-05/0.3276, allocations: 79.27 kB / 1.216 GB, free: 0.8984 MB / 0.9669 GB Notification: Performance of sort global known variables: time 3.81e-07/0.3276, allocations: 0 / 1.216 GB, free: 0.8984 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002396/0.3278, allocations: 16 kB / 1.216 GB, free: 0.8828 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.0001445/0.328, allocations: 99.25 kB / 1.216 GB, free: 0.7734 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001259/0.3281, allocations: 51.84 kB / 1.216 GB, free: 0.7227 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.53e-05/0.3281, allocations: 0 / 1.216 GB, free: 0.7227 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 2.577e-05/0.3281, allocations: 19.94 kB / 1.216 GB, free: 0.7031 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002997/0.3285, allocations: 11.98 kB / 1.216 GB, free: 0.6914 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006249/0.3291, allocations: 326.6 kB / 1.216 GB, free: 352 kB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002976/0.3294, allocations: 0.6885 MB / 1.217 GB, free: 15.63 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.458e-05/0.3295, allocations: 0 / 1.217 GB, free: 15.63 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.99e-05/0.3295, allocations: 11.44 kB / 1.217 GB, free: 15.62 MB / 0.9825 GB Notification: Performance of SimCode: time 2.51e-07/0.3295, allocations: 4 kB / 1.217 GB, free: 15.61 MB / 0.9825 GB Notification: Performance of Templates: time 0.00294/0.3325, allocations: 0.6359 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