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.00134/0.00134, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001556/0.001556, allocations: 192.8 kB / 16.13 MB, free: 6.664 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.313/1.313, allocations: 222.9 MB / 239.8 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001982/0.001982, allocations: 278.7 kB / 290.2 MB, free: 2.188 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9428/0.9428, allocations: 169.2 MB / 0.4977 GB, free: 14.13 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0018/0.0018, allocations: 84.45 kB / 0.5945 GB, free: 28.45 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1489/0.1507, allocations: 86.99 MB / 0.6794 GB, free: 1.152 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.00221/0.153, allocations: 1.335 MB / 0.6807 GB, free: 15.82 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.4823/0.6353, allocations: 144.7 MB / 0.822 GB, free: 1.246 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.342e-05/0.6354, allocations: 5.562 kB / 0.822 GB, free: 1.242 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.377e-05/0.6355, allocations: 6.719 kB / 0.822 GB, free: 1.238 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 5.482e-05/0.6355, allocations: 0 / 0.822 GB, free: 1.238 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003467/0.6359, allocations: 94.41 kB / 0.8221 GB, free: 1.215 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 6.137e-05/0.6359, allocations: 26.2 kB / 0.8222 GB, free: 1.211 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.079e-05/0.636, allocations: 5.125 kB / 0.8222 GB, free: 1.207 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.077e-05/0.636, allocations: 17.81 kB / 0.8222 GB, free: 1.207 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 6.384e-05/0.6361, allocations: 14.69 kB / 0.8222 GB, free: 1.203 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.216e-05/0.6361, allocations: 1.156 kB / 0.8222 GB, free: 1.203 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002515/0.6364, allocations: 82.19 kB / 0.8223 GB, free: 1.188 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.521e-05/0.6364, allocations: 4.5 kB / 0.8223 GB, free: 1.188 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.113e-05/0.6364, allocations: 20.62 kB / 0.8223 GB, free: 1.18 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001612/0.6366, allocations: 68.14 kB / 0.8224 GB, free: 1.172 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.6366, allocations: 0 / 0.8224 GB, free: 1.172 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.313e-06/0.6366, allocations: 3.938 kB / 0.8224 GB, free: 1.168 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.729e-06/0.6366, allocations: 0 / 0.8224 GB, free: 1.168 MB / 0.5606 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.0004307/0.6371, allocations: 353.8 kB / 0.8227 GB, free: 16.81 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.683e-05/0.6371, allocations: 13.06 kB / 0.8227 GB, free: 16.8 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001887/0.6373, allocations: 12.16 kB / 0.8227 GB, free: 16.8 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001002/0.6374, allocations: 165.9 kB / 0.8229 GB, free: 16.61 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.219e-05/0.6374, allocations: 5.781 kB / 0.8229 GB, free: 16.6 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.39e-05/0.6375, allocations: 10.47 kB / 0.8229 GB, free: 16.6 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001278/0.6376, allocations: 51.42 kB / 0.8229 GB, free: 16.57 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.384e-06/0.6376, allocations: 0 / 0.8229 GB, free: 16.57 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.124e-05/0.6376, allocations: 1.594 kB / 0.8229 GB, free: 16.57 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.6376, allocations: 0 / 0.8229 GB, free: 16.57 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.721e-05/0.6377, allocations: 26.77 kB / 0.823 GB, free: 16.56 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001427/0.6378, allocations: 162.3 kB / 0.8231 GB, free: 16.37 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 8.101e-05/0.6379, allocations: 52.44 kB / 0.8232 GB, free: 16.34 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.476e-05/0.638, allocations: 14.05 kB / 0.8232 GB, free: 16.34 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 1.169e-05/0.638, allocations: 1.125 kB / 0.8232 GB, free: 16.34 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.599e-05/0.638, allocations: 39.88 kB / 0.8232 GB, free: 16.29 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=7): time 9.52e-07/0.638, allocations: 4 kB / 0.8232 GB, free: 16.29 MB / 0.5762 GB Notification: Performance of matching and sorting (n=11): time 0.0006822/0.6387, allocations: 372 kB / 0.8236 GB, free: 16.03 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.208e-05/0.6388, allocations: 52.47 kB / 0.8236 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.351e-05/0.6388, allocations: 95.05 kB / 0.8237 GB, free: 15.87 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.567e-05/0.6388, allocations: 26.86 kB / 0.8238 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 2.518e-05/0.6389, allocations: 80.14 kB / 0.8238 GB, free: 15.75 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 3.25e-05/0.6389, allocations: 47.39 kB / 0.8239 GB, free: 15.73 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.882e-05/0.639, allocations: 27.12 kB / 0.8239 GB, free: 15.71 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 9.546e-05/0.6391, allocations: 319.6 kB / 0.8242 GB, free: 15.39 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.558e-05/0.6391, allocations: 16.53 kB / 0.8242 GB, free: 15.39 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.441e-05/0.6391, allocations: 36.61 kB / 0.8243 GB, free: 15.38 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.278e-05/0.6392, allocations: 64.95 kB / 0.8243 GB, free: 15.36 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.11e-07/0.6393, allocations: 0 / 0.8243 GB, free: 15.36 MB / 0.5762 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001536/0.6394, allocations: 98.83 kB / 0.8244 GB, free: 15.32 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/0.6394, allocations: 5.125 kB / 0.8244 GB, free: 15.32 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.6394, allocations: 1 kB / 0.8244 GB, free: 15.32 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.6395, allocations: 2.219 kB / 0.8244 GB, free: 15.32 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001252/0.6396, allocations: 24.59 kB / 0.8244 GB, free: 15.32 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.583e-06/0.6396, allocations: 5 kB / 0.8244 GB, free: 15.31 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.132e-05/0.6396, allocations: 1.031 kB / 0.8245 GB, free: 15.31 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.979e-06/0.6397, allocations: 6.438 kB / 0.8245 GB, free: 15.31 MB / 0.5762 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.113e-05/0.6397, allocations: 117.4 kB / 0.8246 GB, free: 15.2 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.877e-05/0.6398, allocations: 9.25 kB / 0.8246 GB, free: 15.19 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.507e-05/0.6398, allocations: 11.28 kB / 0.8246 GB, free: 15.19 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.6398, allocations: 7.406 kB / 0.8246 GB, free: 15.19 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.359e-06/0.6398, allocations: 0.5312 kB / 0.8246 GB, free: 15.19 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.6398, allocations: 0.5312 kB / 0.8246 GB, free: 15.19 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001128/0.64, allocations: 177.9 kB / 0.8248 GB, free: 14.99 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.64, allocations: 0 / 0.8248 GB, free: 14.99 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001286/0.6401, allocations: 23.72 kB / 0.8248 GB, free: 14.99 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.6401, allocations: 1.062 kB / 0.8248 GB, free: 14.99 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.217e-06/0.6401, allocations: 3.141 kB / 0.8248 GB, free: 14.99 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.6401, allocations: 5.062 kB / 0.8248 GB, free: 14.99 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.6401, allocations: 0.5 kB / 0.8248 GB, free: 14.99 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002146/0.6404, allocations: 135 kB / 0.8249 GB, free: 14.91 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 6.314e-05/0.6404, allocations: 84.95 kB / 0.825 GB, free: 14.82 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.599e-05/0.6404, allocations: 1.156 kB / 0.825 GB, free: 14.82 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.578e-05/0.6405, allocations: 10.34 kB / 0.825 GB, free: 14.82 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.456e-05/0.6406, allocations: 5.547 kB / 0.825 GB, free: 14.82 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.268e-06/0.6406, allocations: 2.781 kB / 0.825 GB, free: 14.82 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 3.076e-05/0.6406, allocations: 84.19 kB / 0.8251 GB, free: 14.74 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.71e-07/0.6406, allocations: 0 / 0.8251 GB, free: 14.74 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002054/0.6408, allocations: 15.84 kB / 0.8251 GB, free: 14.74 MB / 0.5762 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.0001132/0.641, allocations: 108 kB / 0.8252 GB, free: 14.64 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.000151/0.6411, allocations: 55 kB / 0.8253 GB, free: 14.64 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.6411, allocations: 0.5625 kB / 0.8253 GB, free: 14.64 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 5.347e-05/0.6412, allocations: 28 kB / 0.8253 GB, free: 14.64 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002201/0.6414, allocations: 16.25 kB / 0.8253 GB, free: 14.63 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005481/0.642, allocations: 339.9 kB / 0.8256 GB, free: 14.37 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002367/0.6422, allocations: 0.6847 MB / 0.8263 GB, free: 13.67 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 7.436e-05/0.6423, allocations: 11.05 kB / 0.8263 GB, free: 13.67 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.95e-05/0.6423, allocations: 12.34 kB / 0.8263 GB, free: 13.66 MB / 0.5762 GB Notification: Performance of SimCode: time 2.21e-07/0.6423, allocations: 0 / 0.8263 GB, free: 13.66 MB / 0.5762 GB Notification: Performance of Templates: time 0.002726/0.6451, allocations: 0.6198 MB / 0.8269 GB, free: 13.6 MB / 0.5762 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)