Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001234/0.001234, allocations: 110.1 kB / 18.3 MB, free: 4.84 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.00123/0.00123, allocations: 199.3 kB / 19.23 MB, free: 3.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.467/1.467, allocations: 222.9 MB / 242.9 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2408/0.2408, allocations: 44.18 MB / 337.3 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001294, allocations: 60.48 kB / 409.1 MB, free: 27.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1349/0.1362, allocations: 60.83 MB / 469.9 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition): time 0.4707/0.607, allocations: 177.3 MB / 0.632 GB, free: 15.43 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.009365/0.6164, allocations: 6.518 MB / 0.6384 GB, free: 8.887 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001037/0.6174, allocations: 19.88 kB / 0.6384 GB, free: 8.867 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001353/0.6188, allocations: 413.7 kB / 0.6388 GB, free: 8.461 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004421/0.6233, allocations: 1.734 MB / 0.6405 GB, free: 6.723 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004063/0.6273, allocations: 1.477 MB / 0.6419 GB, free: 5.25 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.002949/0.6303, allocations: 2.117 MB / 0.644 GB, free: 3.129 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009285/0.6313, allocations: 0.5455 MB / 0.6445 GB, free: 2.582 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003787/0.6351, allocations: 1.694 MB / 0.6462 GB, free: 0.8828 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002718/0.6378, allocations: 1.472 MB / 0.6476 GB, free: 15.41 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002728/0.6381, allocations: 76 kB / 0.6477 GB, free: 15.33 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003105/0.6412, allocations: 1.372 MB / 0.649 GB, free: 13.96 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005136/0.6417, allocations: 450.8 kB / 0.6495 GB, free: 13.52 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007854/0.6425, allocations: 0.5524 MB / 0.65 GB, free: 12.96 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003278/0.6458, allocations: 2.088 MB / 0.6521 GB, free: 10.87 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.6459, allocations: 3.938 kB / 0.6521 GB, free: 10.86 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.6459, allocations: 0 / 0.6521 GB, free: 10.86 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.081e-05/0.6459, allocations: 0 / 0.6521 GB, free: 10.86 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.003295/0.6492, allocations: 1.453 MB / 0.6535 GB, free: 9.359 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.6493, allocations: 8.031 kB / 0.6535 GB, free: 9.352 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001504/0.6508, allocations: 278.6 kB / 0.6538 GB, free: 9.078 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00101/0.6518, allocations: 0.6013 MB / 0.6543 GB, free: 8.438 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001267/0.6519, allocations: 124.6 kB / 0.6545 GB, free: 8.305 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001224/0.6521, allocations: 71.98 kB / 0.6545 GB, free: 8.234 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001971/0.654, allocations: 1.263 MB / 0.6558 GB, free: 6.898 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.385e-05/0.6541, allocations: 3.938 kB / 0.6558 GB, free: 6.895 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001179/0.6542, allocations: 35.98 kB / 0.6558 GB, free: 6.859 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.541e-05/0.6543, allocations: 77.27 kB / 0.6559 GB, free: 6.785 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001688/0.656, allocations: 1.059 MB / 0.6569 GB, free: 5.727 MB / 494.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.0068/0.6628, allocations: 4.941 MB / 0.6617 GB, free: 500 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005253/0.6633, allocations: 310.5 kB / 0.662 GB, free: 180 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002375/0.6636, allocations: 146.6 kB / 0.6622 GB, free: 32 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001202/0.6637, allocations: 97.09 kB / 0.6623 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.054e-05/0.6638, allocations: 38.56 kB / 0.6623 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=28): time 1.643e-06/0.6638, allocations: 3.938 kB / 0.6623 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of matching and sorting (n=33): time 0.00667/0.6705, allocations: 1.82 MB / 0.6641 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8e-05/0.6706, allocations: 132.5 kB / 0.6642 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001286/0.6718, allocations: 0.9465 MB / 0.6651 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.992e-05/0.6719, allocations: 33.7 kB / 0.6652 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004187/0.6723, allocations: 0.5633 MB / 0.6657 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000129/0.6725, allocations: 134.3 kB / 0.6658 GB, free: 12.08 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002964/0.6728, allocations: 222.6 kB / 0.6661 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001764/0.673, allocations: 398.7 kB / 0.6664 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004538/0.6734, allocations: 274.5 kB / 0.6667 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009413/0.6744, allocations: 0.8639 MB / 0.6675 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001354/0.6757, allocations: 1.18 MB / 0.6687 GB, free: 8.586 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-05/0.6758, allocations: 8 kB / 0.6687 GB, free: 8.578 MB / 0.4981 GB Notification: Performance of matching and sorting (n=130) (initialization): time 0.00204/0.6778, allocations: 1.236 MB / 0.6699 GB, free: 7.332 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.065e-05/0.6779, allocations: 17.56 kB / 0.6699 GB, free: 7.316 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.177e-05/0.6779, allocations: 24.09 kB / 0.6699 GB, free: 7.293 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00128/0.6792, allocations: 284.6 kB / 0.6702 GB, free: 7.012 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005604/0.6798, allocations: 199.6 kB / 0.6704 GB, free: 6.816 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001059/0.6808, allocations: 0.919 MB / 0.6713 GB, free: 5.871 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008196/0.6817, allocations: 44.03 kB / 0.6713 GB, free: 5.828 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.637e-05/0.6818, allocations: 71.98 kB / 0.6714 GB, free: 5.758 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 90 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 111 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,17)} Notification: Performance of prepare postOptimizeDAE: time 0.0004857/0.6823, allocations: 337.2 kB / 0.6717 GB, free: 5.418 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001783/0.6825, allocations: 98.89 kB / 0.6718 GB, free: 5.32 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001079/0.6835, allocations: 0.5202 MB / 0.6723 GB, free: 4.793 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.6836, allocations: 4 kB / 0.6723 GB, free: 4.789 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.542e-05/0.6836, allocations: 4 kB / 0.6723 GB, free: 4.785 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/0.6836, allocations: 0 / 0.6723 GB, free: 4.785 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001964/0.6856, allocations: 1.125 MB / 0.6734 GB, free: 3.598 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.6856, allocations: 0 / 0.6734 GB, free: 3.598 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009983/0.6866, allocations: 191.8 kB / 0.6736 GB, free: 3.41 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001007/0.6867, allocations: 24.84 kB / 0.6737 GB, free: 3.383 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.269e-05/0.6868, allocations: 11.94 kB / 0.6737 GB, free: 3.371 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00218/0.689, allocations: 2.873 MB / 0.6765 GB, free: 224 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.689, allocations: 0 / 0.6765 GB, free: 224 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001146/0.6901, allocations: 0.6951 MB / 0.6771 GB, free: 15.5 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003484/0.6905, allocations: 200 kB / 0.6773 GB, free: 15.29 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000169/0.6907, allocations: 8 kB / 0.6773 GB, free: 15.28 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004658/0.6911, allocations: 16.11 kB / 0.6774 GB, free: 15.26 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.005e-05/0.6913, allocations: 31.91 kB / 0.6774 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.843e-05/0.6913, allocations: 27.98 kB / 0.6774 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0009253/0.6922, allocations: 0.6204 MB / 0.678 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6922, allocations: 0 / 0.678 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001524/0.6938, allocations: 391.8 kB / 0.6784 GB, free: 14.19 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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.002125/0.6959, allocations: 0.6455 MB / 0.679 GB, free: 13.54 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001538/0.6975, allocations: 0.7171 MB / 0.6797 GB, free: 12.83 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 7.434e-06/0.6975, allocations: 3.938 kB / 0.6797 GB, free: 12.82 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.000923/0.6984, allocations: 367 kB / 0.6801 GB, free: 12.45 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002098/0.7005, allocations: 437 kB / 0.6805 GB, free: 12.04 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003097/0.7036, allocations: 1.678 MB / 0.6821 GB, free: 10.32 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008083/0.7045, allocations: 1.028 MB / 0.6831 GB, free: 9.258 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003062/0.7048, allocations: 95.41 kB / 0.6832 GB, free: 9.164 MB / 0.5137 GB Notification: Performance of SimCode: time 8.41e-07/0.7048, allocations: 0 / 0.6832 GB, free: 9.164 MB / 0.5137 GB Notification: Performance of Templates: time 0.03578/0.7406, allocations: 22.63 MB / 0.7053 GB, free: 2.66 MB / 0.5294 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.sim & ./ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/SimpleNaturalGasFixedComposition/SimpleNaturalGasFixedComposition.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches