Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00128/0.001281, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00141/0.00141, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.443/1.443, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2362/0.2362, allocations: 46.12 MB / 344.2 MB, free: 11.57 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00229/0.00229, allocations: 86.56 kB / 417.8 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1247, allocations: 62.44 MB / 480.2 MB, free: 5.129 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.4605/0.5853, allocations: 180.1 MB / 0.6448 GB, free: 15.14 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01037/0.5957, allocations: 6.501 MB / 0.6511 GB, free: 8.613 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009901/0.5967, allocations: 19.88 kB / 0.6512 GB, free: 8.594 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001463/0.5983, allocations: 437.5 kB / 0.6516 GB, free: 8.164 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004969/0.6032, allocations: 1.753 MB / 0.6533 GB, free: 6.406 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003937/0.6072, allocations: 1.517 MB / 0.6548 GB, free: 4.895 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.003134/0.6103, allocations: 2.231 MB / 0.6569 GB, free: 2.66 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00136/0.6117, allocations: 0.7624 MB / 0.6577 GB, free: 1.895 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003804/0.6155, allocations: 1.791 MB / 0.6594 GB, free: 100 kB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003251/0.6188, allocations: 1.609 MB / 0.661 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0003301/0.6192, allocations: 100 kB / 0.6611 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003459/0.6226, allocations: 1.427 MB / 0.6625 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0008779/0.6235, allocations: 0.6898 MB / 0.6632 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.001126/0.6247, allocations: 0.7548 MB / 0.6639 GB, free: 11.51 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.004411/0.6291, allocations: 2.646 MB / 0.6665 GB, free: 8.855 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.6291, allocations: 0 / 0.6665 GB, free: 8.855 MB / 0.4981 GB Notification: Performance of FrontEnd: time 6.392e-06/0.6291, allocations: 0 / 0.6665 GB, free: 8.855 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.441e-05/0.6292, allocations: 7.875 kB / 0.6665 GB, free: 8.848 MB / 0.4981 GB 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.004129/0.6333, allocations: 1.714 MB / 0.6682 GB, free: 7.086 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.2e-05/0.6334, allocations: 12.03 kB / 0.6682 GB, free: 7.074 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000272/0.6336, allocations: 176.8 kB / 0.6684 GB, free: 6.891 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001603/0.6353, allocations: 311.1 kB / 0.6687 GB, free: 6.586 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001453/0.6367, allocations: 0.7493 MB / 0.6694 GB, free: 5.793 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001639/0.6369, allocations: 133.4 kB / 0.6695 GB, free: 5.648 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001998/0.6371, allocations: 112 kB / 0.6696 GB, free: 5.539 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003335/0.6405, allocations: 1.841 MB / 0.6714 GB, free: 3.629 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.615e-05/0.6405, allocations: 11.91 kB / 0.6714 GB, free: 3.617 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001572/0.6407, allocations: 40 kB / 0.6715 GB, free: 3.578 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001148/0.6408, allocations: 93.95 kB / 0.6716 GB, free: 3.488 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002913/0.6437, allocations: 1.694 MB / 0.6732 GB, free: 1.789 MB / 0.4981 GB 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.01272/0.6564, allocations: 6.983 MB / 0.68 GB, free: 10.34 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00158/0.658, allocations: 0.8846 MB / 0.6809 GB, free: 9.445 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007188/0.6588, allocations: 458.2 kB / 0.6813 GB, free: 8.996 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001507/0.6589, allocations: 101.7 kB / 0.6814 GB, free: 8.879 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.485e-05/0.659, allocations: 55 kB / 0.6815 GB, free: 8.816 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=60): time 3.026e-06/0.659, allocations: 0 / 0.6815 GB, free: 8.816 MB / 0.5137 GB Notification: Performance of matching and sorting (n=72): time 0.01249/0.6715, allocations: 4.233 MB / 0.6856 GB, free: 4.52 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001276/0.6717, allocations: 111.5 kB / 0.6857 GB, free: 4.387 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001868/0.6736, allocations: 1.116 MB / 0.6868 GB, free: 3.246 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0001552/0.6737, allocations: 45.7 kB / 0.6869 GB, free: 3.195 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005967/0.6743, allocations: 0.5184 MB / 0.6874 GB, free: 2.668 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002711/0.6746, allocations: 264.3 kB / 0.6876 GB, free: 2.406 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003794/0.675, allocations: 214.5 kB / 0.6878 GB, free: 2.191 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001789/0.6752, allocations: 341.9 kB / 0.6881 GB, free: 1.852 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009757/0.6762, allocations: 0.5875 MB / 0.6887 GB, free: 1.266 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001375/0.6776, allocations: 0.8721 MB / 0.6896 GB, free: 280 kB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002334/0.6799, allocations: 1.451 MB / 0.691 GB, free: 14.71 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.6799, allocations: 0 / 0.691 GB, free: 14.71 MB / 0.5294 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003558/0.6835, allocations: 2.004 MB / 0.6929 GB, free: 12.7 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.511e-05/0.6835, allocations: 8 kB / 0.693 GB, free: 12.69 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.078e-05/0.6835, allocations: 11.98 kB / 0.693 GB, free: 12.68 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005155/0.6887, allocations: 1.355 MB / 0.6943 GB, free: 11.32 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006739/0.6894, allocations: 143.8 kB / 0.6944 GB, free: 11.18 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003126/0.6925, allocations: 1.924 MB / 0.6963 GB, free: 9.23 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001023/0.6936, allocations: 44.06 kB / 0.6963 GB, free: 9.188 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001325/0.6937, allocations: 71.86 kB / 0.6964 GB, free: 9.117 MB / 0.5294 GB 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(9,35)} Notification: Performance of prepare postOptimizeDAE: time 0.0007588/0.6945, allocations: 393.6 kB / 0.6968 GB, free: 8.723 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002903/0.6948, allocations: 118.6 kB / 0.6969 GB, free: 8.605 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002981/0.6978, allocations: 1.506 MB / 0.6984 GB, free: 7.094 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.556e-06/0.6978, allocations: 8 kB / 0.6984 GB, free: 7.086 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.528e-06/0.6978, allocations: 4 kB / 0.6984 GB, free: 7.082 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.809e-06/0.6978, allocations: 3.984 kB / 0.6984 GB, free: 7.078 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004913/0.7028, allocations: 2.692 MB / 0.701 GB, free: 4.316 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.876e-05/0.7028, allocations: 4 kB / 0.701 GB, free: 4.312 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001971/0.7048, allocations: 323.5 kB / 0.7013 GB, free: 3.996 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002093/0.705, allocations: 72.72 kB / 0.7014 GB, free: 3.922 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.244e-05/0.7051, allocations: 35.98 kB / 0.7014 GB, free: 3.887 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00298/0.7081, allocations: 3.033 MB / 0.7044 GB, free: 0.5742 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.7081, allocations: 0 / 0.7044 GB, free: 0.5742 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2426/0.9507, allocations: 1.899 MB / 0.7062 GB, free: 197.7 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008608/0.9516, allocations: 324.8 kB / 0.7066 GB, free: 197.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002237/0.9518, allocations: 29.5 kB / 0.7066 GB, free: 197.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009879/0.9528, allocations: 52.45 kB / 0.7066 GB, free: 197.6 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000197/0.953, allocations: 62.52 kB / 0.7067 GB, free: 197.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001276/0.9532, allocations: 64.67 kB / 0.7068 GB, free: 197.6 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001095/0.9543, allocations: 0.7962 MB / 0.7075 GB, free: 197.5 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9543, allocations: 0 / 0.7075 GB, free: 197.5 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001494/0.9558, allocations: 488.7 kB / 0.708 GB, free: 197.5 MB / 0.5294 GB 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 (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005107/0.9609, allocations: 3.134 MB / 0.7111 GB, free: 196.2 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.003239/0.9642, allocations: 1.805 MB / 0.7128 GB, free: 195.7 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.166e-06/0.9642, allocations: 3.688 kB / 0.7128 GB, free: 195.7 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001626/0.9658, allocations: 0.8634 MB / 0.7137 GB, free: 195.4 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003571/0.9694, allocations: 0.7683 MB / 0.7144 GB, free: 195.2 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01809/0.9875, allocations: 13.68 MB / 0.7278 GB, free: 188.5 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006281/0.9882, allocations: 1.172 MB / 0.7289 GB, free: 187.8 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001711/0.9899, allocations: 485.5 kB / 0.7294 GB, free: 187.7 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005899/0.9905, allocations: 449.2 kB / 0.7298 GB, free: 187.4 MB / 0.5294 GB Notification: Performance of SimCode: time 9.42e-07/0.9905, allocations: 0 / 0.7298 GB, free: 187.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0788/1.069, allocations: 49.88 MB / 0.7785 GB, free: 139.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.44/14.51, allocations: 16.05 kB / 0.7785 GB, free: 139.8 MB / 0.5294 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1)