Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Media.Examples.Tests.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="Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas") translateModel(Modelica.Media.Examples.Tests.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="Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000929/0.0009289, allocations: 179 kB / 17.36 MB, free: 4.32 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.421/1.421, allocations: 205.6 MB / 223.7 MB, free: 8.969 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007413/0.0007413, allocations: 87.06 kB / 272.1 MB, free: 8.152 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002522/0.0002523, allocations: 4 kB / 329 MB, free: 15.08 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2187/0.219, allocations: 47.59 MB / 376.6 MB, free: 45.59 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.3951/0.6141, allocations: 168.6 MB / 0.5324 GB, free: 10.37 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.004876/0.6191, allocations: 4.824 MB / 0.5371 GB, free: 8.859 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003856/0.6195, allocations: 2.938 kB / 0.5371 GB, free: 8.859 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000807/0.6203, allocations: 208.2 kB / 0.5373 GB, free: 8.855 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007555/0.6211, allocations: 356.1 kB / 0.5377 GB, free: 8.836 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001548/0.6226, allocations: 0.4954 MB / 0.5382 GB, free: 8.809 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.001445/0.6241, allocations: 1.601 MB / 0.5397 GB, free: 8.801 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003197/0.6244, allocations: 237.9 kB / 0.54 GB, free: 8.754 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002684/0.6271, allocations: 1.224 MB / 0.5412 GB, free: 8.719 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005421/0.6277, allocations: 437 kB / 0.5416 GB, free: 8.715 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 8.161e-05/0.6277, allocations: 28.59 kB / 0.5416 GB, free: 8.715 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001381/0.6291, allocations: 0.7858 MB / 0.5424 GB, free: 8.711 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003061/0.6294, allocations: 399.8 kB / 0.5427 GB, free: 8.707 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004318/0.6299, allocations: 474.1 kB / 0.5432 GB, free: 8.637 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001473/0.6314, allocations: 1.58 MB / 0.5447 GB, free: 7.949 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.6314, allocations: 0 / 0.5447 GB, free: 7.949 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.193e-06/0.6314, allocations: 3.938 kB / 0.5447 GB, free: 7.945 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.002e-05/0.6314, allocations: 4 kB / 0.5448 GB, free: 7.941 MB / 394.7 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.001344/0.6328, allocations: 0.8875 MB / 0.5456 GB, free: 7.293 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.684e-05/0.6328, allocations: 10.03 kB / 0.5456 GB, free: 7.293 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005823/0.6334, allocations: 156 kB / 0.5458 GB, free: 7.23 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006291/0.634, allocations: 482.8 kB / 0.5462 GB, free: 6.93 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.108e-05/0.6341, allocations: 47.25 kB / 0.5463 GB, free: 6.93 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.585e-05/0.6342, allocations: 68.72 kB / 0.5463 GB, free: 6.93 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001306/0.6355, allocations: 0.9455 MB / 0.5473 GB, free: 6.699 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.29e-05/0.6355, allocations: 6.469 kB / 0.5473 GB, free: 6.695 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.076e-05/0.6356, allocations: 30 kB / 0.5473 GB, free: 6.695 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.095e-05/0.6356, allocations: 43.17 kB / 0.5473 GB, free: 6.688 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001128/0.6368, allocations: 0.8721 MB / 0.5482 GB, free: 6.559 MB / 394.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.004979/0.6418, allocations: 3.442 MB / 0.5516 GB, free: 4.426 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007896/0.6426, allocations: 0.6348 MB / 0.5522 GB, free: 4.316 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005659/0.6432, allocations: 365 kB / 0.5525 GB, free: 4.262 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.623e-05/0.6432, allocations: 23.73 kB / 0.5526 GB, free: 4.258 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.755e-05/0.6433, allocations: 53.72 kB / 0.5526 GB, free: 4.211 MB / 394.7 MB Notification: Performance of pre-optimization done (n=59): time 1.764e-06/0.6433, allocations: 0 / 0.5526 GB, free: 4.211 MB / 394.7 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.01375/0.657, allocations: 6.219 MB / 0.5587 GB, free: 1.238 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.162e-05/0.6571, allocations: 67.66 kB / 0.5587 GB, free: 1.172 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007226/0.6578, allocations: 0.5381 MB / 0.5593 GB, free: 0.9805 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001132/0.6579, allocations: 44.89 kB / 0.5593 GB, free: 0.9492 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002127/0.6582, allocations: 281.8 kB / 0.5596 GB, free: 0.7734 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002086/0.6584, allocations: 252.2 kB / 0.5598 GB, free: 0.5938 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.11e-05/0.6584, allocations: 14.41 kB / 0.5598 GB, free: 0.5938 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001635/0.6586, allocations: 369 kB / 0.5602 GB, free: 268 kB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000613/0.6592, allocations: 440.4 kB / 0.5606 GB, free: 204 kB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006771/0.6599, allocations: 0.5121 MB / 0.5611 GB, free: 72 kB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001284/0.6612, allocations: 0.9687 MB / 0.562 GB, free: 15.92 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.6612, allocations: 0 / 0.562 GB, free: 15.92 MB / 410.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002062/0.6633, allocations: 1.342 MB / 0.5634 GB, free: 15.62 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.186e-05/0.6633, allocations: 6.094 kB / 0.5634 GB, free: 15.62 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.966e-06/0.6633, allocations: 0.9375 kB / 0.5634 GB, free: 15.62 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000539/0.6639, allocations: 336.9 kB / 0.5637 GB, free: 15.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009424/0.6648, allocations: 175.7 kB / 0.5639 GB, free: 15.47 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007136/0.672, allocations: 10.24 MB / 0.5739 GB, free: 5.793 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007724/0.6728, allocations: 85 kB / 0.5739 GB, free: 5.734 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001122/0.6729, allocations: 44.98 kB / 0.574 GB, free: 5.695 MB / 410.7 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.0004746/0.6734, allocations: 280 kB / 0.5742 GB, free: 5.488 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001719/0.6736, allocations: 65.31 kB / 0.5743 GB, free: 5.426 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002022/0.6756, allocations: 1.286 MB / 0.5756 GB, free: 4.543 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.554e-06/0.6756, allocations: 8 kB / 0.5756 GB, free: 4.535 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.6756, allocations: 0 / 0.5756 GB, free: 4.535 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001667/0.6773, allocations: 1.605 MB / 0.5771 GB, free: 3.094 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003249/0.6806, allocations: 2.275 MB / 0.5794 GB, free: 1.457 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.6806, allocations: 0 / 0.5794 GB, free: 1.457 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001082/0.6817, allocations: 215 kB / 0.5796 GB, free: 1.25 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001772/0.6819, allocations: 76.48 kB / 0.5796 GB, free: 1.191 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.044e-05/0.682, allocations: 36.66 kB / 0.5797 GB, free: 1.168 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001086/0.6831, allocations: 1.442 MB / 0.5811 GB, free: 15.71 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.6831, allocations: 4.031 kB / 0.5811 GB, free: 15.7 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002057/0.6851, allocations: 1.593 MB / 0.5826 GB, free: 14.6 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002452/0.6854, allocations: 145.7 kB / 0.5828 GB, free: 14.44 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001297/0.6855, allocations: 32.36 kB / 0.5828 GB, free: 14.43 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007293/0.6863, allocations: 75.06 kB / 0.5829 GB, free: 14.36 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001124/0.6864, allocations: 55.7 kB / 0.5829 GB, free: 14.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001096/0.6865, allocations: 66.06 kB / 0.583 GB, free: 14.26 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004203/0.6869, allocations: 404.8 kB / 0.5834 GB, free: 13.95 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6869, allocations: 0 / 0.5834 GB, free: 13.95 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001139/0.6881, allocations: 347.5 kB / 0.5837 GB, free: 13.64 MB / 426.7 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.00165/0.6897, allocations: 0.504 MB / 0.5842 GB, free: 13.16 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002338/0.6921, allocations: 1.868 MB / 0.586 GB, free: 11.57 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.023e-06/0.6921, allocations: 4 kB / 0.586 GB, free: 11.56 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009345/0.6931, allocations: 0.686 MB / 0.5867 GB, free: 11.05 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002258/0.6953, allocations: 499 kB / 0.5872 GB, free: 10.63 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004141/0.6995, allocations: 2.614 MB / 0.5897 GB, free: 8.234 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006147/0.7001, allocations: 0.9754 MB / 0.5907 GB, free: 7.266 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001166/0.7013, allocations: 273.9 kB / 0.5909 GB, free: 6.996 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003064/0.7016, allocations: 90.72 kB / 0.591 GB, free: 6.91 MB / 426.7 MB Notification: Performance of SimCode: time 6.61e-07/0.7016, allocations: 0 / 0.591 GB, free: 6.91 MB / 426.7 MB Notification: Performance of Templates: time 0.038/0.7396, allocations: 25.13 MB / 0.6156 GB, free: 13.92 MB / 458.7 MB make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.makefile (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 & ./Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/Tests/MediaTestModels/IdealGases/SimpleNaturalGas/SimpleNaturalGas.csv","../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