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.001293/0.001292, allocations: 106.9 kB / 17.58 MB, free: 5.559 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.001889/0.00189, allocations: 192 kB / 18.51 MB, free: 4.641 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.372/1.372, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.001664/0.001664, allocations: 51.92 kB / 280.8 MB, free: 3.059 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1515/0.1532, allocations: 46.63 MB / 327.4 MB, free: 4.355 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.543/0.6962, allocations: 175.5 MB / 0.4911 GB, free: 7.484 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.006461/0.7027, allocations: 3.835 MB / 0.4948 GB, free: 3.641 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004854/0.7033, allocations: 4 kB / 0.4948 GB, free: 3.637 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001183/0.7045, allocations: 242.6 kB / 0.4951 GB, free: 3.398 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001278/0.7058, allocations: 370 kB / 0.4954 GB, free: 3.035 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002192/0.708, allocations: 0.54 MB / 0.496 GB, free: 2.496 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001509/0.7096, allocations: 1.091 MB / 0.497 GB, free: 1.398 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004491/0.7101, allocations: 295.4 kB / 0.4973 GB, free: 1.121 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003893/0.714, allocations: 1.296 MB / 0.4986 GB, free: 15.82 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007833/0.7148, allocations: 402.7 kB / 0.499 GB, free: 15.43 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003438/0.7152, allocations: 72 kB / 0.499 GB, free: 15.36 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001752/0.7169, allocations: 0.5615 MB / 0.4996 GB, free: 14.79 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005772/0.7175, allocations: 443 kB / 0.5 GB, free: 14.36 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001501/0.7191, allocations: 0.4904 MB / 0.5005 GB, free: 13.87 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003374/0.7224, allocations: 1.558 MB / 0.502 GB, free: 12.3 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.7225, allocations: 0 / 0.502 GB, free: 12.3 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.436e-06/0.7225, allocations: 0 / 0.502 GB, free: 12.3 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.054e-05/0.7225, allocations: 3.938 kB / 0.502 GB, free: 12.3 MB / 414.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.003559/0.7261, allocations: 1.068 MB / 0.503 GB, free: 11.18 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/0.7262, allocations: 8.031 kB / 0.503 GB, free: 11.17 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00042/0.7266, allocations: 118.5 kB / 0.5032 GB, free: 11.05 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001264/0.7279, allocations: 147.1 kB / 0.5033 GB, free: 10.9 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001258/0.7292, allocations: 480.8 kB / 0.5038 GB, free: 10.39 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.062e-05/0.7293, allocations: 45.31 kB / 0.5038 GB, free: 10.35 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001828/0.7295, allocations: 71.91 kB / 0.5039 GB, free: 10.28 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002198/0.7317, allocations: 0.9552 MB / 0.5048 GB, free: 9.316 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.025e-05/0.7318, allocations: 0 / 0.5048 GB, free: 9.316 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001027/0.7319, allocations: 32 kB / 0.5048 GB, free: 9.285 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001354/0.7321, allocations: 37.98 kB / 0.5049 GB, free: 9.246 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001868/0.734, allocations: 0.8745 MB / 0.5057 GB, free: 8.371 MB / 414.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.007763/0.7418, allocations: 3.501 MB / 0.5091 GB, free: 4.598 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001139/0.7429, allocations: 0.6346 MB / 0.5098 GB, free: 3.953 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000605/0.7435, allocations: 366.2 kB / 0.5101 GB, free: 3.594 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.333e-05/0.7436, allocations: 20.55 kB / 0.5101 GB, free: 3.574 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.2e-05/0.7436, allocations: 50.98 kB / 0.5102 GB, free: 3.516 MB / 414.1 MB Notification: Performance of pre-optimization done (n=59): time 1.914e-06/0.7436, allocations: 0 / 0.5102 GB, free: 3.516 MB / 414.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.01821/0.7618, allocations: 6.215 MB / 0.5163 GB, free: 12.9 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.603e-05/0.762, allocations: 64.06 kB / 0.5163 GB, free: 12.83 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007833/0.7628, allocations: 0.5408 MB / 0.5168 GB, free: 12.28 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.994e-05/0.7629, allocations: 45.7 kB / 0.5169 GB, free: 12.23 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003488/0.7632, allocations: 276.6 kB / 0.5171 GB, free: 11.95 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002796/0.7635, allocations: 256.3 kB / 0.5174 GB, free: 11.7 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003909/0.7639, allocations: 142.7 kB / 0.5175 GB, free: 11.55 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001619/0.7641, allocations: 370.8 kB / 0.5179 GB, free: 11.18 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009375/0.7651, allocations: 445.7 kB / 0.5183 GB, free: 10.75 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001007/0.7661, allocations: 0.5116 MB / 0.5188 GB, free: 10.22 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001688/0.7678, allocations: 0.9798 MB / 0.5198 GB, free: 9.227 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.778e-06/0.7679, allocations: 0 / 0.5198 GB, free: 9.227 MB / 430.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002531/0.7704, allocations: 1.343 MB / 0.5211 GB, free: 7.848 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.864e-05/0.7704, allocations: 8.156 kB / 0.5211 GB, free: 7.84 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.154e-06/0.7704, allocations: 3.938 kB / 0.5211 GB, free: 7.836 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000879/0.7713, allocations: 334.6 kB / 0.5214 GB, free: 7.484 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001101/0.7724, allocations: 179.8 kB / 0.5216 GB, free: 7.309 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01235/0.7848, allocations: 10.96 MB / 0.5323 GB, free: 11.35 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000763/0.7856, allocations: 16 kB / 0.5323 GB, free: 11.33 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.892e-05/0.7858, allocations: 47.98 kB / 0.5323 GB, free: 11.29 MB / 446.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 (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 8 systems {(1,1), (1,1), (1,1), (1,1), (1,1), (1,1), (1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0006161/0.7864, allocations: 289.5 kB / 0.5326 GB, free: 10.99 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002719/0.7867, allocations: 63.28 kB / 0.5327 GB, free: 10.93 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002713/0.7894, allocations: 1.29 MB / 0.5339 GB, free: 9.605 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.307e-06/0.7895, allocations: 11.98 kB / 0.5339 GB, free: 9.594 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.7895, allocations: 3.938 kB / 0.5339 GB, free: 9.59 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002122/0.7916, allocations: 1.598 MB / 0.5355 GB, free: 7.832 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004255/0.7959, allocations: 2.276 MB / 0.5377 GB, free: 5.484 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.7959, allocations: 0 / 0.5377 GB, free: 5.484 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001301/0.7972, allocations: 215.7 kB / 0.5379 GB, free: 5.273 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003126/0.7976, allocations: 72.83 kB / 0.538 GB, free: 5.199 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.646e-05/0.7977, allocations: 39.97 kB / 0.538 GB, free: 5.16 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001646/0.7994, allocations: 1.527 MB / 0.5395 GB, free: 3.492 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.7994, allocations: 8.094 kB / 0.5395 GB, free: 3.484 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002872/0.8023, allocations: 1.594 MB / 0.5411 GB, free: 1.867 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002846/0.8026, allocations: 140.3 kB / 0.5412 GB, free: 1.711 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002587/0.8029, allocations: 27.98 kB / 0.5413 GB, free: 1.684 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008121/0.8037, allocations: 43.91 kB / 0.5413 GB, free: 1.641 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001114/0.8039, allocations: 60.52 kB / 0.5414 GB, free: 1.578 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002502/0.8041, allocations: 63.94 kB / 0.5414 GB, free: 1.516 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0005086/0.8046, allocations: 403.1 kB / 0.5418 GB, free: 1.121 MB / 446.1 MB Notification: Performance of sort global known variables: time 8.02e-07/0.8047, allocations: 0 / 0.5418 GB, free: 1.121 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001524/0.8062, allocations: 335.9 kB / 0.5421 GB, free: 0.793 MB / 446.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.1998/1.006, allocations: 2.618 MB / 0.5447 GB, free: 179.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004382/1.01, allocations: 2.107 MB / 0.5467 GB, free: 179 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.917e-05/1.011, allocations: 1.469 kB / 0.5467 GB, free: 179 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001208/1.012, allocations: 0.6851 MB / 0.5474 GB, free: 178.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003044/1.015, allocations: 0.5046 MB / 0.5479 GB, free: 178.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01601/1.031, allocations: 8.968 MB / 0.5567 GB, free: 174.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007134/1.032, allocations: 0.9777 MB / 0.5576 GB, free: 173.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001506/1.033, allocations: 287.3 kB / 0.5579 GB, free: 173.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004137/1.034, allocations: 275.7 kB / 0.5582 GB, free: 173.7 MB / 446.1 MB Notification: Performance of SimCode: time 1.533e-06/1.034, allocations: 0 / 0.5582 GB, free: 173.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09986/1.133, allocations: 33.23 MB / 0.5906 GB, free: 143.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.16/13.29, allocations: 16.5 kB / 0.5906 GB, free: 143.8 MB / 446.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/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) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/Tests/MediaTestModels/IdealGases/SimpleNaturalGas/SimpleNaturalGas.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches