Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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.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_latest_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_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001112/0.001112, allocations: 99.55 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001319/0.001319, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.324/1.324, allocations: 223.2 MB / 239.9 MB, free: 5.469 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.502/2.502, allocations: 436.5 MB / 0.7104 GB, free: 7.914 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003353/0.0003354, allocations: 12 kB / 0.8708 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6392/0.6395, allocations: 153.7 MB / 1.021 GB, free: 1.113 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.001188/0.6407, allocations: 0.9799 MB / 1.022 GB, free: 128 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.1409/0.7817, allocations: 124.3 MB / 1.143 GB, free: 3.527 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.772e-05/0.7818, allocations: 4 kB / 1.143 GB, free: 3.523 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.018e-05/0.7818, allocations: 3.984 kB / 1.143 GB, free: 3.52 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 5.321e-05/0.7818, allocations: 8 kB / 1.143 GB, free: 3.512 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.000338/0.7822, allocations: 75.73 kB / 1.143 GB, free: 3.438 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 7.314e-05/0.7823, allocations: 31.89 kB / 1.143 GB, free: 3.406 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 4.689e-05/0.7823, allocations: 3.938 kB / 1.143 GB, free: 3.402 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 4.144e-05/0.7824, allocations: 11.98 kB / 1.143 GB, free: 3.391 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 6.156e-05/0.7824, allocations: 23.91 kB / 1.143 GB, free: 3.367 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.204e-05/0.7825, allocations: 0 / 1.143 GB, free: 3.367 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002572/0.7827, allocations: 79.83 kB / 1.143 GB, free: 3.289 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.301e-05/0.7827, allocations: 11.97 kB / 1.143 GB, free: 3.277 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.193e-05/0.7828, allocations: 29.7 kB / 1.143 GB, free: 3.242 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.000116/0.7829, allocations: 49.8 kB / 1.143 GB, free: 3.199 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.7829, allocations: 0 / 1.143 GB, free: 3.199 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.114e-06/0.7829, allocations: 0 / 1.143 GB, free: 3.199 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 4.679e-06/0.7829, allocations: 0 / 1.143 GB, free: 3.199 MB / 0.8887 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.0003834/0.7833, allocations: 343.2 kB / 1.144 GB, free: 2.816 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.7834, allocations: 8.031 kB / 1.144 GB, free: 2.809 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001919/0.7836, allocations: 8 kB / 1.144 GB, free: 2.801 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000119/0.7837, allocations: 179 kB / 1.144 GB, free: 2.586 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.224e-05/0.7837, allocations: 0 / 1.144 GB, free: 2.586 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.321e-05/0.7837, allocations: 8 kB / 1.144 GB, free: 2.578 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001274/0.7839, allocations: 45.69 kB / 1.144 GB, free: 2.527 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/0.7839, allocations: 0 / 1.144 GB, free: 2.527 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.55e-05/0.7839, allocations: 7.984 kB / 1.144 GB, free: 2.52 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.289e-06/0.7839, allocations: 0 / 1.144 GB, free: 2.52 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.565e-05/0.784, allocations: 11.98 kB / 1.144 GB, free: 2.508 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001876/0.7842, allocations: 173.5 kB / 1.144 GB, free: 2.289 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 9.711e-05/0.7843, allocations: 54.45 kB / 1.144 GB, free: 2.227 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 1.27e-05/0.7843, allocations: 4 kB / 1.144 GB, free: 2.223 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.564e-05/0.7843, allocations: 30.56 kB / 1.144 GB, free: 2.184 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=7): time 9.41e-07/0.7843, allocations: 0 / 1.144 GB, free: 2.184 MB / 0.8887 GB Notification: Performance of matching and sorting (n=11): time 0.0007333/0.7851, allocations: 370.4 kB / 1.145 GB, free: 1.77 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.652e-05/0.7851, allocations: 55.41 kB / 1.145 GB, free: 1.703 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.53e-05/0.7852, allocations: 89.86 kB / 1.145 GB, free: 1.605 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.737e-05/0.7852, allocations: 33.64 kB / 1.145 GB, free: 1.566 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 4.188e-05/0.7853, allocations: 84.14 kB / 1.145 GB, free: 1.48 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 3.818e-05/0.7853, allocations: 39.36 kB / 1.145 GB, free: 1.441 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.997e-06/0.7853, allocations: 0 / 1.145 GB, free: 1.441 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001067/0.7854, allocations: 318.8 kB / 1.145 GB, free: 1.121 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.171e-05/0.7855, allocations: 24.05 kB / 1.145 GB, free: 1.098 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.63e-05/0.7855, allocations: 37.7 kB / 1.145 GB, free: 1.055 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.374e-05/0.7856, allocations: 23.95 kB / 1.145 GB, free: 1.031 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.22e-07/0.7856, allocations: 0 / 1.145 GB, free: 1.031 MB / 0.8887 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001244/0.7857, allocations: 94.14 kB / 1.145 GB, free: 0.9336 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.7857, allocations: 11.98 kB / 1.145 GB, free: 0.9219 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.7857, allocations: 0 / 1.145 GB, free: 0.9219 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.003e-05/0.7858, allocations: 3.938 kB / 1.145 GB, free: 0.918 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001183/0.7859, allocations: 24 kB / 1.145 GB, free: 0.8945 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.7859, allocations: 4 kB / 1.145 GB, free: 0.8906 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.141e-05/0.7859, allocations: 0 / 1.145 GB, free: 0.8906 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.724e-06/0.7859, allocations: 4 kB / 1.145 GB, free: 0.8867 MB / 0.8887 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 9.76e-05/0.786, allocations: 125.7 kB / 1.146 GB, free: 0.7539 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.343e-05/0.7861, allocations: 7.906 kB / 1.146 GB, free: 0.7461 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.618e-05/0.7861, allocations: 15.95 kB / 1.146 GB, free: 0.7266 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.7861, allocations: 0 / 1.146 GB, free: 0.7266 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.7861, allocations: 4 kB / 1.146 GB, free: 0.7227 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.7861, allocations: 0 / 1.146 GB, free: 0.7227 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001278/0.7863, allocations: 177.6 kB / 1.146 GB, free: 0.5 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.7863, allocations: 3.953 kB / 1.146 GB, free: 0.4961 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001199/0.7864, allocations: 23.98 kB / 1.146 GB, free: 484 kB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.7864, allocations: 0 / 1.146 GB, free: 484 kB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.035e-05/0.7864, allocations: 4 kB / 1.146 GB, free: 480 kB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-06/0.7864, allocations: 0 / 1.146 GB, free: 480 kB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.7864, allocations: 0 / 1.146 GB, free: 480 kB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001938/0.7866, allocations: 129 kB / 1.146 GB, free: 332 kB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 7.046e-05/0.7867, allocations: 101 kB / 1.146 GB, free: 212 kB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.381e-05/0.7867, allocations: 0 / 1.146 GB, free: 212 kB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.902e-05/0.7868, allocations: 0 / 1.146 GB, free: 212 kB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.502e-05/0.7868, allocations: 11.98 kB / 1.146 GB, free: 200 kB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.025e-06/0.7869, allocations: 4 kB / 1.146 GB, free: 196 kB / 0.8887 GB Notification: Performance of sorting global known variables: time 2.855e-05/0.7869, allocations: 75.28 kB / 1.146 GB, free: 120 kB / 0.8887 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7869, allocations: 0 / 1.146 GB, free: 120 kB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0001986/0.7871, allocations: 16 kB / 1.146 GB, free: 104 kB / 0.8887 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.0001201/0.7872, allocations: 103.3 kB / 1.146 GB, free: 15.99 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001284/0.7874, allocations: 59.84 kB / 1.146 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.7874, allocations: 0 / 1.146 GB, free: 15.93 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 3.72e-05/0.7874, allocations: 27.94 kB / 1.146 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001682/0.7876, allocations: 8.562 kB / 1.146 GB, free: 15.9 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000546/0.7881, allocations: 370.8 kB / 1.147 GB, free: 15.5 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002441/0.7884, allocations: 0.6848 MB / 1.147 GB, free: 14.79 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 6.46e-05/0.7885, allocations: 12.66 kB / 1.147 GB, free: 14.78 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.638e-05/0.7885, allocations: 15.44 kB / 1.147 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of SimCode: time 1.463e-06/0.7885, allocations: 4 kB / 1.147 GB, free: 14.76 MB / 0.9044 GB Notification: Performance of Templates: time 0.00262/0.7911, allocations: 0.5772 MB / 1.148 GB, free: 14.19 MB / 0.9044 GB make -j1 -f Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.makefile (rm -f Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & ./Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.csv","../files/Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches