Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.hSteSym.|der.hSteCod.|der.hAirSym.|der.hAirCod.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck") translateModel(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.hSteSym.|der.hSteCod.|der.hAirSym.|der.hAirCod.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.325/1.325, allocations: 251.9 MB / 266.9 MB, free: 11.03 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0011/0.0011, allocations: 180.4 kB / 326.5 MB, free: 2.262 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.663/1.663, allocations: 205.4 MB / 0.5775 GB, free: 20.3 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009243/0.0009243, allocations: 96.47 kB / 0.6821 GB, free: 12.9 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004501/0.0004502, allocations: 5.844 kB / 0.7962 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2834/0.2839, allocations: 106.3 MB / 0.9001 GB, free: 63.98 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 10.36/10.64, allocations: 4.605 GB / 5.505 GB, free: 20.25 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002887/10.64, allocations: 85.73 kB / 5.505 GB, free: 20.17 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.5721/11.21, allocations: 36.58 MB / 5.541 GB, free: 316.8 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.774e-06/11.21, allocations: 0 / 5.541 GB, free: 316.8 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 7.414e-06/11.21, allocations: 1.125 kB / 5.541 GB, free: 316.8 MB / 0.8855 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.0003914/11.21, allocations: 351.6 kB / 5.541 GB, free: 316.4 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/11.21, allocations: 10.16 kB / 5.541 GB, free: 316.4 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000212/11.21, allocations: 15.31 kB / 5.541 GB, free: 316.4 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.477e-05/11.21, allocations: 162.6 kB / 5.542 GB, free: 316.2 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.7e-05/11.21, allocations: 1.125 kB / 5.542 GB, free: 316.2 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.836e-05/11.21, allocations: 11.42 kB / 5.542 GB, free: 316.2 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001407/11.21, allocations: 52.06 kB / 5.542 GB, free: 316.2 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/11.21, allocations: 1.375 kB / 5.542 GB, free: 316.2 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.431e-05/11.21, allocations: 5.031 kB / 5.542 GB, free: 316.2 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/11.21, allocations: 0 / 5.542 GB, free: 316.2 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.792e-05/11.21, allocations: 20.72 kB / 5.542 GB, free: 316.2 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001737/11.21, allocations: 177.3 kB / 5.542 GB, free: 316 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 9.141e-05/11.22, allocations: 46.08 kB / 5.542 GB, free: 316 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.456e-05/11.22, allocations: 1.094 kB / 5.542 GB, free: 316 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.948e-05/11.22, allocations: 35.19 kB / 5.542 GB, free: 315.9 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=7): time 1.943e-06/11.22, allocations: 1.5 kB / 5.542 GB, free: 315.9 MB / 0.8855 GB Notification: Performance of matching and sorting (n=11): time 0.0007805/11.22, allocations: 365.9 kB / 5.542 GB, free: 315.7 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.772e-05/11.22, allocations: 52.66 kB / 5.542 GB, free: 315.6 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.831e-05/11.22, allocations: 87.31 kB / 5.542 GB, free: 315.5 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 1.3e-05/11.22, allocations: 31.11 kB / 5.542 GB, free: 315.5 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 2.03e-05/11.22, allocations: 81.52 kB / 5.543 GB, free: 315.4 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 4.524e-05/11.22, allocations: 43.45 kB / 5.543 GB, free: 315.4 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.271e-06/11.22, allocations: 5.5 kB / 5.543 GB, free: 315.4 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 6.306e-05/11.22, allocations: 320.4 kB / 5.543 GB, free: 315.1 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.38e-05/11.22, allocations: 21.38 kB / 5.543 GB, free: 315.1 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.174e-05/11.22, allocations: 37.5 kB / 5.543 GB, free: 315 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.359e-05/11.22, allocations: 27.72 kB / 5.543 GB, free: 315 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.92e-07/11.22, allocations: 3.938 kB / 5.543 GB, free: 315 MB / 0.8855 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001475/11.22, allocations: 86.03 kB / 5.543 GB, free: 315 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.31e-05/11.22, allocations: 4.406 kB / 5.543 GB, free: 315 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/11.22, allocations: 3.5 kB / 5.543 GB, free: 315 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.795e-05/11.22, allocations: 5.641 kB / 5.543 GB, free: 315 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001308/11.22, allocations: 20.64 kB / 5.543 GB, free: 315 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/11.22, allocations: 1.406 kB / 5.543 GB, free: 315 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.56e-05/11.22, allocations: 5 kB / 5.543 GB, free: 315 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.317e-06/11.22, allocations: 3.609 kB / 5.543 GB, free: 315 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (14): * Single equations (assignments): 14 * 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.261e-05/11.22, allocations: 120.2 kB / 5.543 GB, free: 314.9 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.581e-05/11.22, allocations: 7.562 kB / 5.543 GB, free: 314.9 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.801e-05/11.22, allocations: 12.95 kB / 5.543 GB, free: 314.9 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/11.22, allocations: 1.031 kB / 5.543 GB, free: 314.9 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/11.22, allocations: 5.031 kB / 5.543 GB, free: 314.9 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/11.22, allocations: 0.7969 kB / 5.543 GB, free: 314.9 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001149/11.22, allocations: 177.2 kB / 5.543 GB, free: 314.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/11.22, allocations: 0.6562 kB / 5.543 GB, free: 314.7 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001322/11.22, allocations: 20.84 kB / 5.543 GB, free: 314.7 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/11.22, allocations: 2 kB / 5.543 GB, free: 314.7 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.078e-05/11.22, allocations: 1.969 kB / 5.543 GB, free: 314.7 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.714e-06/11.22, allocations: 0 / 5.543 GB, free: 314.7 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/11.22, allocations: 1.703 kB / 5.543 GB, free: 314.7 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002323/11.22, allocations: 138 kB / 5.544 GB, free: 314.6 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 5.97e-05/11.22, allocations: 87.91 kB / 5.544 GB, free: 314.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.554e-05/11.22, allocations: 5.25 kB / 5.544 GB, free: 314.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.98e-05/11.22, allocations: 6.609 kB / 5.544 GB, free: 314.5 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.273e-05/11.22, allocations: 6.047 kB / 5.544 GB, free: 314.5 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.003e-05/11.22, allocations: 5.375 kB / 5.544 GB, free: 314.5 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 2.074e-05/11.22, allocations: 77.28 kB / 5.544 GB, free: 314.4 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1e-07/11.22, allocations: 0 / 5.544 GB, free: 314.4 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003684/11.22, allocations: 55.23 kB / 5.544 GB, free: 314.4 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (hLiqSym,hSteSym,hAirSym) * 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 (11): * Single equations (assignments): 11 * 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.001026/11.22, allocations: 0.5695 MB / 5.544 GB, free: 314.2 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0001701/11.22, allocations: 58.22 kB / 5.544 GB, free: 314.2 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/11.22, allocations: 7.938 kB / 5.544 GB, free: 314.2 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 4.784e-05/11.22, allocations: 27.64 kB / 5.544 GB, free: 314.2 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001638/11.22, allocations: 11.41 kB / 5.544 GB, free: 314.2 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006426/11.22, allocations: 378.6 kB / 5.545 GB, free: 313.9 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001527/11.22, allocations: 0.6919 MB / 5.545 GB, free: 313.2 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 7.732e-05/11.22, allocations: 12.78 kB / 5.546 GB, free: 313.2 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.539e-05/11.22, allocations: 11.81 kB / 5.546 GB, free: 313.2 MB / 0.8855 GB Notification: Performance of SimCode: time 4.21e-07/11.22, allocations: 0 / 5.546 GB, free: 313.2 MB / 0.8855 GB Notification: Performance of Templates: time 0.0134/11.23, allocations: 8.027 MB / 5.553 GB, free: 312.4 MB / 0.8855 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.makefile (rm -f Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & ./Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.csv","../files/Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches