Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck") translateModel(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001518/0.001518, allocations: 109.3 kB / 15.7 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001807/0.001807, allocations: 196.8 kB / 16.63 MB, free: 6.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.327/1.327, allocations: 222.9 MB / 240.3 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001991/0.001991, allocations: 279 kB / 290.8 MB, free: 1.945 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9525/0.9525, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001656/0.001656, allocations: 87.86 kB / 0.6814 GB, free: 15.54 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1758/0.1775, allocations: 86.98 MB / 0.7663 GB, free: 8.477 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002215/0.1798, allocations: 1.276 MB / 0.7675 GB, free: 7.191 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.5802/0.7599, allocations: 147 MB / 0.9111 GB, free: 14.62 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.381e-05/0.7601, allocations: 0 / 0.9111 GB, free: 14.62 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 4.213e-05/0.7601, allocations: 5.031 kB / 0.9111 GB, free: 14.62 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 9.052e-05/0.7604, allocations: 7.938 kB / 0.9111 GB, free: 14.61 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007045/0.7611, allocations: 97.91 kB / 0.9112 GB, free: 14.52 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.0001488/0.7612, allocations: 31.91 kB / 0.9112 GB, free: 14.49 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 6.349e-05/0.7613, allocations: 4 kB / 0.9112 GB, free: 14.48 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 6.708e-05/0.7614, allocations: 15.94 kB / 0.9113 GB, free: 14.47 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 7.786e-05/0.7615, allocations: 7.984 kB / 0.9113 GB, free: 14.46 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 1.668e-05/0.7615, allocations: 4 kB / 0.9113 GB, free: 14.46 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003688/0.7619, allocations: 86.75 kB / 0.9113 GB, free: 14.38 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 2.153e-05/0.7619, allocations: 7.938 kB / 0.9114 GB, free: 14.37 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 3.913e-05/0.762, allocations: 15.97 kB / 0.9114 GB, free: 14.35 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.0002176/0.7622, allocations: 69.42 kB / 0.9114 GB, free: 14.29 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.7622, allocations: 0 / 0.9114 GB, free: 14.29 MB / 0.67 GB Notification: Performance of FrontEnd: time 2.445e-06/0.7622, allocations: 0 / 0.9114 GB, free: 14.29 MB / 0.67 GB Notification: Performance of Transformations before backend: time 8.666e-06/0.7622, allocations: 0 / 0.9114 GB, free: 14.29 MB / 0.67 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.000579/0.7628, allocations: 354.7 kB / 0.9118 GB, free: 13.9 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 5.602e-05/0.7629, allocations: 12.03 kB / 0.9118 GB, free: 13.89 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002922/0.7632, allocations: 16.92 kB / 0.9118 GB, free: 13.87 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001573/0.7633, allocations: 164.5 kB / 0.912 GB, free: 13.67 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.332e-05/0.7634, allocations: 7.938 kB / 0.912 GB, free: 13.66 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.838e-05/0.7634, allocations: 4 kB / 0.912 GB, free: 13.66 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001819/0.7636, allocations: 53.67 kB / 0.912 GB, free: 13.6 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/0.7636, allocations: 0 / 0.912 GB, free: 13.6 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.766e-05/0.7637, allocations: 0 / 0.912 GB, free: 13.6 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.131e-05/0.7637, allocations: 4 kB / 0.912 GB, free: 13.6 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.33e-05/0.7637, allocations: 15.92 kB / 0.912 GB, free: 13.58 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000229/0.764, allocations: 169.7 kB / 0.9122 GB, free: 13.37 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001223/0.7641, allocations: 51.75 kB / 0.9122 GB, free: 13.31 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.86e-05/0.7642, allocations: 20.84 kB / 0.9123 GB, free: 13.29 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 1.607e-05/0.7642, allocations: 0 / 0.9123 GB, free: 13.29 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.609e-05/0.7642, allocations: 34.5 kB / 0.9123 GB, free: 13.24 MB / 0.67 GB Notification: Performance of pre-optimization done (n=7): time 2.836e-06/0.7642, allocations: 0 / 0.9123 GB, free: 13.24 MB / 0.67 GB Notification: Performance of matching and sorting (n=11): time 0.0009033/0.7651, allocations: 380 kB / 0.9127 GB, free: 12.82 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.083e-05/0.7652, allocations: 55.41 kB / 0.9127 GB, free: 12.75 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.093e-05/0.7653, allocations: 97.84 kB / 0.9128 GB, free: 12.65 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 2.941e-05/0.7653, allocations: 25.7 kB / 0.9128 GB, free: 12.62 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 2.859e-05/0.7654, allocations: 84.14 kB / 0.9129 GB, free: 12.53 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 4.822e-05/0.7654, allocations: 39.45 kB / 0.913 GB, free: 12.49 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.919e-05/0.7655, allocations: 37.73 kB / 0.913 GB, free: 12.45 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001202/0.7656, allocations: 314.8 kB / 0.9133 GB, free: 12.13 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.548e-05/0.7656, allocations: 19.98 kB / 0.9133 GB, free: 12.11 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.539e-05/0.7657, allocations: 38.27 kB / 0.9133 GB, free: 12.07 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.261e-05/0.7658, allocations: 63.2 kB / 0.9134 GB, free: 12 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.7658, allocations: 0 / 0.9134 GB, free: 12 MB / 0.67 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001487/0.766, allocations: 89.67 kB / 0.9135 GB, free: 11.91 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/0.766, allocations: 8 kB / 0.9135 GB, free: 11.9 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.766, allocations: 9.812 kB / 0.9135 GB, free: 11.89 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/0.766, allocations: 0 / 0.9135 GB, free: 11.89 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001211/0.7661, allocations: 23.98 kB / 0.9135 GB, free: 11.87 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.7662, allocations: 0 / 0.9135 GB, free: 11.87 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.524e-05/0.7662, allocations: 4 kB / 0.9135 GB, free: 11.87 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.817e-06/0.7662, allocations: 4 kB / 0.9135 GB, free: 11.86 MB / 0.67 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.653e-05/0.7663, allocations: 118.4 kB / 0.9137 GB, free: 11.74 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.867e-05/0.7663, allocations: 3.906 kB / 0.9137 GB, free: 11.73 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.869e-05/0.7664, allocations: 19.91 kB / 0.9137 GB, free: 11.72 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.7664, allocations: 4 kB / 0.9137 GB, free: 11.71 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.7664, allocations: 0 / 0.9137 GB, free: 11.71 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.379e-06/0.7664, allocations: 0 / 0.9137 GB, free: 11.71 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001427/0.7665, allocations: 173.6 kB / 0.9138 GB, free: 11.5 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.7666, allocations: 0 / 0.9138 GB, free: 11.5 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001248/0.7667, allocations: 19.98 kB / 0.9139 GB, free: 11.48 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.7667, allocations: 0 / 0.9139 GB, free: 11.48 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.26e-05/0.7667, allocations: 5.812 kB / 0.9139 GB, free: 11.47 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.7667, allocations: 0.7031 kB / 0.9139 GB, free: 11.47 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.7667, allocations: 0 / 0.9139 GB, free: 11.47 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002119/0.7669, allocations: 141.8 kB / 0.914 GB, free: 11.32 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 7.969e-05/0.767, allocations: 85.05 kB / 0.9141 GB, free: 11.21 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.641e-05/0.7671, allocations: 8 kB / 0.9141 GB, free: 11.21 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.551e-05/0.7671, allocations: 4.078 kB / 0.9141 GB, free: 11.2 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.033e-05/0.7672, allocations: 7.984 kB / 0.9141 GB, free: 11.2 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.014e-05/0.7672, allocations: 4 kB / 0.9141 GB, free: 11.19 MB / 0.67 GB Notification: Performance of sorting global known variables: time 3.56e-05/0.7672, allocations: 83.28 kB / 0.9142 GB, free: 11.11 MB / 0.67 GB Notification: Performance of sort global known variables: time 2.31e-07/0.7672, allocations: 3.938 kB / 0.9142 GB, free: 11.11 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.0001956/0.7674, allocations: 12 kB / 0.9142 GB, free: 11.09 MB / 0.67 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.0001212/0.7676, allocations: 111.2 kB / 0.9143 GB, free: 10.97 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.0001433/0.7677, allocations: 63.84 kB / 0.9144 GB, free: 10.91 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.7677, allocations: 0 / 0.9144 GB, free: 10.91 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 3.928e-05/0.7678, allocations: 27.92 kB / 0.9144 GB, free: 10.88 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002196/0.768, allocations: 8 kB / 0.9144 GB, free: 10.88 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000578/0.7686, allocations: 318.6 kB / 0.9147 GB, free: 10.55 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002596/0.7689, allocations: 0.6884 MB / 0.9154 GB, free: 9.832 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 5.532e-05/0.7689, allocations: 12.66 kB / 0.9154 GB, free: 9.82 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.711e-05/0.769, allocations: 11.44 kB / 0.9154 GB, free: 9.809 MB / 0.67 GB Notification: Performance of SimCode: time 2.1e-07/0.769, allocations: 0 / 0.9154 GB, free: 9.809 MB / 0.67 GB Notification: Performance of Templates: time 0.002945/0.7719, allocations: 0.646 MB / 0.916 GB, free: 9.18 MB / 0.67 GB make -j1 -f BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.makefile (rm -f BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & ./BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1)