Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001396/0.001396, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001586/0.001586, allocations: 192 kB / 16.53 MB, free: 6.391 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.385/1.385, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.639/2.639, allocations: 437 MB / 0.7103 GB, free: 5.051 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001377/0.001377, allocations: 67.89 kB / 0.8692 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7201/0.7215, allocations: 151.6 MB / 1.017 GB, free: 2.523 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.002387/0.7239, allocations: 1.272 MB / 1.018 GB, free: 1.242 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.003633/0.7276, allocations: 3.256 MB / 1.022 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.766e-05/0.7276, allocations: 0 / 1.022 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.413e-05/0.7277, allocations: 3.938 kB / 1.022 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 4.269e-05/0.7277, allocations: 11.92 kB / 1.022 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004932/0.7282, allocations: 103.5 kB / 1.022 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 6.246e-05/0.7283, allocations: 31.92 kB / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 3.188e-05/0.7283, allocations: 0 / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 4.611e-05/0.7284, allocations: 23.91 kB / 1.022 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 5.545e-05/0.7285, allocations: 19.92 kB / 1.022 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.07e-05/0.7285, allocations: 0 / 1.022 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002328/0.7287, allocations: 83.8 kB / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.767e-05/0.7287, allocations: 4 kB / 1.022 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.325e-05/0.7288, allocations: 15.92 kB / 1.022 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001787/0.729, allocations: 69.83 kB / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.347e-06/0.729, allocations: 4 kB / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.212e-06/0.729, allocations: 0 / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.809e-06/0.729, allocations: 0 / 1.022 GB, free: 13.61 MB / 0.7794 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.0003577/0.7294, allocations: 343.5 kB / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.252e-05/0.7294, allocations: 12.03 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.515e-05/0.7295, allocations: 4.938 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.534e-05/0.7296, allocations: 168.3 kB / 1.023 GB, free: 13 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.139e-05/0.7296, allocations: 384 / 1.023 GB, free: 13 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.956e-05/0.7297, allocations: 16.28 kB / 1.023 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001245/0.7298, allocations: 57.78 kB / 1.023 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.7298, allocations: 3.984 kB / 1.023 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.553e-05/0.7298, allocations: 8 kB / 1.023 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.7298, allocations: 0 / 1.023 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.912e-05/0.7299, allocations: 15.97 kB / 1.023 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001691/0.7301, allocations: 161.7 kB / 1.023 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 9.133e-05/0.7302, allocations: 58.48 kB / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.97e-05/0.7302, allocations: 24.84 kB / 1.023 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006443/0.7309, allocations: 0.5831 MB / 1.023 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.309e-05/0.7309, allocations: 38.56 kB / 1.023 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=5): time 1.312e-06/0.7309, allocations: 3.938 kB / 1.023 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0005738/0.7315, allocations: 310.2 kB / 1.024 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.946e-05/0.7315, allocations: 51.41 kB / 1.024 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001196/0.7317, allocations: 97.86 kB / 1.024 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.464e-05/0.7317, allocations: 29.7 kB / 1.024 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.714e-05/0.7317, allocations: 84.05 kB / 1.024 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.952e-05/0.7317, allocations: 27.64 kB / 1.024 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.96e-05/0.7318, allocations: 25.72 kB / 1.024 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001558/0.7319, allocations: 318.8 kB / 1.024 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.933e-05/0.732, allocations: 16 kB / 1.024 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.367e-05/0.732, allocations: 57.08 kB / 1.024 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.149e-05/0.7321, allocations: 73.08 kB / 1.025 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.7321, allocations: 4.438 kB / 1.025 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001469/0.7323, allocations: 93.45 kB / 1.025 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.269e-05/0.7323, allocations: 4 kB / 1.025 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.7323, allocations: 4 kB / 1.025 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.401e-05/0.7323, allocations: 3.938 kB / 1.025 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.887e-05/0.7324, allocations: 27.98 kB / 1.025 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.154e-06/0.7324, allocations: 4.125 kB / 1.025 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.733e-05/0.7325, allocations: 7.938 kB / 1.025 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.813e-06/0.7325, allocations: 4 kB / 1.025 GB, free: 10.5 MB / 0.7794 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.203e-05/0.7326, allocations: 117.8 kB / 1.025 GB, free: 10.37 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.917e-05/0.7326, allocations: 4 kB / 1.025 GB, free: 10.37 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.908e-05/0.7326, allocations: 8.25 kB / 1.025 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.7326, allocations: 0 / 1.025 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.207e-06/0.7327, allocations: 0 / 1.025 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.7327, allocations: 7.922 kB / 1.025 GB, free: 10.35 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002261/0.7329, allocations: 181.6 kB / 1.025 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.7329, allocations: 0 / 1.025 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.784e-05/0.733, allocations: 19.98 kB / 1.025 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.733, allocations: 0 / 1.025 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.224e-06/0.733, allocations: 0 / 1.025 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.733, allocations: 0 / 1.025 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.733, allocations: 0 / 1.025 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001737/0.7332, allocations: 179.3 kB / 1.025 GB, free: 9.91 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.244e-05/0.7333, allocations: 77.11 kB / 1.025 GB, free: 9.816 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.617e-05/0.7333, allocations: 12.03 kB / 1.025 GB, free: 9.805 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001054/0.7334, allocations: 4 kB / 1.025 GB, free: 9.801 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.768e-05/0.7334, allocations: 4 kB / 1.025 GB, free: 9.797 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.333e-06/0.7334, allocations: 7.875 kB / 1.025 GB, free: 9.789 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.4e-05/0.7335, allocations: 83.27 kB / 1.025 GB, free: 9.707 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.1e-07/0.7335, allocations: 0 / 1.025 GB, free: 9.707 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000253/0.7337, allocations: 16 kB / 1.025 GB, free: 9.691 MB / 0.7794 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.0001174/0.7339, allocations: 103.2 kB / 1.025 GB, free: 9.582 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001154/0.734, allocations: 47.92 kB / 1.025 GB, free: 9.535 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.734, allocations: 0 / 1.025 GB, free: 9.535 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 2.694e-05/0.734, allocations: 27.86 kB / 1.026 GB, free: 9.508 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002942/0.7343, allocations: 8 kB / 1.026 GB, free: 9.5 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005815/0.7349, allocations: 326.6 kB / 1.026 GB, free: 9.156 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002287/0.7352, allocations: 0.6895 MB / 1.027 GB, free: 8.441 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.131e-05/0.7352, allocations: 7.844 kB / 1.027 GB, free: 8.434 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.359e-05/0.7352, allocations: 15.44 kB / 1.027 GB, free: 8.418 MB / 0.7794 GB Notification: Performance of SimCode: time 3.21e-07/0.7352, allocations: 0 / 1.027 GB, free: 8.418 MB / 0.7794 GB Notification: Performance of Templates: time 0.002634/0.7379, allocations: 0.618 MB / 1.027 GB, free: 7.801 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.makefile (rm -f Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.sim & ./Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Examples_WaterDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Examples.WaterDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches