Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="ModelicaTest_3_2_3_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.0009209/0.0009209, allocations: 96.12 kB / 15.69 MB, free: 480 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001037/0.001038, allocations: 174.8 kB / 16.57 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.562/1.562, allocations: 205.4 MB / 222.7 MB, free: 5.684 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4543/0.4543, allocations: 43.54 MB / 314.5 MB, free: 9.043 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005499/0.00055, allocations: 12 kB / 384 MB, free: 8.152 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1474/0.148, allocations: 58.85 MB / 442.9 MB, free: 13.2 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.4765/0.6245, allocations: 143.8 MB / 0.5729 GB, free: 11.93 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01441/0.6389, allocations: 8.391 MB / 0.5811 GB, free: 3.527 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001393/0.6404, allocations: 23.81 kB / 0.5811 GB, free: 3.504 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00138/0.6418, allocations: 346.3 kB / 0.5815 GB, free: 3.164 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005884/0.6477, allocations: 1.489 MB / 0.5829 GB, free: 1.676 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004228/0.652, allocations: 1.264 MB / 0.5842 GB, free: 436 kB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002355/0.6543, allocations: 1.247 MB / 0.5854 GB, free: 15.18 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001258/0.6556, allocations: 0.6746 MB / 0.586 GB, free: 14.51 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003442/0.659, allocations: 1.306 MB / 0.5873 GB, free: 13.2 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003158/0.6622, allocations: 1.442 MB / 0.5887 GB, free: 11.75 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002184/0.6625, allocations: 56 kB / 0.5888 GB, free: 11.7 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003606/0.6661, allocations: 1.222 MB / 0.59 GB, free: 10.48 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006232/0.6667, allocations: 0.6042 MB / 0.5906 GB, free: 9.871 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003894/0.6671, allocations: 285.1 kB / 0.5908 GB, free: 9.586 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00264/0.6698, allocations: 1.984 MB / 0.5928 GB, free: 7.609 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.6698, allocations: 0 / 0.5928 GB, free: 7.609 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.6698, allocations: 0 / 0.5928 GB, free: 7.609 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.598e-05/0.6698, allocations: 0 / 0.5928 GB, free: 7.609 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.003394/0.6732, allocations: 1.423 MB / 0.5942 GB, free: 6.137 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.108e-05/0.6733, allocations: 8.031 kB / 0.5942 GB, free: 6.129 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002563/0.6735, allocations: 172.9 kB / 0.5943 GB, free: 5.949 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001541/0.6751, allocations: 326.2 kB / 0.5946 GB, free: 5.629 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001504/0.6766, allocations: 0.7146 MB / 0.5953 GB, free: 4.875 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001663/0.6768, allocations: 141.4 kB / 0.5955 GB, free: 4.723 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001784/0.677, allocations: 108 kB / 0.5956 GB, free: 4.617 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00292/0.6799, allocations: 1.825 MB / 0.5974 GB, free: 2.723 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.217e-05/0.6799, allocations: 3.906 kB / 0.5974 GB, free: 2.719 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001554/0.6801, allocations: 59.92 kB / 0.5974 GB, free: 2.66 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001123/0.6802, allocations: 85.95 kB / 0.5975 GB, free: 2.578 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002758/0.683, allocations: 1.706 MB / 0.5992 GB, free: 0.8711 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.01091/0.6939, allocations: 6.891 MB / 0.6059 GB, free: 9.516 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001335/0.6953, allocations: 0.7946 MB / 0.6067 GB, free: 8.715 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000215/0.6955, allocations: 129.5 kB / 0.6068 GB, free: 8.574 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.974e-05/0.6956, allocations: 47.06 kB / 0.6068 GB, free: 8.52 MB / 478.1 MB Notification: Performance of pre-optimization done (n=60): time 3.256e-06/0.6956, allocations: 4 kB / 0.6068 GB, free: 8.516 MB / 478.1 MB Notification: Performance of matching and sorting (n=72): time 0.01172/0.7073, allocations: 4.173 MB / 0.6109 GB, free: 4.266 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.975e-05/0.7074, allocations: 115.4 kB / 0.611 GB, free: 4.129 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00148/0.7089, allocations: 1.101 MB / 0.6121 GB, free: 3.004 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001137/0.709, allocations: 41.7 kB / 0.6121 GB, free: 2.957 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004084/0.7095, allocations: 0.5223 MB / 0.6127 GB, free: 2.426 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002465/0.7097, allocations: 268.2 kB / 0.6129 GB, free: 2.16 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.411e-05/0.7098, allocations: 20 kB / 0.6129 GB, free: 2.141 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.7099, allocations: 345.9 kB / 0.6133 GB, free: 1.797 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001038/0.711, allocations: 0.5914 MB / 0.6138 GB, free: 1.203 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001162/0.7122, allocations: 0.8721 MB / 0.6147 GB, free: 216 kB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001054/0.7132, allocations: 0.7095 MB / 0.6154 GB, free: 15.5 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.628e-06/0.7132, allocations: 0 / 0.6154 GB, free: 15.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.00325/0.7165, allocations: 2.02 MB / 0.6174 GB, free: 13.47 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.866e-05/0.7165, allocations: 8 kB / 0.6174 GB, free: 13.46 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.475e-05/0.7166, allocations: 8 kB / 0.6174 GB, free: 13.46 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004997/0.7216, allocations: 1.383 MB / 0.6187 GB, free: 12.07 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006492/0.7222, allocations: 139.8 kB / 0.6189 GB, free: 11.93 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002961/0.7252, allocations: 1.932 MB / 0.6207 GB, free: 9.977 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0013/0.7265, allocations: 107.3 kB / 0.6208 GB, free: 9.875 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001254/0.7267, allocations: 67.98 kB / 0.6209 GB, free: 9.809 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.000839/0.7275, allocations: 401.4 kB / 0.6213 GB, free: 9.406 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002035/0.7277, allocations: 114.8 kB / 0.6214 GB, free: 9.293 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002487/0.7302, allocations: 1.397 MB / 0.6228 GB, free: 7.887 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.044e-05/0.7302, allocations: 8 kB / 0.6228 GB, free: 7.879 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.076e-06/0.7302, allocations: 0 / 0.6228 GB, free: 7.879 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.826e-06/0.7303, allocations: 7.984 kB / 0.6228 GB, free: 7.871 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004505/0.7348, allocations: 2.704 MB / 0.6254 GB, free: 5.102 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.778e-06/0.7348, allocations: 0 / 0.6254 GB, free: 5.102 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001774/0.7366, allocations: 319.6 kB / 0.6257 GB, free: 4.789 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001909/0.7368, allocations: 72.81 kB / 0.6258 GB, free: 4.715 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.048e-05/0.7369, allocations: 35.97 kB / 0.6258 GB, free: 4.68 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002695/0.7396, allocations: 2.848 MB / 0.6286 GB, free: 1.57 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-05/0.7396, allocations: 5.719 kB / 0.6286 GB, free: 1.566 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2983/1.038, allocations: 1.921 MB / 0.6305 GB, free: 151.4 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001169/1.039, allocations: 346.7 kB / 0.6308 GB, free: 151.3 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002141/1.039, allocations: 32.16 kB / 0.6309 GB, free: 151.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001009/1.04, allocations: 79.66 kB / 0.6309 GB, free: 151.3 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001877/1.041, allocations: 65.53 kB / 0.631 GB, free: 151.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001179/1.041, allocations: 59.92 kB / 0.6311 GB, free: 151.3 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0011/1.042, allocations: 0.7992 MB / 0.6318 GB, free: 151.2 MB / 494.1 MB Notification: Performance of sort global known variables: time 7.32e-07/1.042, allocations: 0 / 0.6318 GB, free: 151.2 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001828/1.044, allocations: 0.5134 MB / 0.6323 GB, free: 151.2 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.006199/1.05, allocations: 3.181 MB / 0.6354 GB, free: 150.4 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003696/1.054, allocations: 1.473 MB / 0.6369 GB, free: 150.4 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/1.054, allocations: 3.469 kB / 0.6369 GB, free: 150.4 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001781/1.055, allocations: 0.8675 MB / 0.6377 GB, free: 150.3 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003419/1.059, allocations: 0.7201 MB / 0.6384 GB, free: 150.3 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0151/1.074, allocations: 14.79 MB / 0.6529 GB, free: 141.3 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008088/1.075, allocations: 1.202 MB / 0.6541 GB, free: 140.5 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001773/1.077, allocations: 408.7 kB / 0.6544 GB, free: 140.5 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006884/1.077, allocations: 436.5 kB / 0.6549 GB, free: 140.2 MB / 494.1 MB Notification: Performance of SimCode: time 1.252e-06/1.077, allocations: 0 / 0.6549 GB, free: 140.2 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09808/1.175, allocations: 48.68 MB / 0.7024 GB, free: 114.3 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002947/1.176, allocations: 303.8 kB / 0.7027 GB, free: 114 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.105/4.281, allocations: 3.953 kB / 0.7027 GB, free: 113.9 MB / 494.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas.fmu > ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat does not exist to compare? outputFormat=mat