Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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: translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.X.1.|volume.medium.X.2.|volume.medium.X.3.|volume.medium.X.4.|volume.medium.X.5.|volume.medium.X.6.|volume.medium.p",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.X.1.|volume.medium.X.2.|volume.medium.X.3.|volume.medium.X.4.|volume.medium.X.5.|volume.medium.X.6.|volume.medium.p",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001596/0.001596, allocations: 108.3 kB / 16.41 MB, free: 6.473 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: 188.1 kB / 17.34 MB, free: 5.754 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.605/1.605, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2319/0.2319, allocations: 43.52 MB / 314.1 MB, free: 476 kB / 254.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.001543/0.001543, allocations: 67.91 kB / 441.8 MB, free: 5.672 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1658/0.1673, allocations: 57.8 MB / 499.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.6558/0.8232, allocations: 183.1 MB / 0.6667 GB, free: 3.516 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01106/0.8343, allocations: 6.962 MB / 0.6735 GB, free: 12.53 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001111/0.8354, allocations: 19.88 kB / 0.6735 GB, free: 12.51 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.001873/0.8373, allocations: 449.6 kB / 0.6739 GB, free: 12.07 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.007834/0.8453, allocations: 2.045 MB / 0.6759 GB, free: 10.03 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.005147/0.8504, allocations: 1.706 MB / 0.6776 GB, free: 8.316 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.003196/0.8537, allocations: 2.239 MB / 0.6798 GB, free: 6.07 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001354/0.855, allocations: 0.77 MB / 0.6805 GB, free: 5.301 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004689/0.8597, allocations: 1.943 MB / 0.6824 GB, free: 3.352 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00314/0.8629, allocations: 1.578 MB / 0.684 GB, free: 1.77 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0002608/0.8632, allocations: 100 kB / 0.6841 GB, free: 1.672 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003816/0.867, allocations: 1.602 MB / 0.6856 GB, free: 68 kB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0007929/0.8678, allocations: 0.682 MB / 0.6863 GB, free: 15.38 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.001025/0.8688, allocations: 0.7548 MB / 0.6871 GB, free: 14.62 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.003905/0.8727, allocations: 2.743 MB / 0.6897 GB, free: 11.88 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.8728, allocations: 0 / 0.6897 GB, free: 11.88 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.503e-06/0.8728, allocations: 0 / 0.6897 GB, free: 11.88 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 2.989e-05/0.8728, allocations: 0 / 0.6897 GB, free: 11.88 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 276 * Number of variables: 276 Notification: Performance of Generate backend data structure: time 0.003999/0.8768, allocations: 1.684 MB / 0.6914 GB, free: 10.14 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/0.8769, allocations: 11.89 kB / 0.6914 GB, free: 10.12 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001584/0.8785, allocations: 311.5 kB / 0.6917 GB, free: 9.82 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001402/0.8799, allocations: 0.7689 MB / 0.6924 GB, free: 9.008 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001457/0.88, allocations: 149.3 kB / 0.6926 GB, free: 8.852 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001814/0.8802, allocations: 103.9 kB / 0.6927 GB, free: 8.75 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002899/0.8831, allocations: 1.842 MB / 0.6945 GB, free: 6.84 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.482e-05/0.8832, allocations: 7.938 kB / 0.6945 GB, free: 6.832 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001441/0.8833, allocations: 47.98 kB / 0.6945 GB, free: 6.785 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001111/0.8834, allocations: 93.95 kB / 0.6946 GB, free: 6.691 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002644/0.8861, allocations: 1.694 MB / 0.6963 GB, free: 5 MB / 0.5294 GB 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.009755/0.8959, allocations: 6.905 MB / 0.703 GB, free: 13.62 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001353/0.8972, allocations: 0.8731 MB / 0.7039 GB, free: 12.74 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006777/0.8979, allocations: 462.1 kB / 0.7043 GB, free: 12.29 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000187/0.8981, allocations: 139.6 kB / 0.7044 GB, free: 12.13 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.155e-05/0.8982, allocations: 47.12 kB / 0.7045 GB, free: 12.07 MB / 0.545 GB Notification: Performance of pre-optimization done (n=60): time 3.246e-06/0.8982, allocations: 4 kB / 0.7045 GB, free: 12.07 MB / 0.545 GB Notification: Performance of matching and sorting (n=72): time 0.01179/0.91, allocations: 4.105 MB / 0.7085 GB, free: 7.871 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.075e-05/0.9101, allocations: 111.4 kB / 0.7086 GB, free: 7.738 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001468/0.9116, allocations: 1.105 MB / 0.7097 GB, free: 6.609 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0001032/0.9117, allocations: 45.7 kB / 0.7097 GB, free: 6.559 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004071/0.9121, allocations: 0.5184 MB / 0.7102 GB, free: 6.031 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002134/0.9123, allocations: 268.2 kB / 0.7105 GB, free: 5.766 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003511/0.9127, allocations: 206.5 kB / 0.7107 GB, free: 5.559 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001406/0.9128, allocations: 353.8 kB / 0.711 GB, free: 5.207 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009085/0.9138, allocations: 0.5875 MB / 0.7116 GB, free: 4.617 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001114/0.9149, allocations: 0.8721 MB / 0.7124 GB, free: 3.629 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001988/0.9169, allocations: 1.443 MB / 0.7139 GB, free: 2.074 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.071e-06/0.9169, allocations: 4 kB / 0.7139 GB, free: 2.07 MB / 0.545 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003272/0.9202, allocations: 2 MB / 0.7158 GB, free: 60 kB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.981e-05/0.9202, allocations: 10.66 kB / 0.7158 GB, free: 52 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.488e-05/0.9202, allocations: 8 kB / 0.7158 GB, free: 44 kB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004815/0.9251, allocations: 1.324 MB / 0.7171 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006914/0.9258, allocations: 143.8 kB / 0.7173 GB, free: 14.57 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002897/0.9287, allocations: 1.924 MB / 0.7191 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001032/0.9297, allocations: 47.97 kB / 0.7192 GB, free: 12.58 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001129/0.9299, allocations: 63.98 kB / 0.7192 GB, free: 12.52 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (82): * Single equations (assignments): 81 * 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 {(9,35)} Notification: Performance of prepare postOptimizeDAE: time 0.0007617/0.9306, allocations: 397.4 kB / 0.7196 GB, free: 12.12 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002414/0.9309, allocations: 114.7 kB / 0.7197 GB, free: 12 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002502/0.9334, allocations: 1.402 MB / 0.7211 GB, free: 10.59 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.047e-06/0.9334, allocations: 8 kB / 0.7211 GB, free: 10.58 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.27e-05/0.9334, allocations: 8 kB / 0.7211 GB, free: 10.57 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.9334, allocations: 3.984 kB / 0.7211 GB, free: 10.57 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004485/0.9379, allocations: 2.673 MB / 0.7237 GB, free: 7.824 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.558e-06/0.9379, allocations: 7.922 kB / 0.7237 GB, free: 7.816 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001799/0.9397, allocations: 323.6 kB / 0.7241 GB, free: 7.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002268/0.94, allocations: 72.67 kB / 0.7241 GB, free: 7.426 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.768e-05/0.9401, allocations: 35.98 kB / 0.7242 GB, free: 7.391 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002909/0.943, allocations: 3.029 MB / 0.7271 GB, free: 4.086 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.943, allocations: 0 / 0.7271 GB, free: 4.086 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003493/0.9465, allocations: 1.908 MB / 0.729 GB, free: 2.156 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008208/0.9474, allocations: 339.6 kB / 0.7293 GB, free: 1.805 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001992/0.9476, allocations: 31.98 kB / 0.7293 GB, free: 1.773 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009129/0.9485, allocations: 39.95 kB / 0.7294 GB, free: 1.734 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001762/0.9487, allocations: 60.58 kB / 0.7294 GB, free: 1.672 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001215/0.9488, allocations: 67.94 kB / 0.7295 GB, free: 1.605 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001226/0.95, allocations: 0.7931 MB / 0.7303 GB, free: 0.8008 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.9e-07/0.95, allocations: 4 kB / 0.7303 GB, free: 0.7969 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001517/0.9516, allocations: 0.5155 MB / 0.7308 GB, free: 288 kB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (78): * Single equations (assignments): 76 * 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.002062/0.9536, allocations: 0.7883 MB / 0.7315 GB, free: 15.49 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002754/0.9564, allocations: 1.478 MB / 0.733 GB, free: 14.01 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.9564, allocations: 0.6562 kB / 0.733 GB, free: 14.01 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001751/0.9582, allocations: 0.8624 MB / 0.7338 GB, free: 13.14 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003198/0.9614, allocations: 0.764 MB / 0.7346 GB, free: 12.38 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005134/0.9665, allocations: 2.887 MB / 0.7374 GB, free: 9.457 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008655/0.9674, allocations: 1.176 MB / 0.7385 GB, free: 8.254 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001365/0.9688, allocations: 413.8 kB / 0.7389 GB, free: 7.848 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003622/0.9692, allocations: 99.42 kB / 0.739 GB, free: 7.75 MB / 0.5762 GB Notification: Performance of SimCode: time 1.302e-06/0.9692, allocations: 4 kB / 0.739 GB, free: 7.746 MB / 0.5762 GB Notification: Performance of Templates: time 0.3452/1.314, allocations: 40.25 MB / 0.7783 GB, free: 221.9 MB / 0.5919 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.sim & ./ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/SimpleNaturalGas/SimpleNaturalGas.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches