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.001538/0.001538, allocations: 106.6 kB / 17.73 MB, free: 5.328 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.001812/0.001812, allocations: 187 kB / 18.66 MB, free: 4.398 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.242/1.242, allocations: 205.1 MB / 224.5 MB, free: 12.2 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.001187/0.001187, allocations: 48.16 kB / 328.1 MB, free: 3.773 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0753/0.0765, allocations: 46.63 MB / 374.7 MB, free: 5.035 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.3258/0.4023, allocations: 175.5 MB / 0.5373 GB, free: 15.78 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.004332/0.4067, allocations: 3.841 MB / 0.541 GB, free: 11.92 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002822/0.407, allocations: 7.938 kB / 0.5411 GB, free: 11.91 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007011/0.4077, allocations: 242.7 kB / 0.5413 GB, free: 11.68 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006879/0.4085, allocations: 358 kB / 0.5416 GB, free: 11.32 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001347/0.4098, allocations: 0.5459 MB / 0.5422 GB, free: 10.78 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.001112/0.4109, allocations: 1.095 MB / 0.5432 GB, free: 9.68 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003379/0.4113, allocations: 290.5 kB / 0.5435 GB, free: 9.398 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002464/0.4138, allocations: 1.294 MB / 0.5448 GB, free: 8.102 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005791/0.4144, allocations: 402.8 kB / 0.5452 GB, free: 7.707 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001396/0.4145, allocations: 68 kB / 0.5452 GB, free: 7.641 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009816/0.4155, allocations: 479.1 kB / 0.5457 GB, free: 7.172 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003723/0.4159, allocations: 442.9 kB / 0.5461 GB, free: 6.738 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006158/0.4165, allocations: 498.2 kB / 0.5466 GB, free: 6.25 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001504/0.418, allocations: 1.535 MB / 0.5481 GB, free: 4.711 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.418, allocations: 0 / 0.5481 GB, free: 4.711 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.418, allocations: 0 / 0.5481 GB, free: 4.711 MB / 478.1 MB Notification: Performance of Transformations before backend: time 2.737e-05/0.4181, allocations: 0 / 0.5481 GB, free: 4.711 MB / 478.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.001894/0.42, allocations: 1.073 MB / 0.5491 GB, free: 3.59 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.42, allocations: 11.97 kB / 0.5491 GB, free: 3.578 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001601/0.4202, allocations: 114.5 kB / 0.5492 GB, free: 3.457 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000651/0.4208, allocations: 155 kB / 0.5494 GB, free: 3.305 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006896/0.4215, allocations: 485.7 kB / 0.5499 GB, free: 2.789 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.807e-05/0.4216, allocations: 49.31 kB / 0.5499 GB, free: 2.738 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001028/0.4217, allocations: 67.98 kB / 0.55 GB, free: 2.672 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001374/0.4231, allocations: 0.9513 MB / 0.5509 GB, free: 1.715 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.426e-05/0.4231, allocations: 7.906 kB / 0.5509 GB, free: 1.707 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.524e-05/0.4232, allocations: 28 kB / 0.5509 GB, free: 1.68 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.252e-05/0.4232, allocations: 41.98 kB / 0.551 GB, free: 1.641 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001165/0.4244, allocations: 0.8745 MB / 0.5518 GB, free: 0.7617 MB / 478.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.147/0.5714, allocations: 3.374 MB / 0.5551 GB, free: 168.4 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008099/0.5722, allocations: 0.6386 MB / 0.5557 GB, free: 168.4 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004085/0.5726, allocations: 362.4 kB / 0.5561 GB, free: 168.4 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.982e-05/0.5727, allocations: 19.3 kB / 0.5561 GB, free: 168.4 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.463e-05/0.5727, allocations: 45 kB / 0.5561 GB, free: 168.3 MB / 478.1 MB Notification: Performance of pre-optimization done (n=59): time 2.374e-06/0.5727, allocations: 3.625 kB / 0.5561 GB, free: 168.3 MB / 478.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.01304/0.5858, allocations: 6.081 MB / 0.5621 GB, free: 165.2 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.221e-05/0.5858, allocations: 59.77 kB / 0.5621 GB, free: 165.1 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005672/0.5864, allocations: 0.5446 MB / 0.5627 GB, free: 164.9 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 7.108e-05/0.5865, allocations: 47.95 kB / 0.5627 GB, free: 164.8 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001292/0.5866, allocations: 277.8 kB / 0.563 GB, free: 164.6 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001333/0.5867, allocations: 253.2 kB / 0.5632 GB, free: 164.4 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002315/0.587, allocations: 145.3 kB / 0.5634 GB, free: 164.3 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 7.811e-05/0.5871, allocations: 372.1 kB / 0.5637 GB, free: 164 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005475/0.5876, allocations: 445.6 kB / 0.5641 GB, free: 163.8 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005861/0.5882, allocations: 0.5153 MB / 0.5646 GB, free: 163.6 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001152/0.5894, allocations: 0.9669 MB / 0.5656 GB, free: 163.2 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.5894, allocations: 5.062 kB / 0.5656 GB, free: 163.2 MB / 478.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001782/0.5912, allocations: 1.342 MB / 0.5669 GB, free: 162.6 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.837e-05/0.5912, allocations: 6.625 kB / 0.5669 GB, free: 162.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.5912, allocations: 4.406 kB / 0.5669 GB, free: 162.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005442/0.5918, allocations: 340.3 kB / 0.5672 GB, free: 162.4 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000911/0.5927, allocations: 177.9 kB / 0.5674 GB, free: 162.4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005367/0.5981, allocations: 10.96 MB / 0.5781 GB, free: 151.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005542/0.5986, allocations: 22.58 kB / 0.5781 GB, free: 151.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.161e-05/0.5987, allocations: 43.41 kB / 0.5782 GB, free: 151.8 MB / 478.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.0004485/0.5992, allocations: 274 kB / 0.5784 GB, free: 151.6 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001464/0.5993, allocations: 62.75 kB / 0.5785 GB, free: 151.5 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001842/0.6012, allocations: 1.289 MB / 0.5798 GB, free: 150.9 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.075e-06/0.6012, allocations: 12.2 kB / 0.5798 GB, free: 150.9 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.6012, allocations: 0 / 0.5798 GB, free: 150.9 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001456/0.6027, allocations: 1.606 MB / 0.5813 GB, free: 149.8 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002984/0.6057, allocations: 2.266 MB / 0.5836 GB, free: 148.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.6057, allocations: 1.125 kB / 0.5836 GB, free: 148.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001065/0.6068, allocations: 219 kB / 0.5838 GB, free: 148.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001749/0.6069, allocations: 66.42 kB / 0.5838 GB, free: 148.7 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.799e-05/0.607, allocations: 40.25 kB / 0.5839 GB, free: 148.7 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008164/0.6078, allocations: 1.536 MB / 0.5854 GB, free: 147.2 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.6079, allocations: 1.406 kB / 0.5854 GB, free: 147.2 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001883/0.6098, allocations: 1.596 MB / 0.5869 GB, free: 146.4 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000135/0.6099, allocations: 142.5 kB / 0.5871 GB, free: 146.3 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000117/0.61, allocations: 29.67 kB / 0.5871 GB, free: 146.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005921/0.6106, allocations: 41.91 kB / 0.5871 GB, free: 146.2 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.474e-05/0.6107, allocations: 56.83 kB / 0.5872 GB, free: 146.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.134e-05/0.6108, allocations: 62.39 kB / 0.5872 GB, free: 146.2 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0003657/0.6112, allocations: 405.3 kB / 0.5876 GB, free: 145.9 MB / 478.1 MB Notification: Performance of sort global known variables: time 6.31e-07/0.6112, allocations: 0 / 0.5876 GB, free: 145.9 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00103/0.6122, allocations: 337.2 kB / 0.5879 GB, free: 145.9 MB / 478.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.00303/0.6153, allocations: 2.609 MB / 0.5905 GB, free: 144.3 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00177/0.617, allocations: 1.885 MB / 0.5923 GB, free: 143 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.6171, allocations: 0 / 0.5923 GB, free: 143 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006906/0.6178, allocations: 0.6823 MB / 0.593 GB, free: 142.6 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001835/0.6196, allocations: 0.5094 MB / 0.5935 GB, free: 142.3 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008331/0.6279, allocations: 8.744 MB / 0.602 GB, free: 133.4 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003352/0.6283, allocations: 0.9749 MB / 0.603 GB, free: 132.4 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0007192/0.629, allocations: 273.7 kB / 0.6033 GB, free: 132.2 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003491/0.6294, allocations: 275.3 kB / 0.6035 GB, free: 131.9 MB / 478.1 MB Notification: Performance of SimCode: time 6.71e-07/0.6294, allocations: 0 / 0.6035 GB, free: 131.9 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05307/0.6825, allocations: 34.35 MB / 0.6371 GB, free: 97.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.29/12.97, allocations: 0 / 0.6371 GB, free: 97.4 MB / 478.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