Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck") translateModel(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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.001021/0.001021, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001061/0.001061, allocations: 191.7 kB / 16.25 MB, free: 6.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.466/1.466, allocations: 205.1 MB / 222.1 MB, free: 4.684 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.695/1.695, allocations: 292.2 MB / 0.5485 GB, free: 13.61 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 63.05 kB / 0.671 GB, free: 26.36 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3008/0.3022, allocations: 114.6 MB / 0.7828 GB, free: 13.9 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002597/0.3049, allocations: 1.336 MB / 0.7842 GB, free: 12.55 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.7091/1.014, allocations: 144.8 MB / 0.9256 GB, free: 6.23 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.542e-05/1.014, allocations: 5.062 kB / 0.9256 GB, free: 6.23 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.633e-05/1.014, allocations: 3.141 kB / 0.9256 GB, free: 6.23 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 6.524e-05/1.014, allocations: 4.844 kB / 0.9256 GB, free: 6.23 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004445/1.015, allocations: 81.86 kB / 0.9257 GB, free: 6.23 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 8.293e-05/1.015, allocations: 32.92 kB / 0.9257 GB, free: 6.23 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 4.639e-05/1.015, allocations: 5.812 kB / 0.9257 GB, free: 6.23 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 5.05e-05/1.015, allocations: 14.14 kB / 0.9257 GB, free: 6.23 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.568e-05/1.015, allocations: 18.67 kB / 0.9258 GB, free: 6.23 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.416e-05/1.015, allocations: 3.062 kB / 0.9258 GB, free: 6.23 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002721/1.015, allocations: 76.44 kB / 0.9258 GB, free: 6.227 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.142e-05/1.015, allocations: 11.62 kB / 0.9258 GB, free: 6.227 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.66e-05/1.015, allocations: 17.53 kB / 0.9259 GB, free: 6.227 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001737/1.016, allocations: 64.28 kB / 0.9259 GB, free: 6.223 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/1.016, allocations: 1.969 kB / 0.9259 GB, free: 6.223 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.332e-06/1.016, allocations: 1.094 kB / 0.9259 GB, free: 6.223 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.661e-06/1.016, allocations: 4 kB / 0.9259 GB, free: 6.219 MB / 0.7325 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.000921/1.017, allocations: 349.1 kB / 0.9263 GB, free: 21.86 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/1.017, allocations: 10.59 kB / 0.9263 GB, free: 21.86 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002234/1.017, allocations: 18.53 kB / 0.9263 GB, free: 21.86 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001474/1.017, allocations: 168.5 kB / 0.9265 GB, free: 21.66 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.879e-05/1.017, allocations: 5.75 kB / 0.9265 GB, free: 21.66 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.735e-05/1.017, allocations: 7.5 kB / 0.9265 GB, free: 21.66 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000167/1.017, allocations: 51.31 kB / 0.9265 GB, free: 21.62 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/1.017, allocations: 0 / 0.9265 GB, free: 21.62 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.776e-05/1.017, allocations: 4.844 kB / 0.9265 GB, free: 21.62 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/1.017, allocations: 1.688 kB / 0.9265 GB, free: 21.62 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.696e-05/1.017, allocations: 21.25 kB / 0.9265 GB, free: 21.62 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002094/1.018, allocations: 164.4 kB / 0.9267 GB, free: 21.43 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001328/1.018, allocations: 54.25 kB / 0.9267 GB, free: 21.41 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.373e-05/1.018, allocations: 15.52 kB / 0.9268 GB, free: 21.4 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 1.604e-05/1.018, allocations: 4.875 kB / 0.9268 GB, free: 21.39 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.167e-05/1.018, allocations: 34.41 kB / 0.9268 GB, free: 21.36 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=7): time 1.022e-06/1.018, allocations: 4.844 kB / 0.9268 GB, free: 21.35 MB / 0.7481 GB Notification: Performance of matching and sorting (n=11): time 0.0008091/1.019, allocations: 374.2 kB / 0.9272 GB, free: 21.1 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.394e-05/1.019, allocations: 56.03 kB / 0.9272 GB, free: 21.04 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.729e-05/1.019, allocations: 95.7 kB / 0.9273 GB, free: 20.93 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 4.738e-05/1.019, allocations: 26.7 kB / 0.9273 GB, free: 20.9 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 3.118e-05/1.019, allocations: 84.95 kB / 0.9274 GB, free: 20.82 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 3.333e-05/1.019, allocations: 37.45 kB / 0.9274 GB, free: 20.8 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.965e-05/1.019, allocations: 29.09 kB / 0.9275 GB, free: 20.78 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001189/1.019, allocations: 324.6 kB / 0.9278 GB, free: 20.46 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.91e-05/1.019, allocations: 13.97 kB / 0.9278 GB, free: 20.46 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.343e-05/1.019, allocations: 44.5 kB / 0.9278 GB, free: 20.45 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.611e-05/1.019, allocations: 60.47 kB / 0.9279 GB, free: 20.43 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.21e-07/1.019, allocations: 0 / 0.9279 GB, free: 20.43 MB / 0.7481 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001378/1.019, allocations: 102.6 kB / 0.928 GB, free: 20.39 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.696e-05/1.019, allocations: 8.188 kB / 0.928 GB, free: 20.39 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/1.019, allocations: 0.9688 kB / 0.928 GB, free: 20.39 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/1.019, allocations: 0.9688 kB / 0.928 GB, free: 20.39 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001056/1.02, allocations: 18.16 kB / 0.928 GB, free: 20.39 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/1.02, allocations: 2.219 kB / 0.928 GB, free: 20.39 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.12e-05/1.02, allocations: 6.656 kB / 0.928 GB, free: 20.39 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.105e-06/1.02, allocations: 6.906 kB / 0.928 GB, free: 20.38 MB / 0.7481 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.232e-05/1.02, allocations: 123.7 kB / 0.9282 GB, free: 20.27 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.554e-05/1.02, allocations: 3.922 kB / 0.9282 GB, free: 20.27 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.243e-05/1.02, allocations: 7.594 kB / 0.9282 GB, free: 20.26 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/1.02, allocations: 1.875 kB / 0.9282 GB, free: 20.26 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/1.02, allocations: 0 / 0.9282 GB, free: 20.26 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/1.02, allocations: 1.25 kB / 0.9282 GB, free: 20.26 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001182/1.02, allocations: 176.9 kB / 0.9283 GB, free: 20.07 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/1.02, allocations: 0.6562 kB / 0.9283 GB, free: 20.07 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001196/1.02, allocations: 28.48 kB / 0.9284 GB, free: 20.07 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/1.02, allocations: 4.75 kB / 0.9284 GB, free: 20.07 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.286e-06/1.02, allocations: 0 / 0.9284 GB, free: 20.07 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.265e-06/1.02, allocations: 1.188 kB / 0.9284 GB, free: 20.07 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/1.02, allocations: 0 / 0.9284 GB, free: 20.07 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001979/1.02, allocations: 138.8 kB / 0.9285 GB, free: 20 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001144/1.02, allocations: 80.67 kB / 0.9286 GB, free: 19.9 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.561e-05/1.02, allocations: 4.141 kB / 0.9286 GB, free: 19.9 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.07e-05/1.021, allocations: 13.19 kB / 0.9286 GB, free: 19.9 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.725e-05/1.021, allocations: 8.734 kB / 0.9286 GB, free: 19.9 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.855e-06/1.021, allocations: 6.719 kB / 0.9286 GB, free: 19.9 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 2.958e-05/1.021, allocations: 76.06 kB / 0.9287 GB, free: 19.82 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.1e-07/1.021, allocations: 0 / 0.9287 GB, free: 19.82 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0001863/1.021, allocations: 20.62 kB / 0.9287 GB, free: 19.82 MB / 0.7481 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001069/1.021, allocations: 102.2 kB / 0.9288 GB, free: 19.73 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0001425/1.021, allocations: 67.45 kB / 0.9289 GB, free: 19.72 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/1.021, allocations: 0 / 0.9289 GB, free: 19.72 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 4.53e-05/1.021, allocations: 25.69 kB / 0.9289 GB, free: 19.72 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002545/1.021, allocations: 7.5 kB / 0.9289 GB, free: 19.72 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000587/1.022, allocations: 340.3 kB / 0.9292 GB, free: 19.47 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000353/1.022, allocations: 0.6858 MB / 0.9299 GB, free: 18.77 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 6.911e-05/1.022, allocations: 13.2 kB / 0.9299 GB, free: 18.77 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.958e-05/1.022, allocations: 12.06 kB / 0.9299 GB, free: 18.76 MB / 0.7481 GB Notification: Performance of SimCode: time 2.3e-07/1.022, allocations: 0 / 0.9299 GB, free: 18.76 MB / 0.7481 GB Notification: Performance of Templates: time 0.002561/1.025, allocations: 0.6377 MB / 0.9305 GB, free: 18.7 MB / 0.7481 GB make -j1 -f Buildings_8_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.makefile (rm -f Buildings_8_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_8_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_8_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_8_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & ./Buildings_8_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1)