Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001525/0.00153, allocations: 187.7 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.06/2.06, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001125/0.001125, allocations: 102.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3071/0.3071, allocations: 43.55 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004751/0.0004752, allocations: 12 kB / 431.4 MB, free: 20.26 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1235/0.124, allocations: 58.86 MB / 490.2 MB, free: 9.336 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.5698/0.6939, allocations: 143.8 MB / 0.6192 GB, free: 10.96 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.01737/0.7113, allocations: 8.398 MB / 0.6274 GB, free: 2.547 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001098/0.7125, allocations: 31.75 kB / 0.6274 GB, free: 2.516 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001523/0.714, allocations: 334.4 kB / 0.6277 GB, free: 2.188 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00638/0.7204, allocations: 1.495 MB / 0.6292 GB, free: 0.6914 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005608/0.7261, allocations: 1.266 MB / 0.6304 GB, free: 15.43 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.003048/0.7291, allocations: 1.251 MB / 0.6316 GB, free: 14.18 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001807/0.731, allocations: 0.6687 MB / 0.6323 GB, free: 13.5 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004518/0.7356, allocations: 1.306 MB / 0.6336 GB, free: 12.19 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004839/0.7404, allocations: 1.442 MB / 0.635 GB, free: 10.74 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003781/0.7409, allocations: 56 kB / 0.635 GB, free: 10.69 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004654/0.7456, allocations: 1.229 MB / 0.6362 GB, free: 9.457 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001234/0.7468, allocations: 0.5925 MB / 0.6368 GB, free: 8.863 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006696/0.7475, allocations: 293.1 kB / 0.6371 GB, free: 8.57 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004886/0.7524, allocations: 1.98 MB / 0.639 GB, free: 6.586 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.7525, allocations: 0 / 0.639 GB, free: 6.586 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.156e-06/0.7525, allocations: 4 kB / 0.639 GB, free: 6.582 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.693e-05/0.7526, allocations: 0 / 0.639 GB, free: 6.582 MB / 442.7 MB 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.005445/0.758, allocations: 1.407 MB / 0.6404 GB, free: 5.125 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.395e-05/0.7581, allocations: 16.02 kB / 0.6404 GB, free: 5.109 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002815/0.7609, allocations: 334.2 kB / 0.6407 GB, free: 4.781 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002433/0.7634, allocations: 0.7107 MB / 0.6414 GB, free: 4.031 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002349/0.7637, allocations: 141.4 kB / 0.6416 GB, free: 3.879 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003991/0.7641, allocations: 107.9 kB / 0.6417 GB, free: 3.773 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005593/0.7697, allocations: 1.825 MB / 0.6435 GB, free: 1.879 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.89e-05/0.7698, allocations: 7.844 kB / 0.6435 GB, free: 1.871 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002732/0.7701, allocations: 51.98 kB / 0.6435 GB, free: 1.82 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001947/0.7703, allocations: 95.44 kB / 0.6436 GB, free: 1.73 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005464/0.7758, allocations: 1.702 MB / 0.6453 GB, free: 28 kB / 442.7 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.01738/0.7932, allocations: 6.901 MB / 0.652 GB, free: 8.648 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002415/0.7957, allocations: 0.7986 MB / 0.6528 GB, free: 7.844 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003308/0.7961, allocations: 130.3 kB / 0.6529 GB, free: 7.699 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.515e-05/0.7962, allocations: 43.12 kB / 0.6529 GB, free: 7.648 MB / 458.7 MB Notification: Performance of pre-optimization done (n=60): time 3.797e-06/0.7962, allocations: 0 / 0.6529 GB, free: 7.648 MB / 458.7 MB Notification: Performance of matching and sorting (n=72): time 0.02061/0.8168, allocations: 4.167 MB / 0.657 GB, free: 3.387 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.553e-05/0.8169, allocations: 111.5 kB / 0.6571 GB, free: 3.254 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00229/0.8192, allocations: 1.101 MB / 0.6582 GB, free: 2.129 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002886/0.8196, allocations: 45.64 kB / 0.6582 GB, free: 2.078 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005279/0.8201, allocations: 0.517 MB / 0.6587 GB, free: 1.555 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003981/0.8205, allocations: 268.2 kB / 0.659 GB, free: 1.289 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001191/0.8207, allocations: 20 kB / 0.659 GB, free: 1.27 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001754/0.8208, allocations: 354.8 kB / 0.6594 GB, free: 0.9141 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001701/0.8226, allocations: 0.5914 MB / 0.6599 GB, free: 328 kB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001999/0.8246, allocations: 0.8681 MB / 0.6608 GB, free: 15.33 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001985/0.8266, allocations: 0.7017 MB / 0.6615 GB, free: 14.63 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.218e-06/0.8266, allocations: 4 kB / 0.6615 GB, free: 14.63 MB / 474.7 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.006001/0.8327, allocations: 1.954 MB / 0.6634 GB, free: 12.66 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.855e-05/0.8327, allocations: 8 kB / 0.6634 GB, free: 12.66 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.504e-05/0.8328, allocations: 11.94 kB / 0.6634 GB, free: 12.64 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009111/0.8419, allocations: 1.387 MB / 0.6648 GB, free: 11.25 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001203/0.8432, allocations: 143.8 kB / 0.6649 GB, free: 11.11 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005173/0.8484, allocations: 1.924 MB / 0.6668 GB, free: 9.164 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002056/0.8505, allocations: 111.8 kB / 0.6669 GB, free: 9.055 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002177/0.8507, allocations: 67.98 kB / 0.6669 GB, free: 8.988 MB / 474.7 MB 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 (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: 0 * Non-linear torn systems: 1 {9 35} Notification: Performance of prepare postOptimizeDAE: time 0.00111/0.8518, allocations: 393.4 kB / 0.6673 GB, free: 8.594 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003847/0.8522, allocations: 110.8 kB / 0.6674 GB, free: 8.484 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00432/0.8566, allocations: 1.406 MB / 0.6688 GB, free: 7.066 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.575e-05/0.8566, allocations: 8 kB / 0.6688 GB, free: 7.059 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.696e-06/0.8566, allocations: 0 / 0.6688 GB, free: 7.059 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.57e-05/0.8567, allocations: 3.984 kB / 0.6688 GB, free: 7.055 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007829/0.8645, allocations: 2.704 MB / 0.6714 GB, free: 4.285 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.145e-06/0.8646, allocations: 0 / 0.6714 GB, free: 4.285 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003755/0.8683, allocations: 327.6 kB / 0.6718 GB, free: 3.965 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003573/0.8688, allocations: 68.69 kB / 0.6718 GB, free: 3.895 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002326/0.869, allocations: 39.92 kB / 0.6719 GB, free: 3.855 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003547/0.8726, allocations: 2.844 MB / 0.6746 GB, free: 0.75 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.8726, allocations: 0 / 0.6746 GB, free: 0.75 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005688/0.8783, allocations: 1.932 MB / 0.6765 GB, free: 14.79 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001334/0.8797, allocations: 351.6 kB / 0.6769 GB, free: 14.42 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003553/0.8801, allocations: 27.98 kB / 0.6769 GB, free: 14.39 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00193/0.882, allocations: 83.86 kB / 0.677 GB, free: 14.31 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002914/0.8823, allocations: 60.34 kB / 0.677 GB, free: 14.26 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002213/0.8826, allocations: 67.95 kB / 0.6771 GB, free: 14.19 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001763/0.8844, allocations: 0.793 MB / 0.6779 GB, free: 13.39 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.8844, allocations: 0 / 0.6779 GB, free: 13.39 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002551/0.887, allocations: 0.5077 MB / 0.6784 GB, free: 12.88 MB / 490.7 MB 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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 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.003856/0.8909, allocations: 0.666 MB / 0.679 GB, free: 12.21 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.005122/0.896, allocations: 1.474 MB / 0.6805 GB, free: 10.73 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.167e-05/0.8961, allocations: 8.719 kB / 0.6805 GB, free: 10.73 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003134/0.8992, allocations: 0.8534 MB / 0.6813 GB, free: 9.855 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006418/0.9057, allocations: 0.7108 MB / 0.682 GB, free: 9.145 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01002/0.9158, allocations: 3.452 MB / 0.6854 GB, free: 5.664 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001382/0.9172, allocations: 1.191 MB / 0.6865 GB, free: 4.445 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008591/0.9181, allocations: 111.4 kB / 0.6866 GB, free: 4.336 MB / 490.7 MB Notification: Performance of SimCode: time 1.433e-06/0.9181, allocations: 0 / 0.6866 GB, free: 4.336 MB / 490.7 MB Notification: Performance of Templates: time 0.4032/1.321, allocations: 32.01 MB / 0.7179 GB, free: 175.9 MB / 0.4949 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/SimpleNaturalGas/SimpleNaturalGas.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches