Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+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 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(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001067/0.001067, allocations: 86.25 kB / 15.06 MB, free: 1.09 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.001179/0.001179, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.583/1.583, allocations: 205.4 MB / 222.1 MB, free: 5.645 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.3281/0.3281, allocations: 40 MB / 310.4 MB, free: 9.941 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaTest requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005754/0.0005755, allocations: 12 kB / 378.9 MB, free: 12.61 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1156, allocations: 57.96 MB / 436.8 MB, free: 2.559 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.3808/0.4965, allocations: 167 MB / 0.5897 GB, free: 13.02 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.008067/0.5046, allocations: 6.618 MB / 0.5961 GB, free: 6.391 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001028/0.5057, allocations: 19.81 kB / 0.5962 GB, free: 6.371 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001001/0.5067, allocations: 310 kB / 0.5965 GB, free: 6.066 MB / 462.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:788:36-789:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:786:36-787:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.004354/0.5111, allocations: 1.621 MB / 0.598 GB, free: 4.441 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003993/0.5151, allocations: 1.253 MB / 0.5993 GB, free: 3.203 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.003257/0.5184, allocations: 2.652 MB / 0.6018 GB, free: 0.5469 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001129/0.5195, allocations: 0.6282 MB / 0.6025 GB, free: 15.92 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004498/0.524, allocations: 1.73 MB / 0.6042 GB, free: 14.2 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003747/0.5278, allocations: 1.695 MB / 0.6058 GB, free: 12.5 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004792/0.5283, allocations: 56 kB / 0.6059 GB, free: 12.44 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004299/0.5326, allocations: 1.459 MB / 0.6073 GB, free: 10.98 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0011/0.5337, allocations: 0.6742 MB / 0.6079 GB, free: 10.3 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008406/0.5346, allocations: 289.1 kB / 0.6082 GB, free: 10.02 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003516/0.5381, allocations: 2.046 MB / 0.6102 GB, free: 7.965 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.324e-06/0.5381, allocations: 0 / 0.6102 GB, free: 7.965 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.865e-06/0.5381, allocations: 0 / 0.6102 GB, free: 7.965 MB / 478.1 MB Notification: Performance of Transformations before backend: time 9.696e-05/0.5383, allocations: 4 kB / 0.6102 GB, free: 7.961 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 276 * Number of variables: 276 Notification: Performance of Generate backend data structure: time 0.004096/0.5424, allocations: 1.42 MB / 0.6116 GB, free: 6.492 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.528e-05/0.5424, allocations: 12.03 kB / 0.6116 GB, free: 6.48 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001688/0.5441, allocations: 314.2 kB / 0.6119 GB, free: 6.172 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001533/0.5457, allocations: 0.7302 MB / 0.6126 GB, free: 5.402 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000161/0.5458, allocations: 133.4 kB / 0.6128 GB, free: 5.258 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000312/0.5462, allocations: 107.9 kB / 0.6129 GB, free: 5.152 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003302/0.5495, allocations: 1.834 MB / 0.6147 GB, free: 3.25 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.721e-05/0.5495, allocations: 10.91 kB / 0.6147 GB, free: 3.242 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001721/0.5497, allocations: 47.98 kB / 0.6147 GB, free: 3.195 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001182/0.5498, allocations: 97.89 kB / 0.6148 GB, free: 3.102 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002777/0.5526, allocations: 1.702 MB / 0.6165 GB, free: 1.398 MB / 478.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01053/0.5632, allocations: 6.933 MB / 0.6232 GB, free: 9.988 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001301/0.5645, allocations: 0.8492 MB / 0.6241 GB, free: 9.133 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006263/0.5652, allocations: 438.3 kB / 0.6245 GB, free: 8.703 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002112/0.5654, allocations: 143.6 kB / 0.6246 GB, free: 8.543 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.469e-05/0.5654, allocations: 47.11 kB / 0.6247 GB, free: 8.488 MB / 494.1 MB Notification: Performance of pre-optimization done (n=60): time 2.485e-06/0.5655, allocations: 0 / 0.6247 GB, free: 8.488 MB / 494.1 MB Notification: Performance of matching and sorting (n=72): time 0.009928/0.5754, allocations: 4.135 MB / 0.6287 GB, free: 4.273 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.509e-05/0.5755, allocations: 111.5 kB / 0.6288 GB, free: 4.141 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001467/0.577, allocations: 1.089 MB / 0.6299 GB, free: 3.027 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001151/0.5771, allocations: 45.7 kB / 0.6299 GB, free: 2.977 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004127/0.5775, allocations: 0.5223 MB / 0.6304 GB, free: 2.445 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002209/0.5777, allocations: 268.2 kB / 0.6307 GB, free: 2.18 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.471e-05/0.5778, allocations: 23.94 kB / 0.6307 GB, free: 2.156 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.578, allocations: 349.9 kB / 0.631 GB, free: 1.809 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009021/0.5789, allocations: 0.5719 MB / 0.6316 GB, free: 1.234 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001095/0.58, allocations: 0.8564 MB / 0.6324 GB, free: 264 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.3301/0.9101, allocations: 0.6815 MB / 0.6331 GB, free: 31.94 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.724e-06/0.9101, allocations: 2.219 kB / 0.6331 GB, free: 31.94 MB / 494.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.00292/0.9131, allocations: 1.98 MB / 0.635 GB, free: 31.9 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.312e-05/0.9131, allocations: 11.02 kB / 0.635 GB, free: 31.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.134e-05/0.9132, allocations: 9.875 kB / 0.6351 GB, free: 31.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004353/0.9175, allocations: 1.379 MB / 0.6364 GB, free: 31.89 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006244/0.9182, allocations: 139.2 kB / 0.6365 GB, free: 31.89 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002621/0.9208, allocations: 1.923 MB / 0.6384 GB, free: 31.36 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001342/0.9222, allocations: 113.8 kB / 0.6385 GB, free: 31.36 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001282/0.9223, allocations: 66.38 kB / 0.6386 GB, free: 31.36 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 81 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {9 35} Notification: Performance of prepare postOptimizeDAE: time 0.000713/0.923, allocations: 395.5 kB / 0.639 GB, free: 31.25 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000192/0.9232, allocations: 108.4 kB / 0.6391 GB, free: 31.25 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002291/0.9255, allocations: 1.385 MB / 0.6404 GB, free: 31.19 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.206e-05/0.9255, allocations: 9.938 kB / 0.6404 GB, free: 31.19 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.788e-06/0.9256, allocations: 2.156 kB / 0.6404 GB, free: 31.19 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.438e-06/0.9256, allocations: 6.125 kB / 0.6404 GB, free: 31.19 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003684/0.9293, allocations: 2.669 MB / 0.643 GB, free: 30.86 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.9293, allocations: 3.875 kB / 0.643 GB, free: 30.86 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001577/0.9309, allocations: 323.2 kB / 0.6434 GB, free: 30.86 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000166/0.9311, allocations: 70.39 kB / 0.6434 GB, free: 30.85 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.499e-05/0.9312, allocations: 35.48 kB / 0.6435 GB, free: 30.85 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001744/0.9329, allocations: 2.838 MB / 0.6462 GB, free: 28.29 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.9329, allocations: 6.469 kB / 0.6462 GB, free: 28.29 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002704/0.9356, allocations: 1.871 MB / 0.6481 GB, free: 28.09 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007178/0.9364, allocations: 344.7 kB / 0.6484 GB, free: 27.94 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001769/0.9366, allocations: 30.52 kB / 0.6484 GB, free: 27.94 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008777/0.9374, allocations: 90.48 kB / 0.6485 GB, free: 27.93 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000161/0.9376, allocations: 63.92 kB / 0.6486 GB, free: 27.92 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001098/0.9377, allocations: 62.39 kB / 0.6486 GB, free: 27.92 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001121/0.9389, allocations: 0.7859 MB / 0.6494 GB, free: 27.81 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.9389, allocations: 0 / 0.6494 GB, free: 27.81 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001882/0.9408, allocations: 0.5224 MB / 0.6499 GB, free: 27.81 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 8 (volume.medium.p,volume.medium.Xi[1],volume.medium.Xi[2],volume.medium.Xi[3],volume.medium.Xi[4],volume.medium.Xi[5],volume.medium.Xi[6],volume.medium.T) * 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 (78): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002088/0.9429, allocations: 0.6878 MB / 0.6506 GB, free: 27.66 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002673/0.9455, allocations: 1.443 MB / 0.652 GB, free: 27.63 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.042e-05/0.9456, allocations: 4.031 kB / 0.652 GB, free: 27.63 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001504/0.9471, allocations: 0.8538 MB / 0.6528 GB, free: 27.52 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003592/0.9507, allocations: 0.7328 MB / 0.6535 GB, free: 27.45 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007315/0.958, allocations: 3.348 MB / 0.6568 GB, free: 26.04 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008299/0.9589, allocations: 1.178 MB / 0.658 GB, free: 25.33 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002035/0.9609, allocations: 412 kB / 0.6583 GB, free: 25.24 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004867/0.9614, allocations: 109 kB / 0.6585 GB, free: 25.23 MB / 494.1 MB Notification: Performance of SimCode: time 8.62e-07/0.9614, allocations: 0 / 0.6585 GB, free: 25.23 MB / 494.1 MB Notification: Performance of Templates: time 0.06635/1.028, allocations: 36.85 MB / 0.6944 GB, free: 5.605 MB / 494.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.makefile Environment - environmentSimulation: (rm -f ModelicaTest_3.2.2_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.sim & ./ModelicaTest_3.2.2_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) Environment - environmentSimulation: