Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="ModelicaTest_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009365/0.0009365, allocations: 98.75 kB / 16.99 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008945/0.0008947, allocations: 179.5 kB / 17.87 MB, free: 5.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.384/1.384, allocations: 223.2 MB / 241.8 MB, free: 392 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2398/0.2398, allocations: 44.23 MB / 337.1 MB, free: 2.891 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003521/0.0003522, allocations: 12 kB / 409.6 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1387/0.1391, allocations: 61.92 MB / 471.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.4803/0.6195, allocations: 143.8 MB / 0.6009 GB, free: 2.039 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.009594/0.6291, allocations: 6.559 MB / 0.6073 GB, free: 11.47 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009926/0.6301, allocations: 27.75 kB / 0.6074 GB, free: 11.44 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001026/0.6312, allocations: 334.4 kB / 0.6077 GB, free: 11.11 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003714/0.6349, allocations: 1.286 MB / 0.6089 GB, free: 9.828 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003076/0.638, allocations: 1.108 MB / 0.61 GB, free: 8.727 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001894/0.6399, allocations: 1.243 MB / 0.6112 GB, free: 7.48 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001015/0.6409, allocations: 0.6673 MB / 0.6119 GB, free: 6.809 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002719/0.6437, allocations: 1.313 MB / 0.6132 GB, free: 5.492 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002876/0.6465, allocations: 1.434 MB / 0.6146 GB, free: 4.055 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001947/0.6468, allocations: 60 kB / 0.6146 GB, free: 3.996 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002603/0.6494, allocations: 1.022 MB / 0.6156 GB, free: 2.973 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000648/0.65, allocations: 0.6002 MB / 0.6162 GB, free: 2.371 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004056/0.6504, allocations: 289.1 kB / 0.6165 GB, free: 2.082 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002431/0.6529, allocations: 1.905 MB / 0.6183 GB, free: 180 kB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.6529, allocations: 0 / 0.6183 GB, free: 180 kB / 446.1 MB Notification: Performance of FrontEnd: time 3.296e-06/0.6529, allocations: 0 / 0.6183 GB, free: 180 kB / 446.1 MB Notification: Performance of Transformations before backend: time 1.85e-05/0.6529, allocations: 7.938 kB / 0.6184 GB, free: 172 kB / 446.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.003341/0.6563, allocations: 1.454 MB / 0.6198 GB, free: 14.66 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.816e-05/0.6563, allocations: 12.03 kB / 0.6198 GB, free: 14.65 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002681/0.6566, allocations: 172.9 kB / 0.62 GB, free: 14.47 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00147/0.6581, allocations: 334.1 kB / 0.6203 GB, free: 14.14 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001485/0.6596, allocations: 0.7069 MB / 0.621 GB, free: 13.39 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001238/0.6597, allocations: 141.4 kB / 0.6211 GB, free: 13.24 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001725/0.6599, allocations: 107.9 kB / 0.6212 GB, free: 13.14 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002674/0.6626, allocations: 1.829 MB / 0.623 GB, free: 11.24 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.678e-05/0.6626, allocations: 0 / 0.623 GB, free: 11.24 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001382/0.6628, allocations: 51.98 kB / 0.623 GB, free: 11.19 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001082/0.6629, allocations: 93.89 kB / 0.6231 GB, free: 11.1 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002518/0.6654, allocations: 1.706 MB / 0.6248 GB, free: 9.391 MB / 462.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.009374/0.6748, allocations: 6.866 MB / 0.6315 GB, free: 2.051 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001172/0.676, allocations: 0.7918 MB / 0.6323 GB, free: 1.254 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001226/0.6761, allocations: 105.6 kB / 0.6324 GB, free: 1.133 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.386e-05/0.6762, allocations: 47.12 kB / 0.6324 GB, free: 1.078 MB / 462.1 MB Notification: Performance of pre-optimization done (n=60): time 3.947e-06/0.6762, allocations: 0 / 0.6324 GB, free: 1.078 MB / 462.1 MB Notification: Performance of matching and sorting (n=72): time 0.01092/0.6871, allocations: 4.18 MB / 0.6365 GB, free: 12.82 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.667e-05/0.6872, allocations: 115.5 kB / 0.6366 GB, free: 12.68 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001614/0.6888, allocations: 1.093 MB / 0.6377 GB, free: 11.57 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001422/0.689, allocations: 45.7 kB / 0.6377 GB, free: 11.52 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004395/0.6894, allocations: 0.5184 MB / 0.6382 GB, free: 10.99 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000274/0.6897, allocations: 264.3 kB / 0.6385 GB, free: 10.73 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.192e-05/0.6898, allocations: 20 kB / 0.6385 GB, free: 10.71 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.69, allocations: 345.9 kB / 0.6388 GB, free: 10.36 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009355/0.6909, allocations: 0.5953 MB / 0.6394 GB, free: 9.766 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001185/0.6921, allocations: 0.876 MB / 0.6403 GB, free: 8.77 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001067/0.6932, allocations: 0.7017 MB / 0.6409 GB, free: 8.07 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.172e-06/0.6932, allocations: 4 kB / 0.641 GB, free: 8.066 MB / 478.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.00332/0.6965, allocations: 2.027 MB / 0.6429 GB, free: 6.027 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.88e-05/0.6966, allocations: 8 kB / 0.6429 GB, free: 6.02 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.756e-05/0.6966, allocations: 8 kB / 0.6429 GB, free: 6.012 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004879/0.7015, allocations: 1.413 MB / 0.6443 GB, free: 4.605 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006218/0.7021, allocations: 147.8 kB / 0.6445 GB, free: 4.461 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002922/0.7051, allocations: 1.924 MB / 0.6463 GB, free: 2.508 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001299/0.7064, allocations: 119.7 kB / 0.6465 GB, free: 2.391 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001217/0.7065, allocations: 60 kB / 0.6465 GB, free: 2.332 MB / 478.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.0007831/0.7073, allocations: 398 kB / 0.6469 GB, free: 1.934 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002507/0.7076, allocations: 110.7 kB / 0.647 GB, free: 1.824 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002569/0.7101, allocations: 1.504 MB / 0.6485 GB, free: 316 kB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.187e-06/0.7102, allocations: 12 kB / 0.6485 GB, free: 304 kB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.7102, allocations: 4 kB / 0.6485 GB, free: 300 kB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.749e-06/0.7102, allocations: 3.984 kB / 0.6485 GB, free: 296 kB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004376/0.7146, allocations: 2.696 MB / 0.6511 GB, free: 13.54 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.615e-06/0.7146, allocations: 4 kB / 0.6511 GB, free: 13.53 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001774/0.7164, allocations: 319.8 kB / 0.6514 GB, free: 13.22 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001833/0.7166, allocations: 68.81 kB / 0.6515 GB, free: 13.15 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.147e-05/0.7167, allocations: 39.92 kB / 0.6515 GB, free: 13.11 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002332/0.719, allocations: 2.856 MB / 0.6543 GB, free: 9.992 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.719, allocations: 3.953 kB / 0.6543 GB, free: 9.988 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002982/0.722, allocations: 1.924 MB / 0.6562 GB, free: 8.027 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009475/0.723, allocations: 347.8 kB / 0.6565 GB, free: 7.668 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002058/0.7232, allocations: 31.95 kB / 0.6566 GB, free: 7.637 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009583/0.7242, allocations: 83.81 kB / 0.6566 GB, free: 7.555 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001704/0.7243, allocations: 64.56 kB / 0.6567 GB, free: 7.488 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001238/0.7245, allocations: 59.95 kB / 0.6568 GB, free: 7.43 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001123/0.7256, allocations: 0.7969 MB / 0.6575 GB, free: 6.621 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7256, allocations: 0 / 0.6575 GB, free: 6.621 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001589/0.7272, allocations: 483.9 kB / 0.658 GB, free: 6.148 MB / 494.1 MB 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.005176/0.7324, allocations: 3.099 MB / 0.661 GB, free: 3.023 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002684/0.7351, allocations: 1.481 MB / 0.6625 GB, free: 1.543 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.73e-06/0.7351, allocations: 0.6562 kB / 0.6625 GB, free: 1.543 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001627/0.7368, allocations: 0.8624 MB / 0.6633 GB, free: 0.668 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003502/0.7403, allocations: 0.7061 MB / 0.664 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01789/0.7582, allocations: 14.77 MB / 0.6784 GB, free: 0.8086 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009288/0.7591, allocations: 1.195 MB / 0.6796 GB, free: 15.58 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.002052/0.7612, allocations: 493.6 kB / 0.6801 GB, free: 15.1 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007423/0.762, allocations: 447.3 kB / 0.6805 GB, free: 14.66 MB / 0.5137 GB Notification: Performance of SimCode: time 1.533e-06/0.762, allocations: 0 / 0.6805 GB, free: 14.66 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.356/1.118, allocations: 47.59 MB / 0.727 GB, free: 198.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001607/1.118, allocations: 284.4 kB / 0.7272 GB, free: 197.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.04/4.158, allocations: 6.266 kB / 0.7273 GB, free: 197.9 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat does not exist to compare? outputFormat=mat