Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002133/0.002137, allocations: 189 kB / 16.4 MB, free: 5.621 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.244/2.244, allocations: 205.4 MB / 222.5 MB, free: 13.75 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001135/0.001135, allocations: 94.88 kB / 270.9 MB, free: 13.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005266/0.0005269, allocations: 11.98 kB / 327.1 MB, free: 14.97 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1012, allocations: 47.59 MB / 374.7 MB, free: 15.3 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition): time 0.4895/0.5907, allocations: 138.9 MB / 0.5016 GB, free: 2.395 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00486/0.5956, allocations: 2.387 MB / 0.5039 GB, free: 0 / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004405/0.5961, allocations: 4.047 kB / 0.5039 GB, free: 15.99 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008164/0.5969, allocations: 171.1 kB / 0.5041 GB, free: 15.83 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007944/0.5977, allocations: 231.3 kB / 0.5043 GB, free: 15.6 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00183/0.5996, allocations: 414.2 kB / 0.5047 GB, free: 15.2 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.001305/0.6009, allocations: 0.5896 MB / 0.5053 GB, free: 14.61 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002283/0.6011, allocations: 65.2 kB / 0.5053 GB, free: 14.54 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002698/0.6038, allocations: 0.7872 MB / 0.5061 GB, free: 13.75 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004584/0.6043, allocations: 211.3 kB / 0.5063 GB, free: 13.55 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001111/0.6044, allocations: 20 kB / 0.5063 GB, free: 13.53 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001671/0.6061, allocations: 431.5 kB / 0.5067 GB, free: 13.11 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003636/0.6065, allocations: 195.5 kB / 0.5069 GB, free: 12.91 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002563/0.6068, allocations: 137.5 kB / 0.507 GB, free: 12.77 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001619/0.6084, allocations: 0.8131 MB / 0.5078 GB, free: 11.96 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.6084, allocations: 0 / 0.5078 GB, free: 11.96 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.318e-06/0.6085, allocations: 0 / 0.5078 GB, free: 11.96 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.689e-06/0.6085, allocations: 3.938 kB / 0.5078 GB, free: 11.96 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.001723/0.6102, allocations: 0.6985 MB / 0.5085 GB, free: 11.21 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.069e-05/0.6103, allocations: 8.031 kB / 0.5085 GB, free: 11.2 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001883/0.6105, allocations: 82.53 kB / 0.5086 GB, free: 11.11 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009893/0.6115, allocations: 135.3 kB / 0.5087 GB, free: 10.98 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008097/0.6123, allocations: 357.4 kB / 0.5091 GB, free: 10.59 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.144e-05/0.6124, allocations: 28.94 kB / 0.5091 GB, free: 10.56 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001029/0.6125, allocations: 43.95 kB / 0.5091 GB, free: 10.52 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001423/0.6139, allocations: 0.5537 MB / 0.5097 GB, free: 9.949 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.436e-05/0.6139, allocations: 0 / 0.5097 GB, free: 9.949 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001054/0.6141, allocations: 24 kB / 0.5097 GB, free: 9.926 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.44e-05/0.6141, allocations: 8 kB / 0.5097 GB, free: 9.918 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001099/0.6152, allocations: 446.3 kB / 0.5101 GB, free: 9.484 MB / 394.7 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.005302/0.6205, allocations: 2.063 MB / 0.5121 GB, free: 7.246 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004011/0.6209, allocations: 158.5 kB / 0.5123 GB, free: 7.082 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.919e-05/0.621, allocations: 4 kB / 0.5123 GB, free: 7.078 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.915e-05/0.621, allocations: 30.56 kB / 0.5123 GB, free: 7.039 MB / 394.7 MB Notification: Performance of pre-optimization done (n=18): time 2.475e-06/0.6211, allocations: 3.938 kB / 0.5123 GB, free: 7.035 MB / 394.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: volume.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=23): time 0.0122/0.6333, allocations: 1.679 MB / 0.514 GB, free: 5.203 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.043e-05/0.6334, allocations: 59.36 kB / 0.514 GB, free: 5.133 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001458/0.6349, allocations: 473.7 kB / 0.5145 GB, free: 4.664 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 9.869e-05/0.635, allocations: 29.7 kB / 0.5145 GB, free: 4.629 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004949/0.6355, allocations: 372.7 kB / 0.5149 GB, free: 4.258 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002142/0.6358, allocations: 90.75 kB / 0.515 GB, free: 4.168 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.77e-05/0.6359, allocations: 12 kB / 0.515 GB, free: 4.156 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002911/0.6362, allocations: 334.8 kB / 0.5153 GB, free: 3.82 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007266/0.637, allocations: 133.2 kB / 0.5154 GB, free: 3.691 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001163/0.6382, allocations: 440.5 kB / 0.5158 GB, free: 3.113 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008693/0.6391, allocations: 223.8 kB / 0.516 GB, free: 2.895 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.269e-05/0.6392, allocations: 4 kB / 0.5161 GB, free: 2.891 MB / 394.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.00271/0.6419, allocations: 0.6129 MB / 0.5166 GB, free: 2.266 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.009e-05/0.642, allocations: 8 kB / 0.5167 GB, free: 2.258 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.842e-05/0.642, allocations: 12 kB / 0.5167 GB, free: 2.246 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004067/0.6424, allocations: 57.69 kB / 0.5167 GB, free: 2.184 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001157/0.6436, allocations: 143.7 kB / 0.5169 GB, free: 2.043 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002043/0.6457, allocations: 1.844 MB / 0.5187 GB, free: 48 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007987/0.6465, allocations: 39.97 kB / 0.5187 GB, free: 8 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000113/0.6467, allocations: 39.98 kB / 0.5187 GB, free: 15.97 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 71 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003945/0.6471, allocations: 213.5 kB / 0.5189 GB, free: 15.75 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001291/0.6472, allocations: 43.48 kB / 0.519 GB, free: 15.71 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008869/0.6481, allocations: 290.9 kB / 0.5193 GB, free: 15.41 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.015e-06/0.6482, allocations: 8 kB / 0.5193 GB, free: 15.4 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.6482, allocations: 0 / 0.5193 GB, free: 15.4 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007624/0.6489, allocations: 0.52 MB / 0.5198 GB, free: 14.79 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001688/0.6507, allocations: 0.7019 MB / 0.5205 GB, free: 14.03 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.6507, allocations: 3.938 kB / 0.5205 GB, free: 14.03 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005184/0.6512, allocations: 47.97 kB / 0.5205 GB, free: 13.98 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001312/0.6514, allocations: 24.84 kB / 0.5205 GB, free: 13.95 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.629e-05/0.6514, allocations: 15.94 kB / 0.5205 GB, free: 13.94 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001303/0.6527, allocations: 1.29 MB / 0.5218 GB, free: 12.52 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.6528, allocations: 0 / 0.5218 GB, free: 12.52 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001035/0.6538, allocations: 425.1 kB / 0.5222 GB, free: 12.08 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002099/0.654, allocations: 120.6 kB / 0.5223 GB, free: 11.95 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001093/0.6542, allocations: 11.98 kB / 0.5223 GB, free: 11.93 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005308/0.6547, allocations: 24.09 kB / 0.5224 GB, free: 11.91 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.279e-05/0.6548, allocations: 15.97 kB / 0.5224 GB, free: 11.89 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.259e-05/0.6549, allocations: 15.98 kB / 0.5224 GB, free: 11.88 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006086/0.6555, allocations: 323.1 kB / 0.5227 GB, free: 11.56 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.6555, allocations: 0 / 0.5227 GB, free: 11.56 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001257/0.6568, allocations: 207.9 kB / 0.5229 GB, free: 11.36 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (23): * Single equations (assignments): 22 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003447/0.6603, allocations: 1.254 MB / 0.5241 GB, free: 10.08 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001343/0.6616, allocations: 456.8 kB / 0.5246 GB, free: 9.621 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.574e-06/0.6617, allocations: 4 kB / 0.5246 GB, free: 9.617 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004188/0.6621, allocations: 206.8 kB / 0.5248 GB, free: 9.402 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002181/0.6643, allocations: 205.3 kB / 0.525 GB, free: 9.203 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2657/0.93, allocations: 9.747 MB / 0.5345 GB, free: 145.3 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004429/0.9305, allocations: 0.8311 MB / 0.5353 GB, free: 144.6 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004774/0.931, allocations: 153.1 kB / 0.5354 GB, free: 144.6 MB / 410.7 MB Notification: Performance of SimCode: time 1.162e-06/0.931, allocations: 0 / 0.5354 GB, free: 144.6 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.211/4.142, allocations: 14.26 MB / 0.5494 GB, free: 140.1 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition.fmu > Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.mat does not exist to compare? outputFormat=mat