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.001212/0.001212, allocations: 108.8 kB / 16.41 MB, free: 6.508 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.00127/0.00127, allocations: 184 kB / 17.34 MB, free: 5.738 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.419/1.419, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002534/0.002534, allocations: 299.8 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.029/1.029, allocations: 169.3 MB / 0.499 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.004466/0.004466, allocations: 88.09 kB / 0.6821 GB, free: 6.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.455/0.4595, allocations: 86.98 MB / 0.767 GB, free: 3.914 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.00226/0.4618, allocations: 1.279 MB / 0.7683 GB, free: 2.629 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.173/0.6348, allocations: 147.4 MB / 0.9122 GB, free: 14.64 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.292e-05/0.6348, allocations: 4 kB / 0.9122 GB, free: 14.63 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 2.453e-05/0.6348, allocations: 3.938 kB / 0.9122 GB, free: 14.63 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 5.522e-05/0.6349, allocations: 0 / 0.9122 GB, free: 14.63 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004169/0.6353, allocations: 95.55 kB / 0.9123 GB, free: 14.54 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 8.602e-05/0.6354, allocations: 35.84 kB / 0.9124 GB, free: 14.5 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 3.185e-05/0.6354, allocations: 0 / 0.9124 GB, free: 14.5 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 4.103e-05/0.6355, allocations: 15.94 kB / 0.9124 GB, free: 14.48 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 5.776e-05/0.6355, allocations: 19.97 kB / 0.9124 GB, free: 14.46 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 1.148e-05/0.6355, allocations: 0 / 0.9124 GB, free: 14.46 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002492/0.6358, allocations: 83.83 kB / 0.9125 GB, free: 14.38 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 1.729e-05/0.6358, allocations: 11.92 kB / 0.9125 GB, free: 14.37 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 2.904e-05/0.6358, allocations: 15.92 kB / 0.9125 GB, free: 14.36 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.0001573/0.636, allocations: 63.2 kB / 0.9126 GB, free: 14.3 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.636, allocations: 0 / 0.9126 GB, free: 14.3 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.212e-06/0.636, allocations: 0 / 0.9126 GB, free: 14.3 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 4.759e-06/0.636, allocations: 0 / 0.9126 GB, free: 14.3 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.0004311/0.6364, allocations: 357.6 kB / 0.9129 GB, free: 13.91 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 3.06e-05/0.6364, allocations: 15.97 kB / 0.9129 GB, free: 13.89 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001844/0.6366, allocations: 8.938 kB / 0.9129 GB, free: 13.88 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000153/0.6368, allocations: 168.4 kB / 0.9131 GB, free: 13.68 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.394e-05/0.6368, allocations: 7.938 kB / 0.9131 GB, free: 13.67 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.507e-05/0.6368, allocations: 7.938 kB / 0.9131 GB, free: 13.66 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001269/0.6369, allocations: 49.69 kB / 0.9132 GB, free: 13.61 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.637, allocations: 3.984 kB / 0.9132 GB, free: 13.61 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.024e-05/0.637, allocations: 0 / 0.9132 GB, free: 13.61 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.246e-06/0.637, allocations: 0 / 0.9132 GB, free: 13.61 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.262e-05/0.637, allocations: 23.97 kB / 0.9132 GB, free: 13.58 MB / 0.6856 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000205/0.6372, allocations: 177.4 kB / 0.9134 GB, free: 13.36 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 9.057e-05/0.6373, allocations: 46.56 kB / 0.9134 GB, free: 13.3 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.06e-05/0.6374, allocations: 16.86 kB / 0.9134 GB, free: 13.29 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 1.129e-05/0.6374, allocations: 0 / 0.9134 GB, free: 13.29 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.386e-05/0.6374, allocations: 34.55 kB / 0.9135 GB, free: 13.24 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=7): time 8.72e-07/0.6374, allocations: 0 / 0.9135 GB, free: 13.24 MB / 0.6856 GB Notification: Performance of matching and sorting (n=11): time 0.000765/0.6382, allocations: 374.4 kB / 0.9138 GB, free: 12.82 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.719e-05/0.6382, allocations: 55.41 kB / 0.9139 GB, free: 12.76 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.85e-05/0.6383, allocations: 89.86 kB / 0.9139 GB, free: 12.66 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 2.247e-05/0.6383, allocations: 29.7 kB / 0.914 GB, free: 12.62 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 3.768e-05/0.6383, allocations: 80.14 kB / 0.9141 GB, free: 12.54 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 4.51e-05/0.6384, allocations: 51.75 kB / 0.9141 GB, free: 12.49 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.582e-05/0.6384, allocations: 25.7 kB / 0.9141 GB, free: 12.46 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.000156/0.6386, allocations: 318.8 kB / 0.9144 GB, free: 12.14 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.816e-05/0.6386, allocations: 19.98 kB / 0.9144 GB, free: 12.12 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.175e-05/0.6387, allocations: 33.7 kB / 0.9145 GB, free: 12.08 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.091e-05/0.6388, allocations: 58.25 kB / 0.9145 GB, free: 12.02 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.41e-07/0.6388, allocations: 3.938 kB / 0.9145 GB, free: 12.02 MB / 0.6856 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001521/0.6389, allocations: 105.6 kB / 0.9146 GB, free: 11.91 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.22e-05/0.6389, allocations: 4 kB / 0.9146 GB, free: 11.9 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.6389, allocations: 4 kB / 0.9146 GB, free: 11.9 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.037e-05/0.6389, allocations: 0 / 0.9146 GB, free: 11.9 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001143/0.6391, allocations: 23.92 kB / 0.9147 GB, free: 11.88 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.825e-06/0.6391, allocations: 4 kB / 0.9147 GB, free: 11.87 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.252e-05/0.6391, allocations: 0 / 0.9147 GB, free: 11.87 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.147e-06/0.6391, allocations: 8 kB / 0.9147 GB, free: 11.86 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 8.997e-05/0.6392, allocations: 116.2 kB / 0.9148 GB, free: 11.74 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.513e-05/0.6392, allocations: 11.95 kB / 0.9148 GB, free: 11.73 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.289e-05/0.6392, allocations: 7.969 kB / 0.9148 GB, free: 11.72 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.6393, allocations: 4 kB / 0.9148 GB, free: 11.72 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.025e-06/0.6393, allocations: 0 / 0.9148 GB, free: 11.72 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.6393, allocations: 0 / 0.9148 GB, free: 11.72 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001578/0.6394, allocations: 177.5 kB / 0.915 GB, free: 11.5 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.6394, allocations: 4 kB / 0.915 GB, free: 11.49 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001316/0.6395, allocations: 27.92 kB / 0.915 GB, free: 11.46 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.6396, allocations: 3.984 kB / 0.915 GB, free: 11.46 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.578e-06/0.6396, allocations: 7.938 kB / 0.915 GB, free: 11.45 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.6396, allocations: 0 / 0.915 GB, free: 11.45 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.6396, allocations: 4 kB / 0.915 GB, free: 11.45 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002063/0.6398, allocations: 129.1 kB / 0.9152 GB, free: 11.3 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 8.49e-05/0.6399, allocations: 85.09 kB / 0.9152 GB, free: 11.2 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.605e-05/0.6399, allocations: 4 kB / 0.9152 GB, free: 11.2 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.694e-05/0.64, allocations: 8 kB / 0.9152 GB, free: 11.19 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.879e-05/0.64, allocations: 7.984 kB / 0.9153 GB, free: 11.18 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.256e-06/0.64, allocations: 7.938 kB / 0.9153 GB, free: 11.18 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 3.728e-05/0.64, allocations: 79.28 kB / 0.9153 GB, free: 11.1 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.01e-07/0.64, allocations: 3.938 kB / 0.9153 GB, free: 11.09 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.0002019/0.6402, allocations: 19.94 kB / 0.9154 GB, free: 11.07 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 0.0001203/0.6403, allocations: 107.2 kB / 0.9155 GB, free: 10.96 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.0001303/0.6405, allocations: 47.92 kB / 0.9155 GB, free: 10.91 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.6405, allocations: 0 / 0.9155 GB, free: 10.91 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 4.083e-05/0.6405, allocations: 23.98 kB / 0.9155 GB, free: 10.89 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002263/0.6407, allocations: 15.53 kB / 0.9155 GB, free: 10.88 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005883/0.6413, allocations: 325 kB / 0.9159 GB, free: 10.53 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003117/0.6416, allocations: 0.6846 MB / 0.9165 GB, free: 9.82 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 5.441e-05/0.6417, allocations: 12.66 kB / 0.9165 GB, free: 9.809 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.846e-05/0.6417, allocations: 11.44 kB / 0.9165 GB, free: 9.797 MB / 0.6856 GB Notification: Performance of SimCode: time 4.31e-07/0.6417, allocations: 0 / 0.9165 GB, free: 9.797 MB / 0.6856 GB Notification: Performance of Templates: time 0.003174/0.6449, allocations: 0.6503 MB / 0.9172 GB, free: 9.156 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1)