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.001122/0.001122, allocations: 98.16 kB / 16.94 MB, free: 5.984 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.0008973/0.0008975, allocations: 177.1 kB / 17.82 MB, free: 5.652 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.477/1.477, allocations: 205.4 MB / 224 MB, free: 13.17 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.0006026/0.0006027, allocations: 12 kB / 280.9 MB, free: 3.641 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.117, allocations: 47.57 MB / 328.4 MB, free: 4 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.3935/0.5105, allocations: 138.8 MB / 467.3 MB, free: 14.02 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003131/0.5137, allocations: 2.362 MB / 469.6 MB, free: 11.66 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003143/0.5141, allocations: 7.938 kB / 469.6 MB, free: 11.65 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007827/0.5149, allocations: 187.2 kB / 469.8 MB, free: 11.46 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005624/0.5154, allocations: 223.4 kB / 470 MB, free: 11.25 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001363/0.5168, allocations: 425.2 kB / 470.4 MB, free: 10.83 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007863/0.5176, allocations: 0.5818 MB / 471 MB, free: 10.25 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002819/0.5179, allocations: 197.5 kB / 471.2 MB, free: 10.05 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001711/0.5196, allocations: 0.8029 MB / 472 MB, free: 9.246 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003197/0.52, allocations: 267.2 kB / 472.3 MB, free: 8.984 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.664e-05/0.52, allocations: 28 kB / 472.3 MB, free: 8.957 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001007/0.5211, allocations: 439.5 kB / 472.7 MB, free: 8.527 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003053/0.5214, allocations: 379.2 kB / 473.1 MB, free: 8.156 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001657/0.5215, allocations: 189.4 kB / 473.3 MB, free: 7.965 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001072/0.5226, allocations: 1.172 MB / 474.5 MB, free: 6.793 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.5226, allocations: 0 / 474.5 MB, free: 6.793 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.5226, allocations: 0 / 474.5 MB, free: 6.793 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.568e-06/0.5227, allocations: 0 / 474.5 MB, free: 6.793 MB / 366.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.00148/0.5241, allocations: 0.8973 MB / 475.4 MB, free: 5.848 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.5242, allocations: 8.031 kB / 475.4 MB, free: 5.84 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001495/0.5243, allocations: 126.4 kB / 475.5 MB, free: 5.707 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006591/0.525, allocations: 163 kB / 475.7 MB, free: 5.547 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008386/0.5259, allocations: 469 kB / 476.1 MB, free: 5.047 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.618e-05/0.5259, allocations: 49.27 kB / 476.2 MB, free: 5 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.748e-05/0.526, allocations: 64 kB / 476.2 MB, free: 4.938 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001511/0.5276, allocations: 0.9474 MB / 477.2 MB, free: 3.984 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.413e-05/0.5276, allocations: 3.906 kB / 477.2 MB, free: 3.98 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.746e-05/0.5277, allocations: 28 kB / 477.2 MB, free: 3.953 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.473e-05/0.5277, allocations: 45.98 kB / 477.2 MB, free: 3.906 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001222/0.529, allocations: 0.8744 MB / 478.1 MB, free: 3.031 MB / 366.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.00553/0.5345, allocations: 3.379 MB / 481.5 MB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007949/0.5353, allocations: 0.6307 MB / 482.1 MB, free: 14.74 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.756e-05/0.5354, allocations: 20.55 kB / 482.1 MB, free: 14.72 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.104e-05/0.5354, allocations: 43.12 kB / 482.2 MB, free: 14.67 MB / 382.1 MB Notification: Performance of pre-optimization done (n=59): time 2.344e-06/0.5354, allocations: 0 / 482.2 MB, free: 14.67 MB / 382.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.01516/0.5506, allocations: 6.17 MB / 488.4 MB, free: 8.105 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.499e-05/0.5507, allocations: 64 kB / 488.4 MB, free: 8.031 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006261/0.5513, allocations: 0.5408 MB / 489 MB, free: 7.484 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002048/0.5516, allocations: 41.7 kB / 489 MB, free: 7.438 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001842/0.5517, allocations: 280.5 kB / 489.3 MB, free: 7.16 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001835/0.5519, allocations: 252.4 kB / 489.5 MB, free: 6.91 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.348e-05/0.552, allocations: 12 kB / 489.5 MB, free: 6.898 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.5521, allocations: 374.8 kB / 489.9 MB, free: 6.523 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000574/0.5527, allocations: 445.7 kB / 490.3 MB, free: 6.09 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006271/0.5534, allocations: 0.5038 MB / 490.8 MB, free: 5.566 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00073/0.5541, allocations: 0.5027 MB / 491.3 MB, free: 5.066 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.5541, allocations: 0 / 491.3 MB, free: 5.066 MB / 382.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002033/0.5561, allocations: 1.335 MB / 492.7 MB, free: 3.703 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.185e-05/0.5562, allocations: 8.156 kB / 492.7 MB, free: 3.695 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.256e-06/0.5562, allocations: 4 kB / 492.7 MB, free: 3.691 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005777/0.5568, allocations: 334.6 kB / 493 MB, free: 3.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009469/0.5577, allocations: 179.8 kB / 493.2 MB, free: 3.164 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009268/0.567, allocations: 10.29 MB / 0.4917 GB, free: 7.914 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009343/0.568, allocations: 79.91 kB / 0.4918 GB, free: 7.836 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.935e-05/0.5681, allocations: 51.98 kB / 0.4918 GB, free: 7.785 MB / 398.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.0005831/0.5687, allocations: 273.5 kB / 0.4921 GB, free: 7.508 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00037/0.5691, allocations: 63.34 kB / 0.4921 GB, free: 7.445 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002052/0.5712, allocations: 1.279 MB / 0.4934 GB, free: 6.129 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.496e-06/0.5712, allocations: 8 kB / 0.4934 GB, free: 6.121 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.5712, allocations: 0 / 0.4934 GB, free: 6.121 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002055/0.5733, allocations: 1.613 MB / 0.495 GB, free: 4.344 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003698/0.577, allocations: 2.264 MB / 0.4972 GB, free: 2.008 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.577, allocations: 0 / 0.4972 GB, free: 2.008 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001098/0.5781, allocations: 223.8 kB / 0.4974 GB, free: 1.789 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003078/0.5784, allocations: 72.73 kB / 0.4975 GB, free: 1.715 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.342e-05/0.5785, allocations: 43.91 kB / 0.4975 GB, free: 1.672 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001438/0.58, allocations: 1.44 MB / 0.4989 GB, free: 100 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.287e-06/0.58, allocations: 3.938 kB / 0.4989 GB, free: 96 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002438/0.5824, allocations: 1.626 MB / 0.5005 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003107/0.5828, allocations: 152.3 kB / 0.5006 GB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001175/0.5829, allocations: 20 kB / 0.5007 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008632/0.5838, allocations: 79.78 kB / 0.5007 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001865/0.584, allocations: 68.41 kB / 0.5008 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001099/0.5841, allocations: 63.94 kB / 0.5009 GB, free: 14.03 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004946/0.5846, allocations: 399.1 kB / 0.5012 GB, free: 13.64 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5846, allocations: 0 / 0.5012 GB, free: 13.64 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001559/0.5862, allocations: 339.9 kB / 0.5016 GB, free: 13.3 MB / 414.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.004446/0.5906, allocations: 2.779 MB / 0.5043 GB, free: 10.48 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002939/0.5936, allocations: 1.865 MB / 0.5061 GB, free: 8.523 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.524e-06/0.5936, allocations: 4 kB / 0.5061 GB, free: 8.52 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001101/0.5947, allocations: 0.6818 MB / 0.5068 GB, free: 7.824 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002343/0.5971, allocations: 482.7 kB / 0.5072 GB, free: 7.355 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01035/0.6074, allocations: 6.833 MB / 0.5139 GB, free: 424 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000702/0.6082, allocations: 0.9827 MB / 0.5149 GB, free: 15.41 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001135/0.6093, allocations: 281.7 kB / 0.5151 GB, free: 15.13 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004611/0.6098, allocations: 275.3 kB / 0.5154 GB, free: 14.86 MB / 430.1 MB Notification: Performance of SimCode: time 1.082e-06/0.6098, allocations: 0 / 0.5154 GB, free: 14.86 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2305/0.8403, allocations: 31.34 MB / 0.546 GB, free: 155.6 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001462/0.8405, allocations: 248.9 kB / 0.5462 GB, free: 155.4 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.71/3.551, allocations: 0 / 0.5462 GB, free: 155.4 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