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.315/2.315, allocations: 387.1 MB / 399.7 MB, free: 9.48 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.001024/0.001024, allocations: 176.2 kB / 492.3 MB, free: 0.6133 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.539/1.539, allocations: 221.3 MB / 0.7871 GB, free: 12.92 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009718/0.0009718, allocations: 101.2 kB / 0.9267 GB, free: 14 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.844e-05/3.846e-05, allocations: 8 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3192/0.3193, allocations: 142.3 MB / 1.212 GB, free: 38.54 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.273/1.593, allocations: 378.4 MB / 1.582 GB, free: 3.457 MB / 0.9948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002468/1.593, allocations: 67.84 kB / 1.582 GB, free: 3.422 MB / 0.9948 GB Notification: Performance of FrontEnd - DAE generated: time 0.03218/1.625, allocations: 13.33 MB / 1.595 GB, free: 8.859 MB / 1.01 GB Notification: Performance of FrontEnd: time 5.2e-06/1.625, allocations: 0 / 1.595 GB, free: 8.859 MB / 1.01 GB Notification: Performance of Transformations before backend: time 7.134e-06/1.625, allocations: 3.938 kB / 1.595 GB, free: 8.855 MB / 1.01 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.0003541/1.625, allocations: 349.7 kB / 1.595 GB, free: 8.473 MB / 1.01 GB Notification: Performance of prepare preOptimizeDAE: time 4.898e-05/1.626, allocations: 8.031 kB / 1.595 GB, free: 8.465 MB / 1.01 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001108/1.626, allocations: 4.625 kB / 1.595 GB, free: 8.461 MB / 1.01 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000115/1.626, allocations: 163 kB / 1.595 GB, free: 8.262 MB / 1.01 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.632e-05/1.626, allocations: 4 kB / 1.595 GB, free: 8.258 MB / 1.01 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.641e-05/1.626, allocations: 11.52 kB / 1.595 GB, free: 8.25 MB / 1.01 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001359/1.626, allocations: 52.62 kB / 1.596 GB, free: 8.199 MB / 1.01 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.215e-06/1.626, allocations: 0 / 1.596 GB, free: 8.199 MB / 1.01 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.209e-05/1.626, allocations: 0 / 1.596 GB, free: 8.199 MB / 1.01 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/1.626, allocations: 4 kB / 1.596 GB, free: 8.195 MB / 1.01 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.687e-05/1.626, allocations: 23.48 kB / 1.596 GB, free: 8.176 MB / 1.01 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002143/1.626, allocations: 165.4 kB / 1.596 GB, free: 7.969 MB / 1.01 GB Notification: Performance of preOpt comSubExp (simulation): time 9.08e-05/1.626, allocations: 49.75 kB / 1.596 GB, free: 7.918 MB / 1.01 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.026e-05/1.626, allocations: 16.42 kB / 1.596 GB, free: 7.902 MB / 1.01 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007846/1.627, allocations: 0.6189 MB / 1.596 GB, free: 7.191 MB / 1.01 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.113e-05/1.627, allocations: 38.12 kB / 1.596 GB, free: 7.148 MB / 1.01 GB Notification: Performance of pre-optimization done (n=5): time 1.563e-06/1.627, allocations: 0 / 1.596 GB, free: 7.148 MB / 1.01 GB Notification: Performance of matching and sorting (n=7): time 0.0005991/1.628, allocations: 296.2 kB / 1.597 GB, free: 6.824 MB / 1.01 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.781e-05/1.628, allocations: 51.41 kB / 1.597 GB, free: 6.762 MB / 1.01 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.874e-05/1.628, allocations: 100.8 kB / 1.597 GB, free: 6.66 MB / 1.01 GB Notification: Performance of collectPreVariables (initialization): time 1.845e-05/1.628, allocations: 25.7 kB / 1.597 GB, free: 6.629 MB / 1.01 GB Notification: Performance of collectInitialEqns (initialization): time 4.91e-05/1.628, allocations: 88.05 kB / 1.597 GB, free: 6.539 MB / 1.01 GB Notification: Performance of collectInitialBindings (initialization): time 2.194e-05/1.628, allocations: 25.95 kB / 1.597 GB, free: 6.52 MB / 1.01 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.2e-06/1.628, allocations: 4 kB / 1.597 GB, free: 6.516 MB / 1.01 GB Notification: Performance of setup shared object (initialization): time 0.0001089/1.628, allocations: 314.3 kB / 1.597 GB, free: 6.203 MB / 1.01 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.675e-05/1.628, allocations: 11.44 kB / 1.597 GB, free: 6.195 MB / 1.01 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.778e-05/1.628, allocations: 52.47 kB / 1.597 GB, free: 6.129 MB / 1.01 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.268e-05/1.628, allocations: 30.89 kB / 1.597 GB, free: 6.105 MB / 1.01 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/1.628, allocations: 0 / 1.597 GB, free: 6.105 MB / 1.01 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001322/1.629, allocations: 94.52 kB / 1.597 GB, free: 6.016 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/1.629, allocations: 8.125 kB / 1.597 GB, free: 6.008 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.064e-06/1.629, allocations: 4 kB / 1.597 GB, free: 6.004 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.679e-05/1.629, allocations: 7.953 kB / 1.597 GB, free: 5.996 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.299e-05/1.629, allocations: 19.98 kB / 1.597 GB, free: 5.977 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.132e-05/1.629, allocations: 8.062 kB / 1.597 GB, free: 5.969 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.705e-05/1.629, allocations: 3.625 kB / 1.597 GB, free: 5.969 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.788e-06/1.629, allocations: 4 kB / 1.597 GB, free: 5.965 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 8.176e-05/1.629, allocations: 113.3 kB / 1.598 GB, free: 5.852 MB / 1.01 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.599e-05/1.629, allocations: 0 / 1.598 GB, free: 5.852 MB / 1.01 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.312e-05/1.629, allocations: 11.22 kB / 1.598 GB, free: 5.848 MB / 1.01 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/1.629, allocations: 11.94 kB / 1.598 GB, free: 5.836 MB / 1.01 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/1.629, allocations: 0 / 1.598 GB, free: 5.836 MB / 1.01 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.297e-06/1.629, allocations: 0 / 1.598 GB, free: 5.836 MB / 1.01 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002331/1.629, allocations: 172.4 kB / 1.598 GB, free: 5.625 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/1.629, allocations: 0 / 1.598 GB, free: 5.625 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.42e-05/1.629, allocations: 12 kB / 1.598 GB, free: 5.613 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/1.629, allocations: 0 / 1.598 GB, free: 5.613 MB / 1.01 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.787e-06/1.629, allocations: 7.312 kB / 1.598 GB, free: 5.609 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/1.629, allocations: 0 / 1.598 GB, free: 5.609 MB / 1.01 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/1.629, allocations: 3.953 kB / 1.598 GB, free: 5.605 MB / 1.01 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001907/1.63, allocations: 185.1 kB / 1.598 GB, free: 5.418 MB / 1.01 GB Notification: Performance of postOpt removeConstants (simulation): time 4.963e-05/1.63, allocations: 77.11 kB / 1.598 GB, free: 5.324 MB / 1.01 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.328e-05/1.63, allocations: 0 / 1.598 GB, free: 5.324 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.707e-05/1.63, allocations: 11.72 kB / 1.598 GB, free: 5.316 MB / 1.01 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.958e-05/1.63, allocations: 4 kB / 1.598 GB, free: 5.312 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.915e-06/1.63, allocations: 3.953 kB / 1.598 GB, free: 5.309 MB / 1.01 GB Notification: Performance of sorting global known variables: time 3.578e-05/1.63, allocations: 79.28 kB / 1.598 GB, free: 5.23 MB / 1.01 GB Notification: Performance of sort global known variables: time 3.51e-07/1.63, allocations: 4 kB / 1.598 GB, free: 5.227 MB / 1.01 GB Notification: Performance of remove unused functions: time 0.0002315/1.63, allocations: 19.73 kB / 1.598 GB, free: 5.211 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.0002181/1.63, allocations: 125 kB / 1.598 GB, free: 5.086 MB / 1.01 GB Notification: Performance of simCode: created initialization part: time 0.0001178/1.63, allocations: 51.28 kB / 1.598 GB, free: 5.043 MB / 1.01 GB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/1.63, allocations: 0 / 1.598 GB, free: 5.043 MB / 1.01 GB Notification: Performance of simCode: created simulation system equations: time 2.31e-05/1.63, allocations: 15.94 kB / 1.598 GB, free: 5.027 MB / 1.01 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001627/1.631, allocations: 5.297 kB / 1.598 GB, free: 5.027 MB / 1.01 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005413/1.631, allocations: 280.6 kB / 1.599 GB, free: 4.738 MB / 1.01 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002566/1.631, allocations: 0.6887 MB / 1.599 GB, free: 4.023 MB / 1.01 GB Notification: Performance of simCode: alias equations: time 6.49e-05/1.631, allocations: 11.78 kB / 1.599 GB, free: 4.012 MB / 1.01 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.342e-05/1.632, allocations: 11.44 kB / 1.599 GB, free: 4 MB / 1.01 GB Notification: Performance of SimCode: time 8.92e-07/1.632, allocations: 0 / 1.599 GB, free: 4 MB / 1.01 GB Notification: Performance of Templates: time 0.003286/1.635, allocations: 0.9072 MB / 1.6 GB, free: 3.102 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