Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.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.SimpleNaturalGasFixedComposition,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition") translateModel(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001541/0.001542, allocations: 107.9 kB / 18.36 MB, free: 4.586 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.001645/0.001646, allocations: 188.5 kB / 19.3 MB, free: 3.66 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.337/1.337, allocations: 205.1 MB / 225.2 MB, free: 12.25 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.001258/0.001258, allocations: 51.92 kB / 329.2 MB, free: 3.285 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09475/0.09601, allocations: 46.62 MB / 375.8 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition): time 0.4259/0.522, allocations: 175.6 MB / 0.5385 GB, free: 15.42 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.004697/0.5267, allocations: 3.844 MB / 0.5423 GB, free: 11.56 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001683/0.5269, allocations: 4 kB / 0.5423 GB, free: 11.55 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007177/0.5277, allocations: 226.7 kB / 0.5425 GB, free: 11.33 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006505/0.5284, allocations: 358.1 kB / 0.5428 GB, free: 10.98 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001444/0.5298, allocations: 0.5346 MB / 0.5434 GB, free: 10.45 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.001181/0.531, allocations: 1.114 MB / 0.5445 GB, free: 9.328 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000211/0.5312, allocations: 112.6 kB / 0.5446 GB, free: 9.219 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003023/0.5343, allocations: 1.266 MB / 0.5458 GB, free: 7.953 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004311/0.5347, allocations: 330.8 kB / 0.5461 GB, free: 7.629 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001008/0.5348, allocations: 44 kB / 0.5462 GB, free: 7.586 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001044/0.5359, allocations: 455.1 kB / 0.5466 GB, free: 7.141 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000239/0.5361, allocations: 231.4 kB / 0.5468 GB, free: 6.914 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000373/0.5365, allocations: 314.8 kB / 0.5471 GB, free: 6.605 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001261/0.5378, allocations: 1.075 MB / 0.5482 GB, free: 5.527 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.183e-06/0.5378, allocations: 0 / 0.5482 GB, free: 5.527 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.5378, allocations: 3.938 kB / 0.5482 GB, free: 5.523 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.325e-05/0.5378, allocations: 0 / 0.5482 GB, free: 5.523 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.001369/0.5392, allocations: 0.8075 MB / 0.549 GB, free: 4.668 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.5392, allocations: 12.03 kB / 0.549 GB, free: 4.656 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006297/0.5399, allocations: 115.5 kB / 0.5491 GB, free: 4.543 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004858/0.5404, allocations: 381.1 kB / 0.5494 GB, free: 4.129 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.203e-05/0.5404, allocations: 32.98 kB / 0.5495 GB, free: 4.094 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.357e-05/0.5405, allocations: 36 kB / 0.5495 GB, free: 4.059 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008438/0.5413, allocations: 0.5576 MB / 0.55 GB, free: 3.484 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.849e-05/0.5414, allocations: 0 / 0.55 GB, free: 3.484 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.945e-05/0.5414, allocations: 24 kB / 0.5501 GB, free: 3.461 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.479e-05/0.5415, allocations: 12 kB / 0.5501 GB, free: 3.449 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006634/0.5421, allocations: 454.3 kB / 0.5505 GB, free: 3 MB / 478.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.00351/0.5456, allocations: 2.121 MB / 0.5526 GB, free: 0.7109 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000253/0.5459, allocations: 146.6 kB / 0.5527 GB, free: 0.5586 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001222/0.546, allocations: 80.84 kB / 0.5528 GB, free: 488 kB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.511e-05/0.5461, allocations: 240 / 0.5528 GB, free: 488 kB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.609e-05/0.5461, allocations: 50.48 kB / 0.5529 GB, free: 428 kB / 478.1 MB Notification: Performance of pre-optimization done (n=18): time 1.292e-06/0.5461, allocations: 0 / 0.5529 GB, free: 428 kB / 478.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.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=23): time 0.2299/0.776, allocations: 1.74 MB / 0.5546 GB, free: 170.3 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.567e-05/0.7761, allocations: 56.06 kB / 0.5546 GB, free: 170.2 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005364/0.7766, allocations: 483.1 kB / 0.5551 GB, free: 170.1 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 2.762e-05/0.7767, allocations: 31.14 kB / 0.5551 GB, free: 170.1 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002253/0.7769, allocations: 320.1 kB / 0.5554 GB, free: 169.9 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.95e-05/0.777, allocations: 90.47 kB / 0.5555 GB, free: 169.8 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001802/0.7772, allocations: 123.3 kB / 0.5556 GB, free: 169.8 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.879e-05/0.7773, allocations: 357.9 kB / 0.5559 GB, free: 169.5 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002587/0.7775, allocations: 133 kB / 0.5561 GB, free: 169.5 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004578/0.778, allocations: 436.3 kB / 0.5565 GB, free: 169.1 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006398/0.7787, allocations: 0.6167 MB / 0.5571 GB, free: 168.6 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.282e-06/0.7787, allocations: 3.375 kB / 0.5571 GB, free: 168.6 MB / 478.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0009821/0.7797, allocations: 0.6291 MB / 0.5577 GB, free: 168.3 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.682e-05/0.7797, allocations: 9.859 kB / 0.5577 GB, free: 168.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.801e-05/0.7797, allocations: 13.94 kB / 0.5577 GB, free: 168.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002042/0.7799, allocations: 56.83 kB / 0.5578 GB, free: 168.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005079/0.7805, allocations: 141.2 kB / 0.5579 GB, free: 168.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001247/0.7817, allocations: 1.942 MB / 0.5598 GB, free: 166.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004331/0.7822, allocations: 24.94 kB / 0.5598 GB, free: 166.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.26e-05/0.7822, allocations: 35.78 kB / 0.5599 GB, free: 166.3 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * 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 (73): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002939/0.7825, allocations: 222.6 kB / 0.5601 GB, free: 166.2 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.226e-05/0.7826, allocations: 43.47 kB / 0.5601 GB, free: 166.1 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005541/0.7832, allocations: 286.5 kB / 0.5604 GB, free: 166 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.7832, allocations: 2.875 kB / 0.5604 GB, free: 166 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.7832, allocations: 6.172 kB / 0.5604 GB, free: 166 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004026/0.7836, allocations: 0.5282 MB / 0.5609 GB, free: 165.5 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001001/0.7846, allocations: 0.6973 MB / 0.5616 GB, free: 165 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.7847, allocations: 1.078 kB / 0.5616 GB, free: 165 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002838/0.7849, allocations: 53.91 kB / 0.5617 GB, free: 165 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.62e-05/0.785, allocations: 20.05 kB / 0.5617 GB, free: 165 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.106e-05/0.7851, allocations: 12.61 kB / 0.5617 GB, free: 165 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000664/0.7857, allocations: 1.381 MB / 0.563 GB, free: 163.6 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.7857, allocations: 1.094 kB / 0.563 GB, free: 163.6 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005481/0.7863, allocations: 436.8 kB / 0.5635 GB, free: 163.3 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.679e-05/0.7864, allocations: 115.5 kB / 0.5636 GB, free: 163.2 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.533e-05/0.7865, allocations: 5.125 kB / 0.5636 GB, free: 163.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002461/0.7867, allocations: 8.688 kB / 0.5636 GB, free: 163.2 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.388e-05/0.7868, allocations: 18.42 kB / 0.5636 GB, free: 163.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.916e-05/0.7868, allocations: 17.22 kB / 0.5636 GB, free: 163.2 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0003964/0.7872, allocations: 327.5 kB / 0.5639 GB, free: 163 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.7872, allocations: 0 / 0.5639 GB, free: 163 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001002/0.7882, allocations: 211.5 kB / 0.5641 GB, free: 163 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (23): * Single equations (assignments): 22 * 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.001346/0.7896, allocations: 456.4 kB / 0.5646 GB, free: 162.9 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00079/0.7904, allocations: 470.7 kB / 0.565 GB, free: 162.7 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.7904, allocations: 1.062 kB / 0.565 GB, free: 162.7 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002336/0.7906, allocations: 216.2 kB / 0.5652 GB, free: 162.5 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001098/0.7917, allocations: 218.3 kB / 0.5654 GB, free: 162.5 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00152/0.7933, allocations: 0.8951 MB / 0.5663 GB, free: 161.9 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003705/0.7936, allocations: 0.8208 MB / 0.5671 GB, free: 161.2 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001469/0.7938, allocations: 55.67 kB / 0.5672 GB, free: 161.2 MB / 478.1 MB Notification: Performance of SimCode: time 2.51e-07/0.7938, allocations: 0 / 0.5672 GB, free: 161.2 MB / 478.1 MB Notification: Performance of Templates: time 0.02079/0.8146, allocations: 12.14 MB / 0.579 GB, free: 157.1 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.makefile (rm -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.sim & ./Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/Tests/MediaTestModels/IdealGases/SimpleNaturalGasFixedComposition/SimpleNaturalGasFixedComposition.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches