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.001248/0.001248, 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.001343/0.001343, 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.426/1.426, allocations: 227.4 MB / 246.8 MB, free: 10.58 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.2463/0.2463, allocations: 46.11 MB / 344.2 MB, free: 11.56 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.002356/0.002356, allocations: 76.69 kB / 417.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.132/0.1344, allocations: 62.46 MB / 480.2 MB, free: 5.133 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition): time 0.4662/0.6006, allocations: 180.2 MB / 0.6449 GB, free: 15 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0107/0.6114, allocations: 6.512 MB / 0.6513 GB, free: 8.473 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00106/0.6125, allocations: 19.88 kB / 0.6513 GB, free: 8.453 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001713/0.6143, allocations: 417.6 kB / 0.6517 GB, free: 8.043 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005372/0.6197, allocations: 1.749 MB / 0.6534 GB, free: 6.289 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004657/0.6244, allocations: 1.48 MB / 0.6549 GB, free: 4.816 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.003376/0.6277, allocations: 2.118 MB / 0.6569 GB, free: 2.695 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001156/0.6289, allocations: 0.5402 MB / 0.6575 GB, free: 2.148 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004251/0.6332, allocations: 1.752 MB / 0.6592 GB, free: 400 kB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003235/0.6364, allocations: 1.496 MB / 0.6606 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0003726/0.6368, allocations: 79.94 kB / 0.6607 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003534/0.6404, allocations: 1.375 MB / 0.662 GB, free: 13.44 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0007605/0.6412, allocations: 446.9 kB / 0.6625 GB, free: 13 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.00142/0.6426, allocations: 0.5562 MB / 0.663 GB, free: 12.44 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.004662/0.6473, allocations: 2.088 MB / 0.6651 GB, free: 10.35 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.6473, allocations: 0 / 0.6651 GB, free: 10.35 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.904e-06/0.6473, allocations: 3.938 kB / 0.6651 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.966e-05/0.6474, allocations: 4 kB / 0.6651 GB, free: 10.34 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: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.004522/0.6519, allocations: 1.45 MB / 0.6665 GB, free: 8.84 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.955e-05/0.652, allocations: 12.03 kB / 0.6665 GB, free: 8.828 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003733/0.6523, allocations: 130.7 kB / 0.6666 GB, free: 8.691 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001697/0.6541, allocations: 282.6 kB / 0.6669 GB, free: 8.414 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001433/0.6555, allocations: 0.6168 MB / 0.6675 GB, free: 7.758 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001406/0.6557, allocations: 104.7 kB / 0.6676 GB, free: 7.641 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001645/0.6558, allocations: 71.92 kB / 0.6677 GB, free: 7.57 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002263/0.6581, allocations: 1.267 MB / 0.6689 GB, free: 6.234 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.468e-05/0.6581, allocations: 4 kB / 0.6689 GB, free: 6.23 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001285/0.6583, allocations: 28 kB / 0.6689 GB, free: 6.203 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000114/0.6584, allocations: 85.27 kB / 0.669 GB, free: 6.121 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001944/0.6603, allocations: 1.051 MB / 0.67 GB, free: 5.07 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.00812/0.6685, allocations: 4.935 MB / 0.6748 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006038/0.6691, allocations: 302.5 kB / 0.6751 GB, free: 15.53 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002767/0.6694, allocations: 145.7 kB / 0.6753 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001227/0.6695, allocations: 93.11 kB / 0.6754 GB, free: 15.28 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.372e-05/0.6696, allocations: 42.55 kB / 0.6754 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=28): time 2.294e-06/0.6696, allocations: 0 / 0.6754 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of matching and sorting (n=33): time 0.007227/0.6768, allocations: 1.824 MB / 0.6772 GB, free: 13.32 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000114/0.677, allocations: 136.5 kB / 0.6773 GB, free: 13.16 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001417/0.6784, allocations: 0.9427 MB / 0.6782 GB, free: 12.19 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 6.249e-05/0.6785, allocations: 37.7 kB / 0.6783 GB, free: 12.15 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005687/0.6791, allocations: 0.5672 MB / 0.6788 GB, free: 11.57 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001504/0.6792, allocations: 130.3 kB / 0.679 GB, free: 11.44 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003737/0.6796, allocations: 222.6 kB / 0.6792 GB, free: 11.22 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0003027/0.6799, allocations: 398.7 kB / 0.6795 GB, free: 10.82 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005147/0.6804, allocations: 270.5 kB / 0.6798 GB, free: 10.55 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00105/0.6815, allocations: 0.8755 MB / 0.6807 GB, free: 9.395 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001715/0.6832, allocations: 1.179 MB / 0.6818 GB, free: 7.938 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-05/0.6832, allocations: 4 kB / 0.6818 GB, free: 7.934 MB / 0.5137 GB Notification: Performance of matching and sorting (n=130) (initialization): time 0.002387/0.6856, allocations: 1.232 MB / 0.683 GB, free: 6.691 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.383e-05/0.6857, allocations: 16 kB / 0.683 GB, free: 6.676 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.987e-05/0.6857, allocations: 20 kB / 0.683 GB, free: 6.656 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001429/0.6872, allocations: 284.3 kB / 0.6833 GB, free: 6.379 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000679/0.6879, allocations: 203.6 kB / 0.6835 GB, free: 6.18 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001289/0.6892, allocations: 0.9252 MB / 0.6844 GB, free: 5.23 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007978/0.69, allocations: 40 kB / 0.6845 GB, free: 5.191 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001104/0.6901, allocations: 71.98 kB / 0.6845 GB, free: 5.121 MB / 0.5137 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.0005298/0.6906, allocations: 349.2 kB / 0.6849 GB, free: 4.77 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000201/0.6908, allocations: 94.97 kB / 0.6849 GB, free: 4.676 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001255/0.6921, allocations: 0.5161 MB / 0.6855 GB, free: 4.152 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.509e-06/0.6921, allocations: 4 kB / 0.6855 GB, free: 4.148 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/0.6921, allocations: 4 kB / 0.6855 GB, free: 4.145 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.866e-06/0.6921, allocations: 3.984 kB / 0.6855 GB, free: 4.141 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001986/0.6941, allocations: 1.125 MB / 0.6866 GB, free: 2.953 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.6942, allocations: 4.031 kB / 0.6866 GB, free: 2.949 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001028/0.6952, allocations: 179.8 kB / 0.6867 GB, free: 2.773 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.59e-05/0.6953, allocations: 28.77 kB / 0.6868 GB, free: 2.742 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.019e-05/0.6953, allocations: 8 kB / 0.6868 GB, free: 2.734 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002476/0.6978, allocations: 2.874 MB / 0.6896 GB, free: 15.59 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.6978, allocations: 3.984 kB / 0.6896 GB, free: 15.58 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001149/0.699, allocations: 0.6951 MB / 0.6903 GB, free: 14.86 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003245/0.6993, allocations: 192 kB / 0.6904 GB, free: 14.66 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001533/0.6995, allocations: 20.11 kB / 0.6905 GB, free: 14.64 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004401/0.6999, allocations: 16 kB / 0.6905 GB, free: 14.62 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.392e-05/0.7, allocations: 27.95 kB / 0.6905 GB, free: 14.59 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.701e-05/0.7001, allocations: 16 kB / 0.6905 GB, free: 14.58 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.000852/0.7009, allocations: 0.6243 MB / 0.6911 GB, free: 13.94 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.7e-07/0.7009, allocations: 3.938 kB / 0.6911 GB, free: 13.94 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00139/0.7023, allocations: 387.9 kB / 0.6915 GB, free: 13.56 MB / 0.5294 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.003569/0.7059, allocations: 1.803 MB / 0.6933 GB, free: 11.72 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0015/0.7074, allocations: 0.7208 MB / 0.694 GB, free: 11 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/0.7075, allocations: 7.938 kB / 0.694 GB, free: 11 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0009996/0.7085, allocations: 374.8 kB / 0.6943 GB, free: 10.62 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002052/0.7105, allocations: 428.4 kB / 0.6947 GB, free: 10.21 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01275/0.7233, allocations: 8.574 MB / 0.7031 GB, free: 0.8789 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2028/0.9261, allocations: 1.023 MB / 0.7041 GB, free: 197.2 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001654/0.9278, allocations: 386.8 kB / 0.7045 GB, free: 197.2 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004855/0.9283, allocations: 321.7 kB / 0.7048 GB, free: 197.2 MB / 0.5294 GB Notification: Performance of SimCode: time 1.253e-06/0.9283, allocations: 0 / 0.7048 GB, free: 197.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07045/0.9988, allocations: 30.11 MB / 0.7342 GB, free: 183.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.69/13.69, allocations: 12.64 kB / 0.7342 GB, free: 183.2 MB / 0.5294 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)