Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.Tests.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) 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(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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008391/0.0008392, allocations: 100.3 kB / 17.3 MB, free: 6.344 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.0009472/0.0009475, allocations: 178.2 kB / 18.21 MB, free: 5.531 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.56/1.56, allocations: 205.4 MB / 224.4 MB, free: 13.07 MB / 190.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.0004624/0.0004624, allocations: 16 kB / 281.4 MB, free: 3.414 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.115, allocations: 47.58 MB / 329 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.4295/0.5446, allocations: 171.2 MB / 0.4884 GB, free: 14.55 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004481/0.5491, allocations: 3.818 MB / 0.4922 GB, free: 10.72 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003176/0.5494, allocations: 7.938 kB / 0.4922 GB, free: 10.71 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007353/0.5502, allocations: 219 kB / 0.4924 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006994/0.5509, allocations: 354.3 kB / 0.4927 GB, free: 10.15 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001345/0.5522, allocations: 499.7 kB / 0.4932 GB, free: 9.664 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001412/0.5537, allocations: 1.59 MB / 0.4947 GB, free: 8.066 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003079/0.554, allocations: 231.3 kB / 0.495 GB, free: 7.844 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002556/0.5565, allocations: 1.203 MB / 0.4961 GB, free: 6.637 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005315/0.5571, allocations: 434.7 kB / 0.4965 GB, free: 6.211 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.354e-05/0.5572, allocations: 32 kB / 0.4966 GB, free: 6.18 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001282/0.5585, allocations: 0.768 MB / 0.4973 GB, free: 5.41 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003274/0.5588, allocations: 406.9 kB / 0.4977 GB, free: 5.012 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000448/0.5593, allocations: 460 kB / 0.4982 GB, free: 4.555 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001474/0.5607, allocations: 1.585 MB / 0.4997 GB, free: 2.965 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.906e-06/0.5608, allocations: 4 kB / 0.4997 GB, free: 2.961 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.5608, allocations: 0 / 0.4997 GB, free: 2.961 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.749e-06/0.5608, allocations: 0 / 0.4997 GB, free: 2.961 MB / 398.1 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.001475/0.5623, allocations: 0.8854 MB / 0.5006 GB, free: 2.027 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.5623, allocations: 8.031 kB / 0.5006 GB, free: 2.02 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006568/0.563, allocations: 155 kB / 0.5007 GB, free: 1.867 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006358/0.5636, allocations: 480.7 kB / 0.5012 GB, free: 1.355 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.962e-05/0.5637, allocations: 49.31 kB / 0.5012 GB, free: 1.309 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001113/0.5638, allocations: 75.97 kB / 0.5013 GB, free: 1.234 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001437/0.5652, allocations: 0.9513 MB / 0.5022 GB, free: 284 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.626e-05/0.5653, allocations: 7.906 kB / 0.5022 GB, free: 276 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.107e-05/0.5654, allocations: 28 kB / 0.5023 GB, free: 248 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.717e-05/0.5654, allocations: 41.98 kB / 0.5023 GB, free: 204 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001214/0.5666, allocations: 0.8746 MB / 0.5032 GB, free: 15.32 MB / 414.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.005025/0.5717, allocations: 3.445 MB / 0.5065 GB, free: 11.6 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008403/0.5725, allocations: 0.6307 MB / 0.5071 GB, free: 10.96 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005156/0.5731, allocations: 374.1 kB / 0.5075 GB, free: 10.59 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.006e-05/0.5731, allocations: 24.53 kB / 0.5075 GB, free: 10.57 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.269e-05/0.5732, allocations: 47.06 kB / 0.5076 GB, free: 10.52 MB / 414.1 MB Notification: Performance of pre-optimization done (n=59): time 2.685e-06/0.5732, allocations: 0 / 0.5076 GB, free: 10.52 MB / 414.1 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.01477/0.588, allocations: 6.217 MB / 0.5136 GB, free: 3.898 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.997e-05/0.588, allocations: 67.94 kB / 0.5137 GB, free: 3.82 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006608/0.5887, allocations: 0.5525 MB / 0.5142 GB, free: 3.262 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.053e-05/0.5888, allocations: 41.7 kB / 0.5143 GB, free: 3.215 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001803/0.589, allocations: 276.6 kB / 0.5145 GB, free: 2.941 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001746/0.5892, allocations: 244.4 kB / 0.5148 GB, free: 2.699 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.495e-05/0.5893, allocations: 65.69 kB / 0.5148 GB, free: 2.629 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.5894, allocations: 370.8 kB / 0.5152 GB, free: 2.258 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000597/0.59, allocations: 441.8 kB / 0.5156 GB, free: 1.828 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000681/0.5907, allocations: 0.5155 MB / 0.5161 GB, free: 1.297 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00133/0.5921, allocations: 0.972 MB / 0.5171 GB, free: 312 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.5921, allocations: 0 / 0.5171 GB, free: 312 kB / 414.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.00192/0.594, allocations: 1.351 MB / 0.5184 GB, free: 14.92 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/0.594, allocations: 4 kB / 0.5184 GB, free: 14.92 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.705e-06/0.594, allocations: 0 / 0.5184 GB, free: 14.92 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005899/0.5946, allocations: 338.8 kB / 0.5187 GB, free: 14.56 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009323/0.5956, allocations: 179.8 kB / 0.5189 GB, free: 14.39 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007454/0.603, allocations: 10.25 MB / 0.5289 GB, free: 3.184 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007187/0.6038, allocations: 71.89 kB / 0.529 GB, free: 3.113 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.595e-05/0.6039, allocations: 47.98 kB / 0.529 GB, free: 3.066 MB / 430.1 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.0004527/0.6043, allocations: 285.4 kB / 0.5293 GB, free: 2.777 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001382/0.6045, allocations: 63.34 kB / 0.5293 GB, free: 2.715 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002044/0.6065, allocations: 1.279 MB / 0.5306 GB, free: 1.398 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.955e-06/0.6066, allocations: 8 kB / 0.5306 GB, free: 1.391 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.6066, allocations: 7.984 kB / 0.5306 GB, free: 1.383 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.2143/0.8208, allocations: 1.597 MB / 0.5322 GB, free: 164.5 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004595/0.8255, allocations: 2.27 MB / 0.5344 GB, free: 164.2 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.05e-05/0.8256, allocations: 5.547 kB / 0.5344 GB, free: 164.2 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00128/0.8268, allocations: 215.8 kB / 0.5346 GB, free: 164.2 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000258/0.8271, allocations: 67.2 kB / 0.5347 GB, free: 164.2 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001074/0.8272, allocations: 42.58 kB / 0.5347 GB, free: 164.2 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001213/0.8284, allocations: 1.437 MB / 0.5361 GB, free: 162.9 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.8285, allocations: 0 / 0.5361 GB, free: 162.9 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002607/0.8311, allocations: 1.594 MB / 0.5377 GB, free: 162.5 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002929/0.8314, allocations: 147.8 kB / 0.5378 GB, free: 162.4 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001153/0.8315, allocations: 33.69 kB / 0.5378 GB, free: 162.4 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008232/0.8323, allocations: 77.28 kB / 0.5379 GB, free: 162.3 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001552/0.8325, allocations: 56.2 kB / 0.538 GB, free: 162.3 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001336/0.8326, allocations: 64.83 kB / 0.538 GB, free: 162.3 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0006626/0.8333, allocations: 408.7 kB / 0.5384 GB, free: 162.2 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.8333, allocations: 0 / 0.5384 GB, free: 162.2 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001643/0.835, allocations: 342.4 kB / 0.5387 GB, free: 162.1 MB / 430.1 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.001708/0.8367, allocations: 0.5015 MB / 0.5392 GB, free: 162 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003215/0.8399, allocations: 1.867 MB / 0.541 GB, free: 160.9 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.279e-05/0.8399, allocations: 2.625 kB / 0.5411 GB, free: 160.9 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001365/0.8413, allocations: 0.6874 MB / 0.5417 GB, free: 160.6 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002969/0.8443, allocations: 497.3 kB / 0.5422 GB, free: 160.5 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004339/0.8487, allocations: 2.617 MB / 0.5448 GB, free: 159.2 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005056/0.8492, allocations: 0.9658 MB / 0.5457 GB, free: 158.4 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001183/0.8504, allocations: 283.1 kB / 0.546 GB, free: 158.4 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002907/0.8507, allocations: 95.22 kB / 0.5461 GB, free: 158.3 MB / 430.1 MB Notification: Performance of SimCode: time 1.152e-06/0.8507, allocations: 2.078 kB / 0.5461 GB, free: 158.3 MB / 430.1 MB Notification: Performance of Templates: time 0.03297/0.8837, allocations: 25.11 MB / 0.5706 GB, free: 136.9 MB / 430.1 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