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.000931/0.0009311, allocations: 102.9 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001126/0.001127, allocations: 192.5 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.409/1.409, allocations: 227.4 MB / 246 MB, free: 11.81 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2187/0.2187, allocations: 45.92 MB / 344.1 MB, free: 12.19 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003317/0.0003318, allocations: 4 kB / 418.2 MB, free: 20.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.143/0.1433, allocations: 63.48 MB / 481.7 MB, free: 5.254 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.5398/0.6832, allocations: 161.7 MB / 0.6282 GB, free: 4.613 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.009694/0.6929, allocations: 6.184 MB / 0.6343 GB, free: 14.41 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001251/0.6942, allocations: 27.75 kB / 0.6343 GB, free: 14.39 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001446/0.6957, allocations: 302.1 kB / 0.6346 GB, free: 14.09 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:784:36-785:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:782:36-783:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.005847/0.7016, allocations: 1.422 MB / 0.636 GB, free: 12.67 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004334/0.7059, allocations: 1.09 MB / 0.637 GB, free: 11.58 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.003979/0.7099, allocations: 2.664 MB / 0.6397 GB, free: 8.914 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001439/0.7114, allocations: 0.6167 MB / 0.6403 GB, free: 8.297 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004242/0.7156, allocations: 1.612 MB / 0.6418 GB, free: 6.68 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003445/0.7191, allocations: 1.73 MB / 0.6435 GB, free: 4.945 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000407/0.7195, allocations: 60 kB / 0.6436 GB, free: 4.887 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003312/0.7228, allocations: 1.252 MB / 0.6448 GB, free: 3.633 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00101/0.7239, allocations: 0.6742 MB / 0.6455 GB, free: 2.957 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001065/0.725, allocations: 289.1 kB / 0.6457 GB, free: 2.668 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003086/0.7281, allocations: 1.98 MB / 0.6477 GB, free: 0.6836 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.7281, allocations: 0 / 0.6477 GB, free: 0.6836 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.7281, allocations: 0 / 0.6477 GB, free: 0.6836 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.592e-05/0.7282, allocations: 0 / 0.6477 GB, free: 0.6836 MB / 478.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.004225/0.7324, allocations: 1.45 MB / 0.6491 GB, free: 15.18 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.865e-05/0.7325, allocations: 16.5 kB / 0.6491 GB, free: 15.17 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005355/0.733, allocations: 176.9 kB / 0.6493 GB, free: 14.98 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001635/0.7346, allocations: 322.2 kB / 0.6496 GB, free: 14.67 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001557/0.7362, allocations: 0.7263 MB / 0.6503 GB, free: 13.9 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001842/0.7364, allocations: 141.4 kB / 0.6504 GB, free: 13.75 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000306/0.7367, allocations: 107.9 kB / 0.6505 GB, free: 13.64 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003226/0.74, allocations: 1.833 MB / 0.6523 GB, free: 11.74 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.459e-05/0.74, allocations: 3.938 kB / 0.6523 GB, free: 11.74 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001734/0.7402, allocations: 51.94 kB / 0.6524 GB, free: 11.69 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001268/0.7403, allocations: 93.95 kB / 0.6525 GB, free: 11.6 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002977/0.7433, allocations: 1.702 MB / 0.6541 GB, free: 9.891 MB / 494.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.01071/0.754, allocations: 6.875 MB / 0.6608 GB, free: 2.543 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001432/0.7555, allocations: 0.8648 MB / 0.6617 GB, free: 1.672 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006707/0.7562, allocations: 442.3 kB / 0.6621 GB, free: 1.238 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001675/0.7564, allocations: 109.7 kB / 0.6622 GB, free: 1.109 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.664e-05/0.7565, allocations: 47.12 kB / 0.6622 GB, free: 1.055 MB / 494.1 MB Notification: Performance of pre-optimization done (n=60): time 3.466e-06/0.7565, allocations: 0 / 0.6622 GB, free: 1.055 MB / 494.1 MB Notification: Performance of matching and sorting (n=72): time 0.01111/0.7676, allocations: 4.129 MB / 0.6663 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.205e-05/0.7677, allocations: 115.5 kB / 0.6664 GB, free: 12.72 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001725/0.7694, allocations: 1.089 MB / 0.6674 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001534/0.7696, allocations: 45.7 kB / 0.6675 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004655/0.7701, allocations: 0.5261 MB / 0.668 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002614/0.7704, allocations: 272.2 kB / 0.6683 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.219e-05/0.7705, allocations: 20 kB / 0.6683 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001494/0.7706, allocations: 345.9 kB / 0.6686 GB, free: 10.39 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009538/0.7716, allocations: 0.5719 MB / 0.6692 GB, free: 9.812 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001183/0.7728, allocations: 0.8604 MB / 0.67 GB, free: 8.832 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001088/0.7739, allocations: 0.69 MB / 0.6707 GB, free: 8.145 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.107e-06/0.7739, allocations: 7.953 kB / 0.6707 GB, free: 8.137 MB / 0.4981 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003265/0.7772, allocations: 1.985 MB / 0.6726 GB, free: 6.141 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.698e-05/0.7772, allocations: 8 kB / 0.6726 GB, free: 6.133 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.819e-05/0.7772, allocations: 8 kB / 0.6726 GB, free: 6.125 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004652/0.7819, allocations: 1.411 MB / 0.674 GB, free: 4.719 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006665/0.7826, allocations: 143.8 kB / 0.6742 GB, free: 4.578 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003303/0.7859, allocations: 1.924 MB / 0.676 GB, free: 2.625 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001231/0.7872, allocations: 103.8 kB / 0.6761 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001688/0.7873, allocations: 75.92 kB / 0.6762 GB, free: 2.449 MB / 0.4981 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 (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.0008898/0.7882, allocations: 393.5 kB / 0.6766 GB, free: 2.055 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003169/0.7886, allocations: 114.8 kB / 0.6767 GB, free: 1.941 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002816/0.7914, allocations: 1.483 MB / 0.6781 GB, free: 460 kB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.153e-05/0.7914, allocations: 8 kB / 0.6782 GB, free: 452 kB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.268e-06/0.7914, allocations: 4 kB / 0.6782 GB, free: 448 kB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.998e-06/0.7914, allocations: 11.94 kB / 0.6782 GB, free: 436 kB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004691/0.7961, allocations: 2.668 MB / 0.6808 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.578e-06/0.7962, allocations: 0 / 0.6808 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001697/0.7979, allocations: 323.6 kB / 0.6811 GB, free: 13.38 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001971/0.7981, allocations: 68.78 kB / 0.6811 GB, free: 13.31 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.976e-05/0.7982, allocations: 35.94 kB / 0.6812 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0028/0.801, allocations: 2.844 MB / 0.684 GB, free: 10.16 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.801, allocations: 4.156 kB / 0.684 GB, free: 10.16 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00365/0.8047, allocations: 1.879 MB / 0.6858 GB, free: 8.258 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001221/0.8059, allocations: 343.7 kB / 0.6861 GB, free: 7.902 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003558/0.8063, allocations: 31.92 kB / 0.6862 GB, free: 7.871 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001158/0.8074, allocations: 87.83 kB / 0.6862 GB, free: 7.785 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001774/0.8076, allocations: 60.5 kB / 0.6863 GB, free: 7.723 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001686/0.8078, allocations: 67.95 kB / 0.6864 GB, free: 7.656 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001516/0.8093, allocations: 0.7852 MB / 0.6871 GB, free: 6.859 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8093, allocations: 0 / 0.6871 GB, free: 6.859 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001973/0.8113, allocations: 491.9 kB / 0.6876 GB, free: 6.379 MB / 0.5137 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.006345/0.8177, allocations: 3.001 MB / 0.6905 GB, free: 3.352 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.003119/0.8208, allocations: 1.451 MB / 0.6919 GB, free: 1.902 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 9.218e-06/0.8209, allocations: 8.781 kB / 0.692 GB, free: 1.895 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001677/0.8225, allocations: 0.8496 MB / 0.6928 GB, free: 1.035 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003667/0.8262, allocations: 0.7248 MB / 0.6935 GB, free: 324 kB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01785/0.8441, allocations: 9.344 MB / 0.7026 GB, free: 6.637 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00114/0.8453, allocations: 1.176 MB / 0.7038 GB, free: 5.43 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.002/0.8473, allocations: 489 kB / 0.7042 GB, free: 4.953 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008715/0.8482, allocations: 443.3 kB / 0.7047 GB, free: 4.52 MB / 0.5294 GB Notification: Performance of SimCode: time 8.82e-07/0.8482, allocations: 0 / 0.7047 GB, free: 4.52 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3791/1.227, allocations: 46.99 MB / 0.7505 GB, free: 169.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001647/1.228, allocations: 292.6 kB / 0.7508 GB, free: 169.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.049/4.277, allocations: 3.094 kB / 0.7508 GB, free: 169.4 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