Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0011/0.0011, allocations: 200.9 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.291/1.291, allocations: 226.5 MB / 243.1 MB, free: 12.57 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007251/0.0007252, allocations: 99.06 kB / 295.1 MB, free: 4.359 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1817/0.1817, allocations: 44.83 MB / 392 MB, free: 11.38 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002838/0.0002838, allocations: 8 kB / 464.7 MB, free: 68.07 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08844/0.08874, allocations: 62.96 MB / 0.5153 GB, free: 5.098 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition): time 0.346/0.4348, allocations: 161.8 MB / 0.6733 GB, free: 3.664 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.007634/0.4424, allocations: 6.188 MB / 0.6794 GB, free: 13.46 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008503/0.4433, allocations: 23.75 kB / 0.6794 GB, free: 13.44 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001069/0.4444, allocations: 302.2 kB / 0.6797 GB, free: 13.14 MB / 474.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:784:36-785:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:782:36-783:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.003624/0.4481, allocations: 1.403 MB / 0.6811 GB, free: 11.73 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002831/0.4509, allocations: 1.071 MB / 0.6821 GB, free: 10.67 MB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 0.002599/0.4535, allocations: 2.555 MB / 0.6846 GB, free: 8.113 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007845/0.4543, allocations: 452.9 kB / 0.685 GB, free: 7.66 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003514/0.4578, allocations: 1.567 MB / 0.6866 GB, free: 6.09 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002662/0.4605, allocations: 1.578 MB / 0.6881 GB, free: 4.508 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001722/0.4607, allocations: 40 kB / 0.6882 GB, free: 4.469 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002424/0.4631, allocations: 1.225 MB / 0.6894 GB, free: 3.242 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004109/0.4636, allocations: 422.9 kB / 0.6898 GB, free: 2.828 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002715/0.4638, allocations: 229.2 kB / 0.69 GB, free: 2.598 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001723/0.4656, allocations: 1.543 MB / 0.6915 GB, free: 1.051 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.4656, allocations: 0 / 0.6915 GB, free: 1.051 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.025e-06/0.4656, allocations: 4 kB / 0.6915 GB, free: 1.047 MB / 474.7 MB Notification: Performance of Transformations before backend: time 1.095e-05/0.4656, allocations: 3.938 kB / 0.6915 GB, free: 1.043 MB / 474.7 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.002544/0.4682, allocations: 1.25 MB / 0.6927 GB, free: 15.74 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.464e-05/0.4682, allocations: 8.031 kB / 0.6927 GB, free: 15.73 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001216/0.4694, allocations: 298.5 kB / 0.693 GB, free: 15.44 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008781/0.4703, allocations: 0.5861 MB / 0.6936 GB, free: 14.82 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001029/0.4704, allocations: 104.7 kB / 0.6937 GB, free: 14.7 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001105/0.4705, allocations: 67.98 kB / 0.6937 GB, free: 14.64 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001744/0.4723, allocations: 1.267 MB / 0.695 GB, free: 13.3 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.073e-05/0.4723, allocations: 3.938 kB / 0.695 GB, free: 13.3 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001085/0.4724, allocations: 32 kB / 0.695 GB, free: 13.27 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001002/0.4725, allocations: 85.22 kB / 0.6951 GB, free: 13.18 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001542/0.4741, allocations: 1.067 MB / 0.6961 GB, free: 12.11 MB / 490.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.005737/0.4798, allocations: 4.824 MB / 0.7008 GB, free: 6.992 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004689/0.4803, allocations: 292.2 kB / 0.7011 GB, free: 6.703 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002197/0.4805, allocations: 152.4 kB / 0.7013 GB, free: 6.555 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000101/0.4807, allocations: 93.61 kB / 0.7014 GB, free: 6.445 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.134e-05/0.4807, allocations: 46.48 kB / 0.7014 GB, free: 6.391 MB / 490.7 MB Notification: Performance of pre-optimization done (n=28): time 2.044e-06/0.4807, allocations: 3.938 kB / 0.7014 GB, free: 6.387 MB / 490.7 MB Notification: Performance of matching and sorting (n=33): time 0.005394/0.4861, allocations: 1.751 MB / 0.7031 GB, free: 4.551 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.352e-05/0.4862, allocations: 132.5 kB / 0.7032 GB, free: 4.391 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00109/0.4873, allocations: 0.9271 MB / 0.7041 GB, free: 3.438 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 4.029e-05/0.4874, allocations: 33.7 kB / 0.7042 GB, free: 3.398 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003982/0.4878, allocations: 0.5711 MB / 0.7047 GB, free: 2.816 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001092/0.4879, allocations: 130.3 kB / 0.7049 GB, free: 2.688 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.967e-05/0.4879, allocations: 24 kB / 0.7049 GB, free: 2.664 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001878/0.4881, allocations: 402.7 kB / 0.7053 GB, free: 2.262 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004211/0.4885, allocations: 270.5 kB / 0.7055 GB, free: 2 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007879/0.4893, allocations: 0.8561 MB / 0.7064 GB, free: 0.8594 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006137/0.49, allocations: 468.1 kB / 0.7068 GB, free: 412 kB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.605e-06/0.49, allocations: 8 kB / 0.7068 GB, free: 404 kB / 490.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001814/0.4918, allocations: 1.228 MB / 0.708 GB, free: 15.15 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 3.13e-05/0.4918, allocations: 12 kB / 0.708 GB, free: 15.14 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.194e-05/0.4919, allocations: 20 kB / 0.708 GB, free: 15.12 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001251/0.4931, allocations: 299.4 kB / 0.7083 GB, free: 14.83 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005427/0.4937, allocations: 203.6 kB / 0.7085 GB, free: 14.63 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009997/0.4947, allocations: 0.9141 MB / 0.7094 GB, free: 13.69 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006838/0.4954, allocations: 59.88 kB / 0.7095 GB, free: 13.63 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.294e-05/0.4955, allocations: 68 kB / 0.7095 GB, free: 13.57 MB / 0.4948 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 (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 {2 17} Notification: Performance of prepare postOptimizeDAE: time 0.000414/0.4959, allocations: 349.2 kB / 0.7099 GB, free: 13.21 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001204/0.496, allocations: 90.97 kB / 0.71 GB, free: 13.12 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009835/0.497, allocations: 0.513 MB / 0.7105 GB, free: 12.61 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.497, allocations: 4 kB / 0.7105 GB, free: 12.6 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.497, allocations: 0 / 0.7105 GB, free: 12.6 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.4971, allocations: 8.016 kB / 0.7105 GB, free: 12.59 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00155/0.4986, allocations: 1.121 MB / 0.7116 GB, free: 11.41 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.4986, allocations: 3.938 kB / 0.7116 GB, free: 11.41 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009421/0.4996, allocations: 175.8 kB / 0.7117 GB, free: 11.24 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.707e-05/0.4997, allocations: 28.73 kB / 0.7118 GB, free: 11.21 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.799e-05/0.4997, allocations: 19.92 kB / 0.7118 GB, free: 11.19 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001778/0.5015, allocations: 2.673 MB / 0.7144 GB, free: 8.25 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.5015, allocations: 0 / 0.7144 GB, free: 8.25 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009527/0.5025, allocations: 0.6991 MB / 0.7151 GB, free: 7.527 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002648/0.5028, allocations: 204 kB / 0.7153 GB, free: 7.309 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001011/0.5029, allocations: 11.98 kB / 0.7153 GB, free: 7.297 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004372/0.5033, allocations: 24.05 kB / 0.7153 GB, free: 7.273 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.002e-05/0.5034, allocations: 23.97 kB / 0.7153 GB, free: 7.25 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.965e-05/0.5034, allocations: 23.98 kB / 0.7154 GB, free: 7.227 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0007203/0.5041, allocations: 0.6126 MB / 0.716 GB, free: 6.602 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.91e-07/0.5041, allocations: 0 / 0.716 GB, free: 6.602 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.001149/0.5053, allocations: 391.8 kB / 0.7163 GB, free: 6.219 MB / 0.4948 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 (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.001558/0.5069, allocations: 0.541 MB / 0.7169 GB, free: 5.676 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.001173/0.5081, allocations: 0.6699 MB / 0.7175 GB, free: 5.012 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.5081, allocations: 3.938 kB / 0.7175 GB, free: 5.008 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0008231/0.5089, allocations: 367.7 kB / 0.7179 GB, free: 4.637 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001711/0.5106, allocations: 412.9 kB / 0.7183 GB, free: 4.234 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002284/0.5129, allocations: 1.949 MB / 0.7202 GB, free: 2.246 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005784/0.5135, allocations: 1.032 MB / 0.7212 GB, free: 1.184 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002259/0.5137, allocations: 87.42 kB / 0.7212 GB, free: 1.098 MB / 0.4948 GB Notification: Performance of SimCode: time 2.91e-07/0.5137, allocations: 0 / 0.7212 GB, free: 1.098 MB / 0.4948 GB Notification: Performance of Templates: time 0.02683/0.5406, allocations: 22.5 MB / 0.7432 GB, free: 10.7 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/SimpleNaturalGasFixedComposition/SimpleNaturalGasFixedComposition.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches