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.001343/0.001343, allocations: 110.3 kB / 16.41 MB, free: 6.477 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.001325/0.001325, allocations: 183 kB / 17.34 MB, free: 5.754 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.259/1.259, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002076/0.002076, allocations: 301.1 kB / 291.5 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8907/0.8907, allocations: 169.3 MB / 0.499 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001702/0.001702, allocations: 95.86 kB / 0.6821 GB, free: 7.027 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3936/0.3953, allocations: 86.98 MB / 0.767 GB, free: 3.977 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.001902/0.3973, allocations: 1.269 MB / 0.7683 GB, free: 2.699 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.1367/0.534, allocations: 147 MB / 0.9118 GB, free: 15.12 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.551e-05/0.5341, allocations: 0 / 0.9118 GB, free: 15.12 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 2.1e-05/0.5341, allocations: 7.984 kB / 0.9118 GB, free: 15.11 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 4.695e-05/0.5342, allocations: 3.938 kB / 0.9118 GB, free: 15.11 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004317/0.5346, allocations: 91.56 kB / 0.9119 GB, free: 15.02 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 7.865e-05/0.5347, allocations: 31.91 kB / 0.912 GB, free: 14.99 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 3.655e-05/0.5348, allocations: 7.984 kB / 0.912 GB, free: 14.98 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 4.904e-05/0.5348, allocations: 19.88 kB / 0.912 GB, free: 14.96 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 5.792e-05/0.5349, allocations: 11.97 kB / 0.912 GB, free: 14.95 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 1.269e-05/0.5349, allocations: 4 kB / 0.912 GB, free: 14.95 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002519/0.5352, allocations: 71.84 kB / 0.9121 GB, free: 14.88 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 1.537e-05/0.5352, allocations: 15.91 kB / 0.9121 GB, free: 14.86 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 2.925e-05/0.5352, allocations: 15.94 kB / 0.9121 GB, free: 14.84 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.0001549/0.5354, allocations: 67.53 kB / 0.9122 GB, free: 14.78 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.5354, allocations: 0 / 0.9122 GB, free: 14.78 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.603e-06/0.5354, allocations: 4 kB / 0.9122 GB, free: 14.78 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 5.441e-06/0.5354, allocations: 0 / 0.9122 GB, free: 14.78 MB / 0.6856 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.0003734/0.5358, allocations: 346.1 kB / 0.9125 GB, free: 14.39 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/0.5358, allocations: 8.031 kB / 0.9125 GB, free: 14.39 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001999/0.536, allocations: 16.83 kB / 0.9125 GB, free: 14.37 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001003/0.5362, allocations: 164.3 kB / 0.9127 GB, free: 14.17 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.567e-05/0.5362, allocations: 11.94 kB / 0.9127 GB, free: 14.16 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.07e-05/0.5362, allocations: 4 kB / 0.9127 GB, free: 14.16 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001209/0.5363, allocations: 57.61 kB / 0.9127 GB, free: 14.09 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.115e-06/0.5363, allocations: 0 / 0.9127 GB, free: 14.09 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.469e-05/0.5364, allocations: 4 kB / 0.9127 GB, free: 14.09 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.5364, allocations: 0 / 0.9127 GB, free: 14.09 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.849e-05/0.5364, allocations: 11.98 kB / 0.9128 GB, free: 14.08 MB / 0.6856 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001715/0.5366, allocations: 177.5 kB / 0.9129 GB, free: 13.86 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001023/0.5367, allocations: 46.56 kB / 0.913 GB, free: 13.8 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.005e-05/0.5368, allocations: 24.8 kB / 0.913 GB, free: 13.77 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 1.152e-05/0.5368, allocations: 0 / 0.913 GB, free: 13.77 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.423e-05/0.5368, allocations: 30.56 kB / 0.913 GB, free: 13.73 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=7): time 9.02e-07/0.5368, allocations: 4 kB / 0.913 GB, free: 13.73 MB / 0.6856 GB Notification: Performance of matching and sorting (n=11): time 0.0006947/0.5375, allocations: 378.2 kB / 0.9134 GB, free: 13.31 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.515e-05/0.5376, allocations: 51.41 kB / 0.9134 GB, free: 13.25 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.087e-05/0.5376, allocations: 97.86 kB / 0.9135 GB, free: 13.14 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 1.792e-05/0.5377, allocations: 29.7 kB / 0.9136 GB, free: 13.11 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 2.673e-05/0.5377, allocations: 80.14 kB / 0.9136 GB, free: 13.02 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 4.105e-05/0.5377, allocations: 39.45 kB / 0.9137 GB, free: 12.98 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.169e-05/0.5378, allocations: 25.72 kB / 0.9137 GB, free: 12.95 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 9.348e-05/0.5379, allocations: 318.8 kB / 0.914 GB, free: 12.63 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.878e-05/0.5379, allocations: 23.98 kB / 0.914 GB, free: 12.61 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.607e-05/0.538, allocations: 41.77 kB / 0.9141 GB, free: 12.56 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.037e-05/0.5381, allocations: 58.25 kB / 0.9141 GB, free: 12.5 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.5381, allocations: 4 kB / 0.9141 GB, free: 12.5 MB / 0.6856 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000127/0.5382, allocations: 97.52 kB / 0.9142 GB, free: 12.39 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.812e-05/0.5382, allocations: 8 kB / 0.9142 GB, free: 12.39 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.5382, allocations: 0 / 0.9142 GB, free: 12.39 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.444e-05/0.5383, allocations: 3.984 kB / 0.9142 GB, free: 12.38 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001102/0.5384, allocations: 20 kB / 0.9142 GB, free: 12.36 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.051e-06/0.5384, allocations: 0 / 0.9142 GB, free: 12.36 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.398e-05/0.5384, allocations: 8 kB / 0.9143 GB, free: 12.36 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.113e-06/0.5384, allocations: 4 kB / 0.9143 GB, free: 12.35 MB / 0.6856 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 7.775e-05/0.5385, allocations: 124.1 kB / 0.9144 GB, free: 12.22 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.539e-05/0.5385, allocations: 3.984 kB / 0.9144 GB, free: 12.22 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.62e-05/0.5386, allocations: 15.97 kB / 0.9144 GB, free: 12.2 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.5386, allocations: 0 / 0.9144 GB, free: 12.2 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.5386, allocations: 0 / 0.9144 GB, free: 12.2 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.5386, allocations: 0 / 0.9144 GB, free: 12.2 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001126/0.5387, allocations: 181.5 kB / 0.9146 GB, free: 11.98 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-06/0.5387, allocations: 4 kB / 0.9146 GB, free: 11.97 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001145/0.5389, allocations: 16 kB / 0.9146 GB, free: 11.96 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.958e-06/0.5389, allocations: 4 kB / 0.9146 GB, free: 11.95 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.508e-06/0.5389, allocations: 3.984 kB / 0.9146 GB, free: 11.95 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.5389, allocations: 0 / 0.9146 GB, free: 11.95 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.5389, allocations: 0 / 0.9146 GB, free: 11.95 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001888/0.5391, allocations: 142.9 kB / 0.9147 GB, free: 11.79 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 6.906e-05/0.5392, allocations: 89.05 kB / 0.9148 GB, free: 11.69 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.514e-05/0.5392, allocations: 8 kB / 0.9148 GB, free: 11.68 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.065e-05/0.5393, allocations: 3.938 kB / 0.9148 GB, free: 11.68 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.727e-05/0.5393, allocations: 11.92 kB / 0.9148 GB, free: 11.66 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.384e-06/0.5393, allocations: 4 kB / 0.9148 GB, free: 11.66 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 2.874e-05/0.5393, allocations: 79.28 kB / 0.9149 GB, free: 11.58 MB / 0.6856 GB Notification: Performance of sort global known variables: time 2e-07/0.5393, allocations: 0 / 0.9149 GB, free: 11.58 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.0001981/0.5395, allocations: 15.94 kB / 0.9149 GB, free: 11.57 MB / 0.6856 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 9.849e-05/0.5397, allocations: 107.3 kB / 0.915 GB, free: 11.45 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.0001234/0.5398, allocations: 55.92 kB / 0.9151 GB, free: 11.39 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.5398, allocations: 3.984 kB / 0.9151 GB, free: 11.39 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 3.693e-05/0.5398, allocations: 27.94 kB / 0.9151 GB, free: 11.36 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002255/0.5401, allocations: 8 kB / 0.9151 GB, free: 11.36 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005479/0.5406, allocations: 342.7 kB / 0.9155 GB, free: 10.99 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002353/0.5409, allocations: 0.6885 MB / 0.9161 GB, free: 10.27 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.074e-05/0.5409, allocations: 11.44 kB / 0.9161 GB, free: 10.27 MB / 0.6856 GB Notification: Performance of SimCode: time 2.4e-07/0.5409, allocations: 4 kB / 0.9161 GB, free: 10.26 MB / 0.6856 GB Notification: Performance of Templates: time 0.001978/0.5429, allocations: 0.8349 MB / 0.917 GB, free: 9.43 MB / 0.6856 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)