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.001717/0.001717, allocations: 117.6 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001974/0.001975, allocations: 199.9 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.453/1.453, allocations: 227.4 MB / 247 MB, free: 10.46 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.2415/0.2415, allocations: 46.12 MB / 344.3 MB, free: 11.48 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.002256/0.002256, allocations: 75.88 kB / 480.9 MB, free: 4.527 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3904/0.3926, allocations: 62.45 MB / 0.5306 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.2419/0.6346, allocations: 180 MB / 0.7064 GB, free: 13.04 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.009778/0.6444, allocations: 6.505 MB / 0.7128 GB, free: 6.508 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008184/0.6453, allocations: 19.88 kB / 0.7128 GB, free: 6.488 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001311/0.6466, allocations: 421.6 kB / 0.7132 GB, free: 6.074 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.00449/0.6512, allocations: 1.768 MB / 0.7149 GB, free: 4.305 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.003922/0.6551, allocations: 1.518 MB / 0.7164 GB, free: 2.793 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.00321/0.6583, allocations: 2.243 MB / 0.7186 GB, free: 0.543 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.3524/1.011, allocations: 0.7502 MB / 0.7194 GB, free: 3.859 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004543/1.015, allocations: 1.796 MB / 0.7211 GB, free: 3.859 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003394/1.019, allocations: 1.612 MB / 0.7227 GB, free: 3.852 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0003974/1.019, allocations: 100.9 kB / 0.7228 GB, free: 3.852 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003242/1.022, allocations: 1.337 MB / 0.7241 GB, free: 3.852 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0008804/1.023, allocations: 0.6843 MB / 0.7248 GB, free: 3.852 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.001265/1.025, allocations: 0.757 MB / 0.7255 GB, free: 3.852 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.004197/1.029, allocations: 2.631 MB / 0.7281 GB, free: 3.727 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/1.029, allocations: 0 / 0.7281 GB, free: 3.727 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.814e-06/1.029, allocations: 4.812 kB / 0.7281 GB, free: 3.727 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 3.248e-05/1.029, allocations: 2.562 kB / 0.7281 GB, free: 3.727 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: 276 * Number of variables: 276 Notification: Performance of Generate backend data structure: time 0.004251/1.033, allocations: 1.751 MB / 0.7298 GB, free: 18.91 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 5.467e-05/1.033, allocations: 10.25 kB / 0.7298 GB, free: 18.91 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002292/1.034, allocations: 177.2 kB / 0.73 GB, free: 18.87 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00157/1.035, allocations: 318.4 kB / 0.7303 GB, free: 18.8 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001313/1.036, allocations: 0.7748 MB / 0.731 GB, free: 18.51 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001285/1.037, allocations: 137.9 kB / 0.7311 GB, free: 18.45 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001623/1.037, allocations: 109.1 kB / 0.7313 GB, free: 18.44 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002682/1.039, allocations: 1.842 MB / 0.7331 GB, free: 18.24 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.463e-05/1.039, allocations: 5.594 kB / 0.7331 GB, free: 18.24 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001461/1.04, allocations: 48.88 kB / 0.7331 GB, free: 18.24 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001031/1.04, allocations: 94.77 kB / 0.7332 GB, free: 18.23 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002251/1.042, allocations: 1.696 MB / 0.7349 GB, free: 18.23 MB / 0.5762 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.009256/1.051, allocations: 6.869 MB / 0.7416 GB, free: 14.75 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00115/1.052, allocations: 0.8739 MB / 0.7424 GB, free: 14.72 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005609/1.053, allocations: 457.9 kB / 0.7428 GB, free: 14.71 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001517/1.053, allocations: 106.7 kB / 0.743 GB, free: 14.62 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.986e-05/1.053, allocations: 45.88 kB / 0.743 GB, free: 14.58 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=60): time 2.535e-06/1.053, allocations: 0 / 0.743 GB, free: 14.58 MB / 0.5762 GB Notification: Performance of matching and sorting (n=72): time 0.01038/1.064, allocations: 4.126 MB / 0.747 GB, free: 13.83 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.105e-05/1.064, allocations: 111.4 kB / 0.7471 GB, free: 13.71 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001322/1.065, allocations: 1.11 MB / 0.7482 GB, free: 13.55 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001407/1.065, allocations: 46.86 kB / 0.7483 GB, free: 13.52 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003431/1.066, allocations: 0.5276 MB / 0.7488 GB, free: 13.28 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001828/1.066, allocations: 285.1 kB / 0.749 GB, free: 13.1 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003306/1.066, allocations: 205.9 kB / 0.7492 GB, free: 13.08 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001773/1.066, allocations: 352 kB / 0.7496 GB, free: 12.77 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007848/1.067, allocations: 0.5803 MB / 0.7501 GB, free: 12.77 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008945/1.068, allocations: 0.8711 MB / 0.751 GB, free: 12.46 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001649/1.07, allocations: 1.451 MB / 0.7524 GB, free: 12.16 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.202e-06/1.07, allocations: 1.844 kB / 0.7524 GB, free: 12.16 MB / 0.5762 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.00276/1.072, allocations: 2.016 MB / 0.7544 GB, free: 12.04 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.505e-05/1.072, allocations: 9.094 kB / 0.7544 GB, free: 12.04 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.704e-05/1.072, allocations: 8.188 kB / 0.7544 GB, free: 12.04 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004513/1.077, allocations: 1.349 MB / 0.7557 GB, free: 12.02 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006465/1.078, allocations: 148.3 kB / 0.7559 GB, free: 12.02 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00269/1.08, allocations: 1.928 MB / 0.7577 GB, free: 11.47 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001066/1.081, allocations: 41.16 kB / 0.7578 GB, free: 11.47 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001142/1.082, allocations: 67.17 kB / 0.7578 GB, free: 11.47 MB / 0.5762 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.0006963/1.082, allocations: 403 kB / 0.7582 GB, free: 11.35 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002129/1.082, allocations: 117.6 kB / 0.7583 GB, free: 11.29 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00227/1.085, allocations: 1.497 MB / 0.7598 GB, free: 11.2 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.537e-06/1.085, allocations: 8.5 kB / 0.7598 GB, free: 11.2 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.676e-06/1.085, allocations: 4.719 kB / 0.7598 GB, free: 11.2 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-06/1.085, allocations: 5.859 kB / 0.7598 GB, free: 11.2 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004196/1.089, allocations: 2.691 MB / 0.7624 GB, free: 10.85 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/1.089, allocations: 0.875 kB / 0.7624 GB, free: 10.85 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001784/1.091, allocations: 326.3 kB / 0.7628 GB, free: 10.85 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001931/1.091, allocations: 68.38 kB / 0.7628 GB, free: 10.84 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.579e-05/1.091, allocations: 36.23 kB / 0.7629 GB, free: 10.84 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002719/1.094, allocations: 3.033 MB / 0.7658 GB, free: 8.082 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/1.094, allocations: 3.938 kB / 0.7658 GB, free: 8.078 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003122/1.097, allocations: 1.91 MB / 0.7677 GB, free: 7.848 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006985/1.098, allocations: 344.9 kB / 0.768 GB, free: 7.688 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001941/1.098, allocations: 31.08 kB / 0.768 GB, free: 7.688 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008882/1.099, allocations: 46.62 kB / 0.7681 GB, free: 7.688 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001751/1.099, allocations: 61.39 kB / 0.7682 GB, free: 7.688 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001134/1.099, allocations: 65.44 kB / 0.7682 GB, free: 7.688 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001009/1.1, allocations: 0.7925 MB / 0.769 GB, free: 7.578 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.1e-07/1.1, allocations: 0.9375 kB / 0.769 GB, free: 7.578 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001584/1.102, allocations: 483.2 kB / 0.7694 GB, free: 7.547 MB / 0.5762 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.005052/1.107, allocations: 3.124 MB / 0.7725 GB, free: 6.742 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002609/1.109, allocations: 1.482 MB / 0.7739 GB, free: 6.707 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 7.675e-06/1.109, allocations: 5.156 kB / 0.774 GB, free: 6.707 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.00155/1.111, allocations: 0.8647 MB / 0.7748 GB, free: 6.594 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003615/1.115, allocations: 0.7588 MB / 0.7755 GB, free: 6.48 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0206/1.135, allocations: 13 MB / 0.7882 GB, free: 15.95 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008615/1.136, allocations: 1.171 MB / 0.7894 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.001801/1.138, allocations: 488.9 kB / 0.7898 GB, free: 14.6 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008457/1.139, allocations: 450 kB / 0.7903 GB, free: 14.48 MB / 0.5919 GB Notification: Performance of SimCode: time 1.162e-06/1.139, allocations: 0 / 0.7903 GB, free: 14.48 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1081/1.247, allocations: 50.76 MB / 0.8398 GB, free: 12.27 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.53/15.78, allocations: 4.391 kB / 0.8398 GB, free: 12.26 MB / 0.6387 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)