Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Media.Examples.WaterDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.014/2.014, allocations: 387.4 MB / 394.9 MB, free: 13.41 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001064/0.001063, allocations: 192.6 kB / 487.4 MB, free: 5.055 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.358/1.358, allocations: 221.5 MB / 0.7824 GB, free: 0.9688 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009238/0.0009238, allocations: 99.77 kB / 0.9219 GB, free: 2.207 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.474e-05/1.476e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2594/0.2594, allocations: 142.4 MB / 1.206 GB, free: 43.97 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9988/1.258, allocations: 377.7 MB / 1.575 GB, free: 12.23 MB / 0.9948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002396/1.259, allocations: 69.58 kB / 1.575 GB, free: 12.19 MB / 0.9948 GB Notification: Performance of FrontEnd - DAE generated: time 0.02855/1.287, allocations: 13.27 MB / 1.588 GB, free: 1.809 MB / 0.9948 GB Notification: Performance of FrontEnd: time 3.837e-06/1.287, allocations: 0 / 1.588 GB, free: 1.809 MB / 0.9948 GB Notification: Performance of Transformations before backend: time 4.759e-06/1.287, allocations: 3.938 kB / 1.588 GB, free: 1.805 MB / 0.9948 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.0002902/1.288, allocations: 348.8 kB / 1.588 GB, free: 1.426 MB / 0.9948 GB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/1.288, allocations: 8.031 kB / 1.588 GB, free: 1.418 MB / 0.9948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.543e-05/1.288, allocations: 8.609 kB / 1.588 GB, free: 1.41 MB / 0.9948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.716e-05/1.288, allocations: 163 kB / 1.588 GB, free: 1.211 MB / 0.9948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.623e-05/1.288, allocations: 8 kB / 1.588 GB, free: 1.203 MB / 0.9948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.098e-05/1.288, allocations: 3.906 kB / 1.588 GB, free: 1.199 MB / 0.9948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.746e-05/1.288, allocations: 19.55 kB / 1.588 GB, free: 1.184 MB / 0.9948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.169e-05/1.288, allocations: 45.12 kB / 1.588 GB, free: 1.137 MB / 0.9948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.654e-06/1.288, allocations: 0 / 1.588 GB, free: 1.137 MB / 0.9948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.108e-05/1.288, allocations: 0 / 1.588 GB, free: 1.137 MB / 0.9948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.028e-06/1.288, allocations: 0 / 1.588 GB, free: 1.137 MB / 0.9948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001469/1.288, allocations: 144.7 kB / 1.589 GB, free: 0.9609 MB / 0.9948 GB Notification: Performance of preOpt comSubExp (simulation): time 7.098e-05/1.288, allocations: 49.27 kB / 1.589 GB, free: 0.9102 MB / 0.9948 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.641e-05/1.288, allocations: 16.09 kB / 1.589 GB, free: 0.8945 MB / 0.9948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006839/1.289, allocations: 0.6058 MB / 1.589 GB, free: 196 kB / 0.9948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.17e-05/1.289, allocations: 37.88 kB / 1.589 GB, free: 152 kB / 0.9948 GB Notification: Performance of pre-optimization done (n=5): time 1.092e-06/1.289, allocations: 0 / 1.589 GB, free: 152 kB / 0.9948 GB Notification: Performance of matching and sorting (n=7): time 0.0004972/1.29, allocations: 288.1 kB / 1.589 GB, free: 15.82 MB / 1.01 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.753e-05/1.29, allocations: 54.16 kB / 1.59 GB, free: 15.76 MB / 1.01 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.495e-05/1.29, allocations: 89 kB / 1.59 GB, free: 15.67 MB / 1.01 GB Notification: Performance of collectPreVariables (initialization): time 1.391e-05/1.29, allocations: 25.7 kB / 1.59 GB, free: 15.64 MB / 1.01 GB Notification: Performance of collectInitialEqns (initialization): time 3.482e-05/1.29, allocations: 91.36 kB / 1.59 GB, free: 15.55 MB / 1.01 GB Notification: Performance of collectInitialBindings (initialization): time 1.74e-05/1.29, allocations: 22.83 kB / 1.59 GB, free: 15.53 MB / 1.01 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.577e-06/1.29, allocations: 4 kB / 1.59 GB, free: 15.52 MB / 1.01 GB Notification: Performance of setup shared object (initialization): time 8.622e-05/1.29, allocations: 317.8 kB / 1.59 GB, free: 15.21 MB / 1.01 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.126e-05/1.29, allocations: 14.81 kB / 1.59 GB, free: 15.2 MB / 1.01 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.319e-05/1.29, allocations: 48.95 kB / 1.59 GB, free: 15.13 MB / 1.01 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.206e-05/1.29, allocations: 21.69 kB / 1.59 GB, free: 15.12 MB / 1.01 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.92e-07/1.29, allocations: 4 kB / 1.59 GB, free: 15.11 MB / 1.01 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001125/1.29, allocations: 83.58 kB / 1.59 GB, free: 15.03 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 1.313e-05/1.29, allocations: 5.562 kB / 1.59 GB, free: 15.03 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/1.29, allocations: 4 kB / 1.59 GB, free: 15.02 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.187e-05/1.29, allocations: 3.938 kB / 1.59 GB, free: 15.02 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.978e-05/1.29, allocations: 19.98 kB / 1.59 GB, free: 15 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.235e-05/1.29, allocations: 7.953 kB / 1.59 GB, free: 14.99 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.365e-05/1.29, allocations: 0 / 1.59 GB, free: 14.99 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.694e-06/1.29, allocations: 11.62 kB / 1.59 GB, free: 14.98 MB / 1.01 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.135e-05/1.29, allocations: 108.9 kB / 1.59 GB, free: 14.87 MB / 1.01 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.223e-05/1.29, allocations: 0 / 1.59 GB, free: 14.87 MB / 1.01 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.776e-05/1.29, allocations: 7.531 kB / 1.59 GB, free: 14.87 MB / 1.01 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-06/1.29, allocations: 4 kB / 1.59 GB, free: 14.87 MB / 1.01 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/1.29, allocations: 3.984 kB / 1.59 GB, free: 14.86 MB / 1.01 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/1.29, allocations: 3.953 kB / 1.59 GB, free: 14.86 MB / 1.01 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001897/1.291, allocations: 149.4 kB / 1.591 GB, free: 14.68 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/1.291, allocations: 0 / 1.591 GB, free: 14.68 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.254e-05/1.291, allocations: 19.98 kB / 1.591 GB, free: 14.66 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/1.291, allocations: 0 / 1.591 GB, free: 14.66 MB / 1.01 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.233e-06/1.291, allocations: 0 / 1.591 GB, free: 14.66 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/1.291, allocations: 0 / 1.591 GB, free: 14.66 MB / 1.01 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/1.291, allocations: 4.078 kB / 1.591 GB, free: 14.66 MB / 1.01 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001514/1.291, allocations: 168.6 kB / 1.591 GB, free: 14.48 MB / 1.01 GB Notification: Performance of postOpt removeConstants (simulation): time 4.124e-05/1.291, allocations: 85.09 kB / 1.591 GB, free: 14.38 MB / 1.01 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.327e-05/1.291, allocations: 0 / 1.591 GB, free: 14.38 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.437e-05/1.291, allocations: 8 kB / 1.591 GB, free: 14.38 MB / 1.01 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.777e-05/1.291, allocations: 7.422 kB / 1.591 GB, free: 14.37 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.702e-06/1.291, allocations: 4.25 kB / 1.591 GB, free: 14.37 MB / 1.01 GB Notification: Performance of sorting global known variables: time 2.913e-05/1.291, allocations: 75.28 kB / 1.591 GB, free: 14.29 MB / 1.01 GB Notification: Performance of sort global known variables: time 1.3e-07/1.291, allocations: 0 / 1.591 GB, free: 14.29 MB / 1.01 GB Notification: Performance of remove unused functions: time 0.0002215/1.291, allocations: 12 kB / 1.591 GB, free: 14.28 MB / 1.01 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001469/1.292, allocations: 130.6 kB / 1.591 GB, free: 14.15 MB / 1.01 GB Notification: Performance of simCode: created initialization part: time 8.48e-05/1.292, allocations: 34.19 kB / 1.591 GB, free: 14.12 MB / 1.01 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/1.292, allocations: 0 / 1.591 GB, free: 14.12 MB / 1.01 GB Notification: Performance of simCode: created simulation system equations: time 1.936e-05/1.292, allocations: 15.94 kB / 1.591 GB, free: 14.11 MB / 1.01 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001542/1.292, allocations: 19.19 kB / 1.591 GB, free: 14.09 MB / 1.01 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004418/1.292, allocations: 271.3 kB / 1.591 GB, free: 13.8 MB / 1.01 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000203/1.292, allocations: 0.6884 MB / 1.592 GB, free: 13.09 MB / 1.01 GB Notification: Performance of simCode: alias equations: time 5.675e-05/1.293, allocations: 11.77 kB / 1.592 GB, free: 13.08 MB / 1.01 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.72e-05/1.293, allocations: 11.44 kB / 1.592 GB, free: 13.07 MB / 1.01 GB Notification: Performance of SimCode: time 2.71e-07/1.293, allocations: 4 kB / 1.592 GB, free: 13.06 MB / 1.01 GB Notification: Performance of Templates: time 0.00243/1.295, allocations: 0.7073 MB / 1.593 GB, free: 12.37 MB / 1.01 GB make -j1 -f Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.makefile (rm -f Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.sim & ./Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_WaterDerivativeCheck.csv","../files/Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches