Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.Tests.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) 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(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_Tests_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.001152/0.001152, allocations: 95.97 kB / 16.95 MB, free: 6.113 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.001541/0.001541, allocations: 178 kB / 17.84 MB, free: 5.73 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.518/1.518, allocations: 205.4 MB / 224 MB, free: 13.06 MB / 190.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.0004304/0.0004305, allocations: 8 kB / 280.9 MB, free: 3.621 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.101, allocations: 47.58 MB / 328.5 MB, free: 3.965 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.3946/0.4956, allocations: 159.5 MB / 488 MB, free: 10.57 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005137/0.5009, allocations: 3.561 MB / 491.5 MB, free: 7.008 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004834/0.5014, allocations: 8 kB / 491.5 MB, free: 7 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006633/0.502, allocations: 159 kB / 491.7 MB, free: 6.844 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007082/0.5028, allocations: 350.2 kB / 492 MB, free: 6.5 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001549/0.5043, allocations: 405.7 kB / 492.4 MB, free: 6.105 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001713/0.506, allocations: 1.306 MB / 493.7 MB, free: 4.793 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004129/0.5065, allocations: 205.4 kB / 493.9 MB, free: 4.594 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003101/0.5096, allocations: 1.125 MB / 495 MB, free: 3.465 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005773/0.5102, allocations: 450.8 kB / 495.5 MB, free: 3.023 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.465e-05/0.5103, allocations: 32 kB / 495.5 MB, free: 2.992 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00129/0.5116, allocations: 0.6281 MB / 496.1 MB, free: 2.363 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003631/0.512, allocations: 423.1 kB / 496.6 MB, free: 1.949 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002137/0.5122, allocations: 193.3 kB / 496.7 MB, free: 1.754 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00123/0.5134, allocations: 1.225 MB / 498 MB, free: 0.5273 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.5135, allocations: 3.984 kB / 498 MB, free: 0.5234 MB / 382.1 MB Notification: Performance of FrontEnd: time 5.32e-06/0.5135, allocations: 4 kB / 498 MB, free: 0.5195 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.333e-05/0.5135, allocations: 0 / 498 MB, free: 0.5195 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.001496/0.515, allocations: 0.8934 MB / 498.9 MB, free: 15.58 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/0.5151, allocations: 8.031 kB / 498.9 MB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001433/0.5152, allocations: 118.5 kB / 499 MB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006556/0.5159, allocations: 155 kB / 499.1 MB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006736/0.5166, allocations: 476.8 kB / 499.6 MB, free: 14.79 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.761e-05/0.5166, allocations: 49.31 kB / 499.7 MB, free: 14.74 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.809e-05/0.5168, allocations: 71.98 kB / 499.7 MB, free: 14.67 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001645/0.5184, allocations: 0.9474 MB / 0.4889 GB, free: 13.71 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.713e-05/0.5184, allocations: 3.906 kB / 0.4889 GB, free: 13.71 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.224e-05/0.5185, allocations: 32 kB / 0.489 GB, free: 13.68 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.716e-05/0.5186, allocations: 46.67 kB / 0.489 GB, free: 13.63 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001166/0.5198, allocations: 0.8589 MB / 0.4899 GB, free: 12.77 MB / 398.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.005146/0.5249, allocations: 3.441 MB / 0.4932 GB, free: 9.055 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008251/0.5258, allocations: 0.6307 MB / 0.4938 GB, free: 8.414 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004583/0.5262, allocations: 370.1 kB / 0.4942 GB, free: 8.051 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.244e-05/0.5263, allocations: 24.53 kB / 0.4942 GB, free: 8.027 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.649e-05/0.5263, allocations: 43.12 kB / 0.4943 GB, free: 7.977 MB / 398.1 MB Notification: Performance of pre-optimization done (n=59): time 3.397e-06/0.5264, allocations: 0 / 0.4943 GB, free: 7.977 MB / 398.1 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.Xi[6] 2: volume.medium.Xi[5] 3: volume.medium.Xi[4] 4: volume.medium.Xi[3] 5: volume.medium.Xi[2] 6: volume.medium.Xi[1] 7: volume.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=71): time 0.0137/0.5401, allocations: 6.218 MB / 0.5003 GB, free: 1.363 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001302/0.5402, allocations: 56.06 kB / 0.5004 GB, free: 1.297 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006264/0.5409, allocations: 0.5487 MB / 0.5009 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.68e-05/0.541, allocations: 41.7 kB / 0.501 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001893/0.5412, allocations: 280.5 kB / 0.5012 GB, free: 428 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001862/0.5414, allocations: 248.4 kB / 0.5015 GB, free: 176 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.727e-05/0.5414, allocations: 16 kB / 0.5015 GB, free: 160 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.5416, allocations: 366.8 kB / 0.5018 GB, free: 15.79 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005785/0.5422, allocations: 437.7 kB / 0.5022 GB, free: 15.36 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007544/0.5429, allocations: 0.5232 MB / 0.5028 GB, free: 14.82 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006905/0.5436, allocations: 0.491 MB / 0.5032 GB, free: 14.33 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.5436, allocations: 0 / 0.5032 GB, free: 14.33 MB / 414.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002069/0.5457, allocations: 1.347 MB / 0.5046 GB, free: 12.96 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.244e-05/0.5457, allocations: 8 kB / 0.5046 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.104e-06/0.5458, allocations: 0 / 0.5046 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005943/0.5464, allocations: 334.7 kB / 0.5049 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009749/0.5473, allocations: 179.8 kB / 0.505 GB, free: 12.42 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008675/0.556, allocations: 10.24 MB / 0.515 GB, free: 1.227 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000835/0.5569, allocations: 79.97 kB / 0.5151 GB, free: 1.148 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001412/0.5571, allocations: 40 kB / 0.5152 GB, free: 1.109 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (80): * Single equations (assignments): 72 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 8 {1 1,1 1,1 1,1 1,1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0005583/0.5577, allocations: 277.5 kB / 0.5154 GB, free: 0.8281 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003405/0.558, allocations: 71.28 kB / 0.5155 GB, free: 0.7578 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002378/0.5604, allocations: 1.29 MB / 0.5168 GB, free: 15.43 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.494e-06/0.5604, allocations: 4 kB / 0.5168 GB, free: 15.42 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.5604, allocations: 4 kB / 0.5168 GB, free: 15.42 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001837/0.5623, allocations: 1.606 MB / 0.5183 GB, free: 13.65 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003675/0.566, allocations: 2.268 MB / 0.5205 GB, free: 11.31 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.566, allocations: 4 kB / 0.5205 GB, free: 11.31 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001107/0.5671, allocations: 219.7 kB / 0.5208 GB, free: 11.09 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001797/0.5673, allocations: 60.8 kB / 0.5208 GB, free: 11.03 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.201e-05/0.5674, allocations: 59.88 kB / 0.5209 GB, free: 10.97 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001467/0.5689, allocations: 1.428 MB / 0.5223 GB, free: 9.41 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.5689, allocations: 0 / 0.5223 GB, free: 9.41 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002439/0.5714, allocations: 1.598 MB / 0.5238 GB, free: 7.785 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002891/0.5717, allocations: 156.3 kB / 0.524 GB, free: 7.613 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001568/0.5718, allocations: 27.98 kB / 0.524 GB, free: 7.586 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000797/0.5726, allocations: 79.78 kB / 0.5241 GB, free: 7.508 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000111/0.5728, allocations: 60.52 kB / 0.5241 GB, free: 7.449 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001303/0.5729, allocations: 55.95 kB / 0.5242 GB, free: 7.395 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0006084/0.5735, allocations: 403.1 kB / 0.5246 GB, free: 6.996 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.5735, allocations: 0 / 0.5246 GB, free: 6.996 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001256/0.5748, allocations: 351.9 kB / 0.5249 GB, free: 6.652 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (77): * 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): 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.004405/0.5792, allocations: 2.544 MB / 0.5274 GB, free: 4.074 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002759/0.582, allocations: 1.865 MB / 0.5292 GB, free: 2.121 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.615e-06/0.582, allocations: 7.938 kB / 0.5292 GB, free: 2.113 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001079/0.5831, allocations: 0.6818 MB / 0.5299 GB, free: 1.414 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002525/0.5856, allocations: 495.4 kB / 0.5304 GB, free: 0.9336 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2761/0.8618, allocations: 6.11 MB / 0.5363 GB, free: 71.7 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001001/0.8628, allocations: 0.9706 MB / 0.5373 GB, free: 70.99 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002211/0.865, allocations: 278 kB / 0.5375 GB, free: 70.94 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007266/0.8658, allocations: 277.3 kB / 0.5378 GB, free: 70.93 MB / 430.1 MB Notification: Performance of SimCode: time 1.693e-06/0.8658, allocations: 0 / 0.5378 GB, free: 70.93 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06786/0.9337, allocations: 31.06 MB / 0.5681 GB, free: 54.57 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00016/0.9339, allocations: 239.2 kB / 0.5684 GB, free: 54.27 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.873/3.807, allocations: 4 kB / 0.5684 GB, free: 54.27 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGas_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGas.fmu > Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat does not exist to compare? outputFormat=mat