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.001306/0.001306, allocations: 112.2 kB / 16.37 MB, free: 6.012 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.001269/0.001269, allocations: 185.5 kB / 17.3 MB, free: 5.617 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.545/1.545, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.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.736/1.736, allocations: 292.3 MB / 0.5496 GB, free: 17.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.001369/0.001369, allocations: 67.91 kB / 0.6729 GB, free: 5.883 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.237/0.2384, allocations: 114.6 MB / 0.7848 GB, free: 3.215 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002453/0.2409, allocations: 1.287 MB / 0.786 GB, free: 1.914 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.5978/0.8387, allocations: 147 MB / 0.9296 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.276e-05/0.8388, allocations: 1.344 kB / 0.9296 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.571e-05/0.8389, allocations: 7.938 kB / 0.9296 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.712e-05/0.8389, allocations: 3.984 kB / 0.9296 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005107/0.8395, allocations: 97.73 kB / 0.9297 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.71e-05/0.8396, allocations: 39.2 kB / 0.9297 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.098e-05/0.8396, allocations: 2.344 kB / 0.9297 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.597e-05/0.8397, allocations: 11.67 kB / 0.9297 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.769e-05/0.8397, allocations: 21.41 kB / 0.9298 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.22e-05/0.8398, allocations: 2.469 kB / 0.9298 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002775/0.84, allocations: 77.16 kB / 0.9298 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.814e-05/0.8401, allocations: 10.59 kB / 0.9299 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.135e-05/0.8401, allocations: 15.06 kB / 0.9299 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001697/0.8403, allocations: 65.56 kB / 0.9299 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.8403, allocations: 0 / 0.9299 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.924e-06/0.8403, allocations: 0 / 0.9299 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.72e-06/0.8403, allocations: 0 / 0.9299 GB, free: 5.23 MB / 0.7169 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.0004341/0.8408, allocations: 349.9 kB / 0.9303 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/0.8408, allocations: 8.938 kB / 0.9303 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002083/0.841, allocations: 20.95 kB / 0.9303 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001183/0.8411, allocations: 170.1 kB / 0.9305 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.728e-05/0.8412, allocations: 5.562 kB / 0.9305 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.711e-05/0.8412, allocations: 7.062 kB / 0.9305 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001277/0.8413, allocations: 53.25 kB / 0.9305 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.8414, allocations: 6.375 kB / 0.9305 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.394e-05/0.8414, allocations: 5.344 kB / 0.9305 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.034e-06/0.8414, allocations: 8.266 kB / 0.9305 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.232e-05/0.8414, allocations: 12.67 kB / 0.9305 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001898/0.8416, allocations: 164.6 kB / 0.9307 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 9.671e-05/0.8417, allocations: 55.97 kB / 0.9308 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.943e-05/0.8418, allocations: 18.62 kB / 0.9308 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.196e-05/0.8418, allocations: 1.312 kB / 0.9308 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.62e-05/0.8418, allocations: 31.78 kB / 0.9308 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.072e-06/0.8418, allocations: 0 / 0.9308 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0007836/0.8426, allocations: 370.9 kB / 0.9312 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.638e-05/0.8427, allocations: 60.77 kB / 0.9312 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.594e-05/0.8428, allocations: 91.17 kB / 0.9313 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.794e-05/0.8428, allocations: 31.02 kB / 0.9313 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.809e-05/0.8428, allocations: 80.14 kB / 0.9314 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.218e-05/0.8429, allocations: 41.27 kB / 0.9315 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.729e-05/0.8429, allocations: 30.03 kB / 0.9315 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.000127/0.8431, allocations: 324 kB / 0.9318 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.99e-05/0.8431, allocations: 15.22 kB / 0.9318 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.116e-05/0.8432, allocations: 39.39 kB / 0.9318 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.005e-05/0.8433, allocations: 59.91 kB / 0.9319 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.52e-07/0.8433, allocations: 1.312 kB / 0.9319 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001421/0.8434, allocations: 98.05 kB / 0.932 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.462e-05/0.8434, allocations: 8 kB / 0.932 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.8434, allocations: 4 kB / 0.932 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.559e-05/0.8435, allocations: 0 / 0.932 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001166/0.8436, allocations: 23.92 kB / 0.932 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.274e-06/0.8436, allocations: 4 kB / 0.932 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.299e-05/0.8436, allocations: 0 / 0.932 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.588e-06/0.8437, allocations: 9.875 kB / 0.932 GB, free: 3.09 MB / 0.7169 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 8.702e-05/0.8438, allocations: 113.8 kB / 0.9321 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.697e-05/0.8438, allocations: 7.906 kB / 0.9322 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.25e-05/0.8438, allocations: 15.95 kB / 0.9322 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.8438, allocations: 6.688 kB / 0.9322 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.8438, allocations: 0 / 0.9322 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.606e-06/0.8439, allocations: 0 / 0.9322 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001364/0.844, allocations: 173.6 kB / 0.9323 GB, free: 2.727 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.844, allocations: 4 kB / 0.9323 GB, free: 2.723 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001237/0.8441, allocations: 23.94 kB / 0.9324 GB, free: 2.699 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.8441, allocations: 0 / 0.9324 GB, free: 2.699 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.058e-05/0.8442, allocations: 4 kB / 0.9324 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.8442, allocations: 0 / 0.9324 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.8442, allocations: 0 / 0.9324 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002074/0.8444, allocations: 141.8 kB / 0.9325 GB, free: 2.539 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 7.111e-05/0.8445, allocations: 81.02 kB / 0.9326 GB, free: 2.441 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.831e-05/0.8445, allocations: 8.031 kB / 0.9326 GB, free: 2.434 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.612e-05/0.8446, allocations: 4 kB / 0.9326 GB, free: 2.43 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.192e-05/0.8446, allocations: 4 kB / 0.9326 GB, free: 2.426 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.197e-05/0.8446, allocations: 7.984 kB / 0.9326 GB, free: 2.418 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.118e-05/0.8447, allocations: 81.72 kB / 0.9327 GB, free: 2.34 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8447, allocations: 0 / 0.9327 GB, free: 2.34 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002001/0.8449, allocations: 16 kB / 0.9327 GB, free: 2.324 MB / 0.7169 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.0001084/0.845, allocations: 111.1 kB / 0.9328 GB, free: 2.203 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001403/0.8451, allocations: 47.98 kB / 0.9329 GB, free: 2.156 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 7.404e-06/0.8452, allocations: 3.938 kB / 0.9329 GB, free: 2.152 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.757e-05/0.8452, allocations: 31.92 kB / 0.9329 GB, free: 2.121 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002325/0.8455, allocations: 4.547 kB / 0.9329 GB, free: 2.117 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005971/0.8461, allocations: 358.3 kB / 0.9332 GB, free: 1.75 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002623/0.8463, allocations: 0.6923 MB / 0.9339 GB, free: 1.031 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.486e-05/0.8464, allocations: 11.44 kB / 0.9339 GB, free: 1.023 MB / 0.7169 GB Notification: Performance of SimCode: time 3.51e-07/0.8464, allocations: 0 / 0.9339 GB, free: 1.023 MB / 0.7169 GB Notification: Performance of Templates: time 0.002184/0.8486, allocations: 0.8192 MB / 0.9347 GB, free: 220 kB / 0.7169 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)