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.SimpleNaturalGasFixedComposition.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.SimpleNaturalGasFixedComposition,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001823/0.001823, allocations: 114.8 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002111/0.002112, allocations: 202 kB / 18.73 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.518/1.518, allocations: 227.4 MB / 247 MB, free: 10.45 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.2274/0.2274, allocations: 46.11 MB / 344.3 MB, free: 11.43 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.002279/0.002279, allocations: 80.14 kB / 480.9 MB, free: 4.469 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3601/0.3624, allocations: 62.44 MB / 0.5306 GB, free: 13.35 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition): time 0.2305/0.593, allocations: 180.2 MB / 0.7066 GB, free: 12.83 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0107/0.6037, allocations: 6.496 MB / 0.7129 GB, free: 6.309 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001063/0.6048, allocations: 23.81 kB / 0.713 GB, free: 6.285 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001499/0.6064, allocations: 413.7 kB / 0.7134 GB, free: 5.879 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0052/0.6116, allocations: 1.75 MB / 0.7151 GB, free: 4.129 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.004145/0.6158, allocations: 1.486 MB / 0.7165 GB, free: 2.648 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.003104/0.6189, allocations: 2.122 MB / 0.7186 GB, free: 0.5195 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.3659/0.9848, allocations: 0.5367 MB / 0.7191 GB, free: 3.762 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004417/0.9893, allocations: 1.749 MB / 0.7208 GB, free: 3.762 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003627/0.9929, allocations: 1.499 MB / 0.7223 GB, free: 3.754 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0003235/0.9933, allocations: 75.5 kB / 0.7224 GB, free: 3.754 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003576/0.9969, allocations: 1.311 MB / 0.7236 GB, free: 3.754 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0006226/0.9975, allocations: 447.9 kB / 0.7241 GB, free: 3.754 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0009593/0.9985, allocations: 0.554 MB / 0.7246 GB, free: 3.754 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.00409/1.003, allocations: 2.075 MB / 0.7266 GB, free: 3.652 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/1.003, allocations: 1.688 kB / 0.7266 GB, free: 3.652 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.854e-06/1.003, allocations: 0 / 0.7266 GB, free: 3.652 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 2.545e-05/1.003, allocations: 1.875 kB / 0.7266 GB, free: 3.652 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: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.003927/1.007, allocations: 1.478 MB / 0.7281 GB, free: 18.91 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.437e-05/1.007, allocations: 8.188 kB / 0.7281 GB, free: 18.91 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001516/1.007, allocations: 138.8 kB / 0.7282 GB, free: 18.88 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001409/1.008, allocations: 284.3 kB / 0.7285 GB, free: 18.82 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001107/1.009, allocations: 0.6356 MB / 0.7291 GB, free: 18.54 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001332/1.009, allocations: 116 kB / 0.7292 GB, free: 18.47 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001034/1.01, allocations: 64.84 kB / 0.7293 GB, free: 18.47 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001646/1.011, allocations: 1.265 MB / 0.7305 GB, free: 18.26 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.389e-05/1.011, allocations: 3.125 kB / 0.7305 GB, free: 18.26 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001056/1.011, allocations: 30.95 kB / 0.7306 GB, free: 18.26 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.364e-05/1.011, allocations: 92.62 kB / 0.7306 GB, free: 18.25 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001449/1.013, allocations: 1.047 MB / 0.7317 GB, free: 18.25 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.008213/1.021, allocations: 4.917 MB / 0.7365 GB, free: 15.5 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005737/1.022, allocations: 303.6 kB / 0.7368 GB, free: 15.48 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002254/1.022, allocations: 150 kB / 0.7369 GB, free: 15.46 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001204/1.022, allocations: 96.44 kB / 0.737 GB, free: 15.37 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.749e-05/1.022, allocations: 43.77 kB / 0.737 GB, free: 15.33 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=28): time 2.635e-06/1.022, allocations: 0.7812 kB / 0.737 GB, free: 15.33 MB / 0.5762 GB Notification: Performance of matching and sorting (n=33): time 0.006498/1.029, allocations: 1.843 MB / 0.7388 GB, free: 14.65 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001005/1.029, allocations: 134.7 kB / 0.739 GB, free: 14.5 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001109/1.03, allocations: 0.9411 MB / 0.7399 GB, free: 14.32 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 5.063e-05/1.03, allocations: 36.83 kB / 0.7399 GB, free: 14.29 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003424/1.03, allocations: 0.5829 MB / 0.7405 GB, free: 13.96 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 9.244e-05/1.03, allocations: 140.3 kB / 0.7406 GB, free: 13.88 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000286/1.031, allocations: 221.4 kB / 0.7408 GB, free: 13.85 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0002205/1.031, allocations: 397.8 kB / 0.7412 GB, free: 13.54 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004004/1.031, allocations: 275.2 kB / 0.7415 GB, free: 13.54 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007027/1.032, allocations: 0.8643 MB / 0.7423 GB, free: 12.79 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001156/1.033, allocations: 1.175 MB / 0.7435 GB, free: 12.09 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.528e-06/1.033, allocations: 6.375 kB / 0.7435 GB, free: 12.09 MB / 0.5762 GB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001925/1.035, allocations: 1.247 MB / 0.7447 GB, free: 11.99 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.776e-05/1.035, allocations: 14.5 kB / 0.7447 GB, free: 11.99 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.233e-05/1.035, allocations: 22.59 kB / 0.7447 GB, free: 11.99 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001279/1.037, allocations: 291 kB / 0.745 GB, free: 11.97 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005244/1.037, allocations: 204.4 kB / 0.7452 GB, free: 11.97 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001162/1.038, allocations: 0.9159 MB / 0.7461 GB, free: 11.45 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009617/1.039, allocations: 41.66 kB / 0.7461 GB, free: 11.45 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.606e-05/1.039, allocations: 72.25 kB / 0.7462 GB, free: 11.45 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 90 * 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 (112): * Single equations (assignments): 111 * 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 {(2,17)} Notification: Performance of prepare postOptimizeDAE: time 0.0005464/1.04, allocations: 343.3 kB / 0.7465 GB, free: 11.32 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001554/1.04, allocations: 98.7 kB / 0.7466 GB, free: 11.27 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000986/1.041, allocations: 0.5187 MB / 0.7471 GB, free: 11.2 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.947e-06/1.041, allocations: 7.391 kB / 0.7471 GB, free: 11.19 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/1.041, allocations: 3.844 kB / 0.7471 GB, free: 11.19 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.682e-06/1.041, allocations: 6.703 kB / 0.7471 GB, free: 11.19 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001838/1.043, allocations: 1.125 MB / 0.7482 GB, free: 10.86 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.612e-06/1.043, allocations: 4 kB / 0.7482 GB, free: 10.86 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009293/1.044, allocations: 184.3 kB / 0.7484 GB, free: 10.86 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001019/1.044, allocations: 26.02 kB / 0.7484 GB, free: 10.85 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.101e-05/1.044, allocations: 11.53 kB / 0.7485 GB, free: 10.85 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002368/1.046, allocations: 2.872 MB / 0.7513 GB, free: 8.094 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/1.046, allocations: 5 kB / 0.7513 GB, free: 8.094 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0011/1.048, allocations: 0.7044 MB / 0.752 GB, free: 7.891 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003996/1.048, allocations: 200.9 kB / 0.7521 GB, free: 7.746 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001179/1.048, allocations: 10.09 kB / 0.7522 GB, free: 7.746 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000409/1.048, allocations: 15.41 kB / 0.7522 GB, free: 7.746 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.388e-05/1.049, allocations: 29.86 kB / 0.7522 GB, free: 7.742 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.854e-05/1.049, allocations: 23.25 kB / 0.7522 GB, free: 7.742 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000853/1.049, allocations: 0.6231 MB / 0.7528 GB, free: 7.633 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.3e-07/1.049, allocations: 0 / 0.7528 GB, free: 7.633 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001602/1.051, allocations: 385.6 kB / 0.7532 GB, free: 7.602 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,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 (33): * Single equations (assignments): 31 * 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.003068/1.054, allocations: 1.793 MB / 0.7549 GB, free: 6.828 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001349/1.056, allocations: 0.6817 MB / 0.7556 GB, free: 6.812 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 7.894e-06/1.056, allocations: 7.234 kB / 0.7556 GB, free: 6.809 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0008471/1.056, allocations: 371 kB / 0.756 GB, free: 6.699 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002015/1.058, allocations: 433 kB / 0.7564 GB, free: 6.641 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01062/1.069, allocations: 8.189 MB / 0.7644 GB, free: 3.066 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006612/1.07, allocations: 1.03 MB / 0.7654 GB, free: 2.355 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001052/1.071, allocations: 386.6 kB / 0.7658 GB, free: 2.289 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003793/1.071, allocations: 327.8 kB / 0.7661 GB, free: 2.277 MB / 0.5762 GB Notification: Performance of SimCode: time 8.02e-07/1.071, allocations: 1.094 kB / 0.7661 GB, free: 2.277 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07299/1.144, allocations: 31.02 MB / 0.7964 GB, free: 432 kB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.37/19.51, allocations: 19.95 kB / 0.7964 GB, free: 416 kB / 0.5919 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_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_SimpleNaturalGasFixedComposition.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe 2>&1)