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.001291/0.001291, allocations: 122.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001283/0.001283, allocations: 202 kB / 18.74 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.476/1.476, 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.2232/0.2232, allocations: 46.13 MB / 344.4 MB, free: 11.46 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.002207/0.002207, allocations: 75.88 kB / 480.9 MB, free: 4.516 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3674/0.3697, allocations: 62.44 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition): time 0.2271/0.5968, allocations: 180.2 MB / 0.7066 GB, free: 12.87 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.009515/0.6064, allocations: 6.508 MB / 0.7129 GB, free: 6.336 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008589/0.6073, allocations: 19.88 kB / 0.713 GB, free: 6.316 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001235/0.6085, allocations: 413.6 kB / 0.7134 GB, free: 5.91 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.004404/0.613, allocations: 1.757 MB / 0.7151 GB, free: 4.152 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.00429/0.6173, allocations: 1.482 MB / 0.7165 GB, free: 2.676 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.002958/0.6202, allocations: 2.114 MB / 0.7186 GB, free: 0.5547 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008308/0.6211, allocations: 0.5362 MB / 0.7191 GB, free: 16 kB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.3727/0.9938, allocations: 1.753 MB / 0.7208 GB, free: 3.898 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004379/0.9982, allocations: 1.494 MB / 0.7223 GB, free: 3.891 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0004011/0.9986, allocations: 75.06 kB / 0.7224 GB, free: 3.891 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003464/1.002, allocations: 1.311 MB / 0.7236 GB, free: 3.891 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0006252/1.003, allocations: 444.6 kB / 0.7241 GB, free: 3.891 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.001078/1.004, allocations: 0.5564 MB / 0.7246 GB, free: 3.891 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.004113/1.008, allocations: 2.078 MB / 0.7266 GB, free: 3.789 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/1.008, allocations: 0 / 0.7266 GB, free: 3.789 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.094e-06/1.008, allocations: 0.6562 kB / 0.7266 GB, free: 3.789 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.824e-05/1.008, allocations: 0.7812 kB / 0.7266 GB, free: 3.789 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.003637/1.012, allocations: 1.479 MB / 0.7281 GB, free: 19.05 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/1.012, allocations: 10.09 kB / 0.7281 GB, free: 19.05 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001434/1.012, allocations: 134 kB / 0.7282 GB, free: 19.01 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001395/1.013, allocations: 284.4 kB / 0.7285 GB, free: 18.96 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001025/1.014, allocations: 0.641 MB / 0.7291 GB, free: 18.67 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001067/1.014, allocations: 114.9 kB / 0.7292 GB, free: 18.61 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001036/1.015, allocations: 67.28 kB / 0.7293 GB, free: 18.61 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001626/1.016, allocations: 1.264 MB / 0.7305 GB, free: 18.4 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.26e-05/1.016, allocations: 3.031 kB / 0.7305 GB, free: 18.4 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001031/1.016, allocations: 31.47 kB / 0.7306 GB, free: 18.4 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.184e-05/1.016, allocations: 84.97 kB / 0.7306 GB, free: 18.39 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00136/1.018, allocations: 1.051 MB / 0.7317 GB, free: 18.39 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.006544/1.024, allocations: 4.924 MB / 0.7365 GB, free: 15.64 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004765/1.025, allocations: 301.3 kB / 0.7368 GB, free: 15.61 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002043/1.025, allocations: 148.2 kB / 0.7369 GB, free: 15.6 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001219/1.025, allocations: 99.48 kB / 0.737 GB, free: 15.51 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.703e-05/1.025, allocations: 43.38 kB / 0.737 GB, free: 15.47 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=28): time 2.615e-06/1.025, allocations: 0 / 0.737 GB, free: 15.47 MB / 0.5762 GB Notification: Performance of matching and sorting (n=33): time 0.006225/1.031, allocations: 1.844 MB / 0.7388 GB, free: 14.79 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001023/1.032, allocations: 134.2 kB / 0.739 GB, free: 14.63 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001062/1.033, allocations: 0.9402 MB / 0.7399 GB, free: 14.46 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 4.618e-05/1.033, allocations: 32.11 kB / 0.7399 GB, free: 14.43 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003117/1.033, allocations: 0.5831 MB / 0.7405 GB, free: 14.1 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 8.437e-05/1.033, allocations: 142.5 kB / 0.7406 GB, free: 14.02 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002424/1.033, allocations: 218.2 kB / 0.7408 GB, free: 13.98 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001888/1.034, allocations: 405.7 kB / 0.7412 GB, free: 13.67 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003674/1.034, allocations: 273.8 kB / 0.7415 GB, free: 13.67 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006035/1.035, allocations: 0.8667 MB / 0.7423 GB, free: 12.93 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001092/1.036, allocations: 1.176 MB / 0.7435 GB, free: 12.22 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.446e-06/1.036, allocations: 4.781 kB / 0.7435 GB, free: 12.22 MB / 0.5762 GB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001707/1.037, allocations: 1.241 MB / 0.7447 GB, free: 12.12 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.671e-05/1.037, allocations: 18.88 kB / 0.7447 GB, free: 12.12 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.915e-05/1.037, allocations: 19.38 kB / 0.7447 GB, free: 12.12 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001218/1.039, allocations: 295.3 kB / 0.745 GB, free: 12.11 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005275/1.039, allocations: 205.5 kB / 0.7452 GB, free: 12.11 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001039/1.04, allocations: 0.9086 MB / 0.7461 GB, free: 11.58 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008354/1.041, allocations: 48.3 kB / 0.7461 GB, free: 11.58 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.751e-05/1.041, allocations: 68.03 kB / 0.7462 GB, free: 11.58 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.0004786/1.042, allocations: 343.6 kB / 0.7465 GB, free: 11.45 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001433/1.042, allocations: 100.6 kB / 0.7466 GB, free: 11.4 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009164/1.043, allocations: 0.5135 MB / 0.7471 GB, free: 11.34 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-05/1.043, allocations: 10.25 kB / 0.7471 GB, free: 11.33 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.271e-06/1.043, allocations: 0 / 0.7471 GB, free: 11.33 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-06/1.043, allocations: 2.906 kB / 0.7471 GB, free: 11.33 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001651/1.044, allocations: 1.126 MB / 0.7482 GB, free: 11 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.052e-06/1.044, allocations: 4.875 kB / 0.7482 GB, free: 11 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009345/1.045, allocations: 186.1 kB / 0.7484 GB, free: 11 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.034e-05/1.046, allocations: 25.31 kB / 0.7484 GB, free: 10.99 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.895e-05/1.046, allocations: 9.125 kB / 0.7484 GB, free: 10.99 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002339/1.048, allocations: 2.876 MB / 0.7513 GB, free: 8.234 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/1.048, allocations: 3.312 kB / 0.7513 GB, free: 8.234 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000982/1.049, allocations: 0.702 MB / 0.7519 GB, free: 8.031 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003206/1.049, allocations: 207.1 kB / 0.7521 GB, free: 7.887 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001135/1.049, allocations: 7.188 kB / 0.7521 GB, free: 7.887 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004035/1.05, allocations: 15.23 kB / 0.7522 GB, free: 7.887 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.795e-05/1.05, allocations: 30.83 kB / 0.7522 GB, free: 7.883 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.928e-05/1.05, allocations: 19.69 kB / 0.7522 GB, free: 7.883 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0007281/1.051, allocations: 0.6263 MB / 0.7528 GB, free: 7.773 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.5e-07/1.051, allocations: 0 / 0.7528 GB, free: 7.773 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001712/1.052, allocations: 384 kB / 0.7532 GB, free: 7.742 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.003135/1.056, allocations: 1.801 MB / 0.7549 GB, free: 6.961 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001511/1.057, allocations: 0.6807 MB / 0.7556 GB, free: 6.949 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.839e-05/1.057, allocations: 7.234 kB / 0.7556 GB, free: 6.945 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0009334/1.058, allocations: 371.1 kB / 0.756 GB, free: 6.836 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002018/1.06, allocations: 427.3 kB / 0.7564 GB, free: 6.785 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01088/1.071, allocations: 8.186 MB / 0.7644 GB, free: 3.207 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007316/1.072, allocations: 1.03 MB / 0.7654 GB, free: 2.5 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001126/1.073, allocations: 392.9 kB / 0.7658 GB, free: 2.43 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004075/1.073, allocations: 321.3 kB / 0.7661 GB, free: 2.418 MB / 0.5762 GB Notification: Performance of SimCode: time 9.02e-07/1.073, allocations: 0 / 0.7661 GB, free: 2.418 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0708/1.144, allocations: 31.03 MB / 0.7964 GB, free: 0.582 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.18/19.32, allocations: 19.7 kB / 0.7964 GB, free: 0.5664 MB / 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 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)