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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck") translateModel(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",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.665/1.665, allocations: 252 MB / 267.6 MB, free: 10.89 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.001087/0.001087, allocations: 185.5 kB / 327.3 MB, free: 2.164 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.704/1.704, allocations: 205.4 MB / 0.5783 GB, free: 20.2 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.0008111/0.0008112, allocations: 92.23 kB / 0.6829 GB, free: 12.85 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003372/0.0003372, allocations: 10.34 kB / 0.797 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2212/0.2216, allocations: 106.3 MB / 0.9008 GB, free: 63.87 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.001189/0.2228, allocations: 0.9894 MB / 0.9018 GB, free: 62.87 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.1394/0.3623, allocations: 133.5 MB / 1.032 GB, free: 9.012 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.001e-05/0.3624, allocations: 4 kB / 1.032 GB, free: 9.008 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 1.926e-05/0.3624, allocations: 0 / 1.032 GB, free: 9.008 MB / 0.6823 GB Notification: Performance of NFTyping.typeBindings: time 4.972e-05/0.3625, allocations: 7.922 kB / 1.032 GB, free: 9 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003328/0.3628, allocations: 79.7 kB / 1.032 GB, free: 8.922 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 6.747e-05/0.3629, allocations: 27.86 kB / 1.032 GB, free: 8.895 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 5.259e-05/0.3629, allocations: 4 kB / 1.032 GB, free: 8.891 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 4.081e-05/0.363, allocations: 23.91 kB / 1.032 GB, free: 8.867 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 5.668e-05/0.363, allocations: 15.92 kB / 1.032 GB, free: 8.852 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 1.395e-05/0.3631, allocations: 4 kB / 1.032 GB, free: 8.848 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002264/0.3633, allocations: 67.83 kB / 1.032 GB, free: 8.781 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 1.092e-05/0.3633, allocations: 3.984 kB / 1.032 GB, free: 8.777 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 3.758e-05/0.3634, allocations: 37.64 kB / 1.032 GB, free: 8.734 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.000125/0.3635, allocations: 39.95 kB / 1.032 GB, free: 8.695 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.3635, allocations: 4 kB / 1.032 GB, free: 8.691 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.322e-06/0.3635, allocations: 0 / 1.032 GB, free: 8.691 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 4.398e-06/0.3635, allocations: 0 / 1.032 GB, free: 8.691 MB / 0.6823 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.0003541/0.3639, allocations: 339.6 kB / 1.033 GB, free: 8.312 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.375e-05/0.3639, allocations: 12.03 kB / 1.033 GB, free: 8.301 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001713/0.3641, allocations: 15.94 kB / 1.033 GB, free: 8.285 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000107/0.3642, allocations: 167 kB / 1.033 GB, free: 8.082 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.438e-05/0.3642, allocations: 4 kB / 1.033 GB, free: 8.078 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.515e-05/0.3643, allocations: 7.906 kB / 1.033 GB, free: 8.07 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001169/0.3644, allocations: 53.67 kB / 1.033 GB, free: 8.012 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.3644, allocations: 0 / 1.033 GB, free: 8.012 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.07e-05/0.3644, allocations: 3.938 kB / 1.033 GB, free: 8.008 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.3644, allocations: 0 / 1.033 GB, free: 8.008 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.534e-05/0.3645, allocations: 19.98 kB / 1.033 GB, free: 7.988 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001583/0.3647, allocations: 169.5 kB / 1.033 GB, free: 7.773 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 7.966e-05/0.3647, allocations: 54.48 kB / 1.033 GB, free: 7.711 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.94e-05/0.3648, allocations: 20.84 kB / 1.033 GB, free: 7.688 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.067e-05/0.3648, allocations: 0 / 1.033 GB, free: 7.688 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.603e-05/0.3648, allocations: 38.5 kB / 1.033 GB, free: 7.641 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=7): time 8.32e-07/0.3648, allocations: 4 kB / 1.033 GB, free: 7.637 MB / 0.6823 GB Notification: Performance of matching and sorting (n=11): time 0.0006894/0.3655, allocations: 366.3 kB / 1.034 GB, free: 7.227 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.829e-05/0.3656, allocations: 59.36 kB / 1.034 GB, free: 7.156 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.75e-05/0.3656, allocations: 93.84 kB / 1.034 GB, free: 7.055 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.88e-05/0.3657, allocations: 25.7 kB / 1.034 GB, free: 7.023 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 3.447e-05/0.3657, allocations: 88.27 kB / 1.034 GB, free: 6.934 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 3.628e-05/0.3658, allocations: 39.45 kB / 1.034 GB, free: 6.895 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.778e-06/0.3658, allocations: 0 / 1.034 GB, free: 6.895 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001036/0.3659, allocations: 314.8 kB / 1.034 GB, free: 6.578 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.375e-05/0.3659, allocations: 19.98 kB / 1.034 GB, free: 6.559 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.777e-05/0.366, allocations: 35.83 kB / 1.034 GB, free: 6.52 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.203e-05/0.366, allocations: 20 kB / 1.034 GB, free: 6.5 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.366, allocations: 4 kB / 1.034 GB, free: 6.496 MB / 0.6823 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001334/0.3662, allocations: 90.16 kB / 1.034 GB, free: 6.402 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/0.3662, allocations: 14.66 kB / 1.034 GB, free: 6.391 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.3662, allocations: 3.938 kB / 1.034 GB, free: 6.387 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.171e-05/0.3662, allocations: 0 / 1.034 GB, free: 6.387 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001224/0.3663, allocations: 31.92 kB / 1.034 GB, free: 6.355 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.3664, allocations: 160 / 1.034 GB, free: 6.355 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.315e-05/0.3664, allocations: 3.953 kB / 1.034 GB, free: 6.352 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.217e-06/0.3664, allocations: 7.984 kB / 1.034 GB, free: 6.344 MB / 0.6823 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 8.15e-05/0.3665, allocations: 113.8 kB / 1.035 GB, free: 6.223 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.579e-05/0.3665, allocations: 11.91 kB / 1.035 GB, free: 6.211 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.256e-05/0.3666, allocations: 15.97 kB / 1.035 GB, free: 6.191 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.3666, allocations: 0 / 1.035 GB, free: 6.191 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.3666, allocations: 0 / 1.035 GB, free: 6.191 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.3666, allocations: 3.984 kB / 1.035 GB, free: 6.188 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001452/0.3667, allocations: 173.6 kB / 1.035 GB, free: 5.969 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.3667, allocations: 0 / 1.035 GB, free: 5.969 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001175/0.3669, allocations: 23.92 kB / 1.035 GB, free: 5.945 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.15e-06/0.3669, allocations: 4 kB / 1.035 GB, free: 5.941 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.939e-06/0.3669, allocations: 4 kB / 1.035 GB, free: 5.938 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.3669, allocations: 0 / 1.035 GB, free: 5.938 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.3669, allocations: 4 kB / 1.035 GB, free: 5.934 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001943/0.3671, allocations: 140.9 kB / 1.035 GB, free: 5.777 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 6.939e-05/0.3672, allocations: 77.11 kB / 1.035 GB, free: 5.684 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.427e-05/0.3672, allocations: 4 kB / 1.035 GB, free: 5.68 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.42e-05/0.3673, allocations: 7.969 kB / 1.035 GB, free: 5.672 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.184e-05/0.3673, allocations: 8 kB / 1.035 GB, free: 5.664 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.885e-06/0.3673, allocations: 4 kB / 1.035 GB, free: 5.66 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 3.492e-05/0.3674, allocations: 83.27 kB / 1.035 GB, free: 5.578 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.914e-06/0.3674, allocations: 0 / 1.035 GB, free: 5.578 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0001923/0.3676, allocations: 19.94 kB / 1.035 GB, free: 5.559 MB / 0.6823 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 9.968e-05/0.3677, allocations: 99.25 kB / 1.035 GB, free: 5.449 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0001166/0.3678, allocations: 51.92 kB / 1.035 GB, free: 5.398 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.3678, allocations: 0 / 1.035 GB, free: 5.398 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 3.943e-05/0.3679, allocations: 27.98 kB / 1.035 GB, free: 5.371 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002035/0.3681, allocations: 17.48 kB / 1.035 GB, free: 5.355 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005747/0.3686, allocations: 422.2 kB / 1.036 GB, free: 4.918 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002351/0.3689, allocations: 0.6848 MB / 1.036 GB, free: 4.207 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.265e-05/0.3689, allocations: 15.44 kB / 1.036 GB, free: 4.191 MB / 0.6823 GB Notification: Performance of SimCode: time 2.41e-07/0.3689, allocations: 0 / 1.036 GB, free: 4.191 MB / 0.6823 GB Notification: Performance of Templates: time 0.001977/0.3709, allocations: 0.8067 MB / 1.037 GB, free: 3.387 MB / 0.6823 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 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1)