Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001364/0.001364, allocations: 103.4 kB / 17.98 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001313/0.001314, allocations: 213.8 kB / 18.92 MB, free: 4.43 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 227.4 MB / 247.1 MB, free: 10.66 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2238/0.2238, allocations: 46.13 MB / 344.5 MB, free: 11.71 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002244/0.002244, allocations: 76.33 kB / 417.8 MB, free: 20.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1346/0.1369, allocations: 62.46 MB / 480.2 MB, free: 5.566 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition): time 0.4709/0.6078, allocations: 178.4 MB / 0.6432 GB, free: 1.25 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.009644/0.6175, allocations: 6.576 MB / 0.6496 GB, free: 10.66 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000777/0.6183, allocations: 31.75 kB / 0.6497 GB, free: 10.62 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001152/0.6195, allocations: 374.2 kB / 0.65 GB, free: 10.26 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004139/0.6237, allocations: 1.637 MB / 0.6516 GB, free: 8.621 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003718/0.6274, allocations: 1.388 MB / 0.653 GB, free: 7.238 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002814/0.6302, allocations: 2.122 MB / 0.655 GB, free: 5.113 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008673/0.6311, allocations: 0.5363 MB / 0.6556 GB, free: 4.57 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003872/0.635, allocations: 1.757 MB / 0.6573 GB, free: 2.809 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002953/0.638, allocations: 1.609 MB / 0.6588 GB, free: 1.195 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002106/0.6382, allocations: 80 kB / 0.6589 GB, free: 1.117 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003179/0.6414, allocations: 1.665 MB / 0.6605 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0005349/0.6419, allocations: 450.7 kB / 0.661 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0008262/0.6428, allocations: 0.5601 MB / 0.6615 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002469/0.6453, allocations: 1.622 MB / 0.6631 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.6453, allocations: 0 / 0.6631 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.292e-06/0.6453, allocations: 0 / 0.6631 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 2.042e-05/0.6453, allocations: 4 kB / 0.6631 GB, free: 12.82 MB / 0.4981 GB 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.003342/0.6487, allocations: 1.453 MB / 0.6645 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.6487, allocations: 12.03 kB / 0.6645 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001422/0.6501, allocations: 282.5 kB / 0.6648 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001032/0.6512, allocations: 0.6052 MB / 0.6654 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001277/0.6513, allocations: 112.6 kB / 0.6655 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001416/0.6515, allocations: 67.98 kB / 0.6656 GB, free: 10.19 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002031/0.6535, allocations: 1.271 MB / 0.6668 GB, free: 8.852 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.724e-05/0.6536, allocations: 3.938 kB / 0.6668 GB, free: 8.848 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001131/0.6537, allocations: 32 kB / 0.6669 GB, free: 8.816 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001076/0.6538, allocations: 81.27 kB / 0.6669 GB, free: 8.738 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001735/0.6555, allocations: 1.058 MB / 0.668 GB, free: 7.68 MB / 0.4981 GB 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.007387/0.6629, allocations: 4.916 MB / 0.6728 GB, free: 2.469 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005832/0.6635, allocations: 308.3 kB / 0.6731 GB, free: 2.16 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002582/0.6638, allocations: 144.8 kB / 0.6732 GB, free: 2.016 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001267/0.6639, allocations: 93.09 kB / 0.6733 GB, free: 1.906 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.398e-05/0.664, allocations: 46.19 kB / 0.6733 GB, free: 1.855 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=28): time 5.871e-06/0.664, allocations: 3.984 kB / 0.6733 GB, free: 1.852 MB / 0.4981 GB Notification: Performance of matching and sorting (n=33): time 0.006658/0.6707, allocations: 1.823 MB / 0.6751 GB, free: 15.94 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001051/0.6708, allocations: 140.5 kB / 0.6752 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001253/0.672, allocations: 0.9387 MB / 0.6762 GB, free: 14.81 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 5.241e-05/0.6721, allocations: 33.7 kB / 0.6762 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005138/0.6726, allocations: 0.5633 MB / 0.6767 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001239/0.6728, allocations: 134.3 kB / 0.6769 GB, free: 14.07 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000309/0.6731, allocations: 218.6 kB / 0.6771 GB, free: 13.85 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0002461/0.6733, allocations: 402.7 kB / 0.6775 GB, free: 13.45 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004735/0.6738, allocations: 270.5 kB / 0.6777 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001142/0.675, allocations: 0.8639 MB / 0.6786 GB, free: 12.03 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001642/0.6766, allocations: 1.187 MB / 0.6797 GB, free: 10.56 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.768e-06/0.6766, allocations: 4 kB / 0.6797 GB, free: 10.56 MB / 0.5137 GB Notification: Performance of matching and sorting (n=130) (initialization): time 0.002083/0.6787, allocations: 1.243 MB / 0.6809 GB, free: 9.305 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.916e-05/0.6788, allocations: 12 kB / 0.681 GB, free: 9.293 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.237e-05/0.6788, allocations: 23.94 kB / 0.681 GB, free: 9.27 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001392/0.6802, allocations: 295.5 kB / 0.6813 GB, free: 8.98 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006252/0.6808, allocations: 207.6 kB / 0.6815 GB, free: 8.777 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001301/0.6821, allocations: 0.9074 MB / 0.6823 GB, free: 7.844 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000925/0.6831, allocations: 60.03 kB / 0.6824 GB, free: 7.785 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001023/0.6832, allocations: 68 kB / 0.6825 GB, free: 7.719 MB / 0.5137 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 (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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,17)} Notification: Performance of prepare postOptimizeDAE: time 0.0005678/0.6838, allocations: 337.2 kB / 0.6828 GB, free: 7.379 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001841/0.6839, allocations: 98.81 kB / 0.6829 GB, free: 7.281 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001117/0.6851, allocations: 0.5118 MB / 0.6834 GB, free: 6.762 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.105e-06/0.6851, allocations: 11.98 kB / 0.6834 GB, free: 6.75 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.797e-06/0.6851, allocations: 4 kB / 0.6834 GB, free: 6.746 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.6851, allocations: 0 / 0.6834 GB, free: 6.746 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001864/0.687, allocations: 1.117 MB / 0.6845 GB, free: 5.566 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.687, allocations: 0 / 0.6845 GB, free: 5.566 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001012/0.688, allocations: 191.8 kB / 0.6847 GB, free: 5.379 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.833e-05/0.6881, allocations: 20.84 kB / 0.6847 GB, free: 5.355 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.569e-05/0.6882, allocations: 11.94 kB / 0.6847 GB, free: 5.344 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002532/0.6907, allocations: 2.885 MB / 0.6875 GB, free: 2.184 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.6907, allocations: 0 / 0.6875 GB, free: 2.184 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001143/0.6919, allocations: 0.7028 MB / 0.6882 GB, free: 1.457 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003424/0.6922, allocations: 196 kB / 0.6884 GB, free: 1.246 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001253/0.6923, allocations: 11.91 kB / 0.6884 GB, free: 1.234 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004595/0.6928, allocations: 28.11 kB / 0.6884 GB, free: 1.207 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.403e-05/0.6929, allocations: 23.95 kB / 0.6885 GB, free: 1.184 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.186e-05/0.693, allocations: 20 kB / 0.6885 GB, free: 1.164 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0009165/0.6939, allocations: 0.6282 MB / 0.6891 GB, free: 0.5234 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6939, allocations: 0 / 0.6891 GB, free: 0.5234 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001571/0.6955, allocations: 383.9 kB / 0.6895 GB, free: 152 kB / 0.5137 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 (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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.002115/0.6976, allocations: 0.6692 MB / 0.6901 GB, free: 15.48 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001619/0.6992, allocations: 0.7285 MB / 0.6908 GB, free: 14.75 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.848e-06/0.6992, allocations: 0 / 0.6908 GB, free: 14.75 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0009392/0.7002, allocations: 362.9 kB / 0.6912 GB, free: 14.38 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001972/0.7022, allocations: 430.5 kB / 0.6916 GB, free: 13.97 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003137/0.7053, allocations: 1.947 MB / 0.6935 GB, free: 11.98 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000751/0.7061, allocations: 1.021 MB / 0.6945 GB, free: 10.93 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002825/0.7064, allocations: 95.36 kB / 0.6946 GB, free: 10.84 MB / 0.5294 GB Notification: Performance of SimCode: time 1.062e-06/0.7064, allocations: 0 / 0.6946 GB, free: 10.84 MB / 0.5294 GB Notification: Performance of Templates: time 0.2518/0.9582, allocations: 22.71 MB / 0.7167 GB, free: 194 MB / 0.5294 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.sim & ./ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/SimpleNaturalGasFixedComposition/SimpleNaturalGasFixedComposition.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,volume.medium.T,volume.medium.p Variables in the result:time,volume.medium.T,volume.medium.p