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/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.342/2.342, allocations: 390.5 MB / 398 MB, free: 10.98 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.001448/0.001448, allocations: 180.9 kB / 491.2 MB, free: 1.621 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.797/1.797, allocations: 221.5 MB / 0.7868 GB, free: 13.29 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.001291/0.001291, allocations: 99.47 kB / 0.9269 GB, free: 13.78 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.881e-05/1.883e-05, allocations: 4 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3478/0.3478, allocations: 143 MB / 1.212 GB, free: 39.55 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.346/1.694, allocations: 378.5 MB / 1.582 GB, free: 3.742 MB / 0.9948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001982/1.694, allocations: 73.53 kB / 1.582 GB, free: 3.703 MB / 0.9948 GB Notification: Performance of FrontEnd - DAE generated: time 0.02814/1.722, allocations: 13.28 MB / 1.595 GB, free: 9.316 MB / 1.01 GB Notification: Performance of FrontEnd: time 1.342e-06/1.722, allocations: 0 / 1.595 GB, free: 9.316 MB / 1.01 GB Notification: Performance of Transformations before backend: time 5.921e-06/1.722, allocations: 0 / 1.595 GB, free: 9.316 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.0003034/1.723, allocations: 337.9 kB / 1.595 GB, free: 8.945 MB / 1.01 GB Notification: Performance of prepare preOptimizeDAE: time 4.461e-05/1.723, allocations: 16.03 kB / 1.595 GB, free: 8.93 MB / 1.01 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.929e-05/1.723, allocations: 8.578 kB / 1.595 GB, free: 8.922 MB / 1.01 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001163/1.723, allocations: 167 kB / 1.595 GB, free: 8.719 MB / 1.01 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.455e-05/1.723, allocations: 0 / 1.595 GB, free: 8.719 MB / 1.01 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.723e-05/1.723, allocations: 7.906 kB / 1.595 GB, free: 8.711 MB / 1.01 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.642e-05/1.723, allocations: 19.59 kB / 1.595 GB, free: 8.695 MB / 1.01 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.915e-05/1.723, allocations: 48.92 kB / 1.596 GB, free: 8.645 MB / 1.01 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/1.723, allocations: 0 / 1.596 GB, free: 8.645 MB / 1.01 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.138e-05/1.723, allocations: 0 / 1.596 GB, free: 8.645 MB / 1.01 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.491e-06/1.723, allocations: 4 kB / 1.596 GB, free: 8.641 MB / 1.01 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001526/1.723, allocations: 141.9 kB / 1.596 GB, free: 8.469 MB / 1.01 GB Notification: Performance of preOpt comSubExp (simulation): time 7.58e-05/1.724, allocations: 45.69 kB / 1.596 GB, free: 8.422 MB / 1.01 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.463e-05/1.724, allocations: 16.8 kB / 1.596 GB, free: 8.402 MB / 1.01 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007321/1.724, allocations: 0.6123 MB / 1.596 GB, free: 7.695 MB / 1.01 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.581e-05/1.724, allocations: 34.56 kB / 1.596 GB, free: 7.652 MB / 1.01 GB Notification: Performance of pre-optimization done (n=5): time 1.233e-06/1.724, allocations: 0 / 1.596 GB, free: 7.652 MB / 1.01 GB Notification: Performance of matching and sorting (n=7): time 0.0005215/1.725, allocations: 290.2 kB / 1.597 GB, free: 7.332 MB / 1.01 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.841e-05/1.725, allocations: 51.41 kB / 1.597 GB, free: 7.27 MB / 1.01 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.771e-05/1.725, allocations: 89 kB / 1.597 GB, free: 7.176 MB / 1.01 GB Notification: Performance of collectPreVariables (initialization): time 1.446e-05/1.725, allocations: 25.7 kB / 1.597 GB, free: 7.145 MB / 1.01 GB Notification: Performance of collectInitialEqns (initialization): time 4.209e-05/1.725, allocations: 95.41 kB / 1.597 GB, free: 7.051 MB / 1.01 GB Notification: Performance of collectInitialBindings (initialization): time 1.674e-05/1.725, allocations: 23.03 kB / 1.597 GB, free: 7.031 MB / 1.01 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.777e-06/1.725, allocations: 3.938 kB / 1.597 GB, free: 7.027 MB / 1.01 GB Notification: Performance of setup shared object (initialization): time 9.628e-05/1.725, allocations: 314.8 kB / 1.597 GB, free: 6.711 MB / 1.01 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.694e-05/1.725, allocations: 11 kB / 1.597 GB, free: 6.703 MB / 1.01 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.594e-05/1.725, allocations: 47.91 kB / 1.597 GB, free: 6.645 MB / 1.01 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.31e-05/1.725, allocations: 23.23 kB / 1.597 GB, free: 6.625 MB / 1.01 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.41e-07/1.725, allocations: 0 / 1.597 GB, free: 6.625 MB / 1.01 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001107/1.725, allocations: 80.08 kB / 1.597 GB, free: 6.547 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 1.442e-05/1.725, allocations: 8 kB / 1.597 GB, free: 6.539 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/1.726, allocations: 0 / 1.597 GB, free: 6.539 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/1.726, allocations: 8.078 kB / 1.597 GB, free: 6.531 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.544e-05/1.726, allocations: 27.5 kB / 1.597 GB, free: 6.508 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/1.726, allocations: 0 / 1.597 GB, free: 6.508 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.544e-05/1.726, allocations: 7.984 kB / 1.597 GB, free: 6.5 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.083e-06/1.726, allocations: 4 kB / 1.597 GB, free: 6.496 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 7.271e-05/1.726, allocations: 105.8 kB / 1.598 GB, free: 6.387 MB / 1.01 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.448e-05/1.726, allocations: 4 kB / 1.598 GB, free: 6.383 MB / 1.01 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.036e-05/1.726, allocations: 8.25 kB / 1.598 GB, free: 6.379 MB / 1.01 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-06/1.726, allocations: 0 / 1.598 GB, free: 6.379 MB / 1.01 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/1.726, allocations: 3.953 kB / 1.598 GB, free: 6.375 MB / 1.01 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.618e-06/1.726, allocations: 7.984 kB / 1.598 GB, free: 6.367 MB / 1.01 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002052/1.726, allocations: 150 kB / 1.598 GB, free: 6.188 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/1.726, allocations: 0 / 1.598 GB, free: 6.188 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.277e-05/1.726, allocations: 12 kB / 1.598 GB, free: 6.176 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/1.726, allocations: 4 kB / 1.598 GB, free: 6.172 MB / 1.01 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.307e-06/1.726, allocations: 3.984 kB / 1.598 GB, free: 6.168 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.173e-06/1.726, allocations: 0 / 1.598 GB, free: 6.168 MB / 1.01 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/1.726, allocations: 0 / 1.598 GB, free: 6.168 MB / 1.01 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001588/1.726, allocations: 177.1 kB / 1.598 GB, free: 5.988 MB / 1.01 GB Notification: Performance of postOpt removeConstants (simulation): time 4.683e-05/1.726, allocations: 81.09 kB / 1.598 GB, free: 5.891 MB / 1.01 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.669e-05/1.726, allocations: 7.984 kB / 1.598 GB, free: 5.883 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.554e-05/1.727, allocations: 0 / 1.598 GB, free: 5.883 MB / 1.01 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.434e-05/1.727, allocations: 7.938 kB / 1.598 GB, free: 5.875 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.392e-06/1.727, allocations: 3.5 kB / 1.598 GB, free: 5.875 MB / 1.01 GB Notification: Performance of sorting global known variables: time 3.035e-05/1.727, allocations: 83.27 kB / 1.598 GB, free: 5.793 MB / 1.01 GB Notification: Performance of sort global known variables: time 1.3e-07/1.727, allocations: 0 / 1.598 GB, free: 5.793 MB / 1.01 GB Notification: Performance of remove unused functions: time 0.0002188/1.727, allocations: 8 kB / 1.598 GB, free: 5.785 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.0001567/1.727, allocations: 126.8 kB / 1.598 GB, free: 5.656 MB / 1.01 GB Notification: Performance of simCode: created initialization part: time 8.973e-05/1.727, allocations: 39.8 kB / 1.598 GB, free: 5.621 MB / 1.01 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/1.727, allocations: 0 / 1.598 GB, free: 5.621 MB / 1.01 GB Notification: Performance of simCode: created simulation system equations: time 2.06e-05/1.727, allocations: 15.38 kB / 1.598 GB, free: 5.609 MB / 1.01 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001588/1.727, allocations: 7.938 kB / 1.598 GB, free: 5.602 MB / 1.01 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004764/1.728, allocations: 271.7 kB / 1.598 GB, free: 5.32 MB / 1.01 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002478/1.728, allocations: 0.6904 MB / 1.599 GB, free: 4.605 MB / 1.01 GB Notification: Performance of simCode: alias equations: time 5.667e-05/1.728, allocations: 15.77 kB / 1.599 GB, free: 4.59 MB / 1.01 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.004e-05/1.728, allocations: 11.44 kB / 1.599 GB, free: 4.578 MB / 1.01 GB Notification: Performance of SimCode: time 2.61e-07/1.728, allocations: 0 / 1.599 GB, free: 4.578 MB / 1.01 GB Notification: Performance of Templates: time 0.002619/1.731, allocations: 0.7088 MB / 1.6 GB, free: 3.879 MB / 1.01 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","../files/Buildings_latest_Buildings.Media.Examples.WaterDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches