Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="ModelicaTest_trunk_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.0008469/0.000847, allocations: 93 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009359/0.000936, allocations: 204.5 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.404/1.404, allocations: 227.3 MB / 245.9 MB, free: 12.03 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.232/0.232, allocations: 45.91 MB / 344 MB, free: 12.3 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000285/0.0002851, allocations: 8 kB / 418.1 MB, free: 20.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1349/0.1352, allocations: 63.45 MB / 481.5 MB, free: 5.277 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.5126/0.6478, allocations: 143.9 MB / 0.6107 GB, free: 5.434 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0101/0.658, allocations: 6.547 MB / 0.6171 GB, free: 14.87 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001184/0.6592, allocations: 27.75 kB / 0.6172 GB, free: 14.84 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001189/0.6604, allocations: 334.4 kB / 0.6175 GB, free: 14.51 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004642/0.6651, allocations: 1.29 MB / 0.6187 GB, free: 13.22 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004303/0.6694, allocations: 1.108 MB / 0.6198 GB, free: 12.12 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.00271/0.6721, allocations: 1.251 MB / 0.621 GB, free: 10.88 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001215/0.6734, allocations: 0.6645 MB / 0.6217 GB, free: 10.21 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003377/0.6767, allocations: 1.337 MB / 0.623 GB, free: 8.871 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003282/0.68, allocations: 1.45 MB / 0.6244 GB, free: 7.418 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002243/0.6803, allocations: 60 kB / 0.6245 GB, free: 7.359 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00318/0.6835, allocations: 1.03 MB / 0.6255 GB, free: 6.328 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000844/0.6843, allocations: 0.6002 MB / 0.6261 GB, free: 5.727 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005475/0.6849, allocations: 289.1 kB / 0.6263 GB, free: 5.438 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003048/0.688, allocations: 1.907 MB / 0.6282 GB, free: 3.531 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.688, allocations: 4 kB / 0.6282 GB, free: 3.527 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.688, allocations: 0 / 0.6282 GB, free: 3.527 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.949e-05/0.688, allocations: 0 / 0.6282 GB, free: 3.527 MB / 462.1 MB 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.003803/0.6918, allocations: 1.458 MB / 0.6296 GB, free: 2.02 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.606e-05/0.6919, allocations: 12.56 kB / 0.6296 GB, free: 2.008 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000303/0.6922, allocations: 180.8 kB / 0.6298 GB, free: 1.82 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001577/0.6938, allocations: 322.2 kB / 0.6301 GB, free: 1.504 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001709/0.6955, allocations: 0.7108 MB / 0.6308 GB, free: 0.7539 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001486/0.6957, allocations: 145.4 kB / 0.6309 GB, free: 0.5977 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000193/0.6959, allocations: 103.9 kB / 0.631 GB, free: 0.4961 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002978/0.6989, allocations: 1.833 MB / 0.6328 GB, free: 14.59 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.407e-05/0.6989, allocations: 4 kB / 0.6328 GB, free: 14.59 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001549/0.6991, allocations: 51.94 kB / 0.6329 GB, free: 14.54 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001233/0.6992, allocations: 93.95 kB / 0.633 GB, free: 14.45 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002805/0.702, allocations: 1.702 MB / 0.6346 GB, free: 12.74 MB / 478.1 MB 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.01092/0.7129, allocations: 6.844 MB / 0.6413 GB, free: 5.426 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001264/0.7142, allocations: 0.7956 MB / 0.6421 GB, free: 4.625 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000138/0.7144, allocations: 105.7 kB / 0.6422 GB, free: 4.504 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.722e-05/0.7144, allocations: 47.06 kB / 0.6422 GB, free: 4.449 MB / 478.1 MB Notification: Performance of pre-optimization done (n=60): time 2.234e-06/0.7144, allocations: 0 / 0.6422 GB, free: 4.449 MB / 478.1 MB Notification: Performance of matching and sorting (n=72): time 0.01144/0.7259, allocations: 4.181 MB / 0.6463 GB, free: 196 kB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.495e-05/0.726, allocations: 111.5 kB / 0.6464 GB, free: 60 kB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001553/0.7276, allocations: 1.101 MB / 0.6475 GB, free: 14.93 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001251/0.7277, allocations: 41.7 kB / 0.6476 GB, free: 14.89 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004422/0.7281, allocations: 0.5184 MB / 0.6481 GB, free: 14.36 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002437/0.7284, allocations: 260.3 kB / 0.6483 GB, free: 14.1 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.703e-05/0.7285, allocations: 20 kB / 0.6483 GB, free: 14.08 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.7286, allocations: 345.9 kB / 0.6487 GB, free: 13.74 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009151/0.7296, allocations: 0.5992 MB / 0.6492 GB, free: 13.14 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001155/0.7307, allocations: 0.876 MB / 0.6501 GB, free: 12.14 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001075/0.7318, allocations: 0.7017 MB / 0.6508 GB, free: 11.44 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.123e-06/0.7318, allocations: 4 kB / 0.6508 GB, free: 11.44 MB / 494.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003309/0.7351, allocations: 2.023 MB / 0.6528 GB, free: 9.402 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.571e-05/0.7352, allocations: 14.03 kB / 0.6528 GB, free: 9.391 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.909e-05/0.7352, allocations: 15.98 kB / 0.6528 GB, free: 9.375 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004865/0.7401, allocations: 1.407 MB / 0.6542 GB, free: 7.973 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005972/0.7407, allocations: 151.7 kB / 0.6543 GB, free: 7.824 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002885/0.7436, allocations: 1.924 MB / 0.6562 GB, free: 5.871 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001296/0.7449, allocations: 115.8 kB / 0.6563 GB, free: 5.758 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001333/0.7451, allocations: 63.98 kB / 0.6564 GB, free: 5.695 MB / 494.1 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {9 35} Notification: Performance of prepare postOptimizeDAE: time 0.0007773/0.7458, allocations: 393.5 kB / 0.6567 GB, free: 5.301 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002183/0.7461, allocations: 106.8 kB / 0.6568 GB, free: 5.195 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0026/0.7487, allocations: 1.511 MB / 0.6583 GB, free: 3.676 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.164e-05/0.7487, allocations: 12 kB / 0.6583 GB, free: 3.664 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.7487, allocations: 4 kB / 0.6583 GB, free: 3.66 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.075e-05/0.7487, allocations: 7.938 kB / 0.6583 GB, free: 3.652 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004369/0.7531, allocations: 2.696 MB / 0.661 GB, free: 0.8945 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.521e-06/0.7531, allocations: 4 kB / 0.661 GB, free: 0.8906 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001813/0.755, allocations: 319.6 kB / 0.6613 GB, free: 0.5781 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001956/0.7552, allocations: 68.81 kB / 0.6613 GB, free: 0.5078 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.607e-05/0.7553, allocations: 39.97 kB / 0.6614 GB, free: 480 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002509/0.7578, allocations: 2.86 MB / 0.6642 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.7578, allocations: 0 / 0.6642 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003131/0.761, allocations: 1.936 MB / 0.6661 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009699/0.762, allocations: 339.7 kB / 0.6664 GB, free: 11.03 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002115/0.7622, allocations: 36.17 kB / 0.6664 GB, free: 11 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001028/0.7632, allocations: 80.02 kB / 0.6665 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001815/0.7634, allocations: 64.56 kB / 0.6666 GB, free: 10.85 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001199/0.7635, allocations: 63.89 kB / 0.6666 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001207/0.7647, allocations: 0.793 MB / 0.6674 GB, free: 9.984 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.91e-07/0.7648, allocations: 3.938 kB / 0.6674 GB, free: 9.98 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001687/0.7665, allocations: 483.8 kB / 0.6679 GB, free: 9.508 MB / 0.4981 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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005298/0.7718, allocations: 3.086 MB / 0.6709 GB, free: 6.387 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00289/0.7747, allocations: 1.474 MB / 0.6723 GB, free: 4.914 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.156e-05/0.7747, allocations: 8.594 kB / 0.6723 GB, free: 4.906 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001796/0.7765, allocations: 0.8663 MB / 0.6732 GB, free: 4.031 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003658/0.7802, allocations: 0.7162 MB / 0.6739 GB, free: 3.324 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01902/0.7992, allocations: 14.77 MB / 0.6883 GB, free: 4.16 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001044/0.8003, allocations: 1.199 MB / 0.6895 GB, free: 2.934 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001954/0.8023, allocations: 489.6 kB / 0.6899 GB, free: 2.457 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008219/0.8031, allocations: 443.3 kB / 0.6904 GB, free: 2.023 MB / 0.5137 GB Notification: Performance of SimCode: time 1.352e-06/0.8031, allocations: 3.938 kB / 0.6904 GB, free: 2.02 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2785/1.082, allocations: 47.6 MB / 0.7368 GB, free: 182.5 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000169/1.082, allocations: 294 kB / 0.7371 GB, free: 182.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.987/4.068, allocations: 4 kB / 0.7371 GB, free: 182.2 MB / 0.5294 GB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat does not exist to compare? outputFormat=mat