Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001046/0.001046, allocations: 113.4 kB / 17.78 MB, free: 5.266 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.001143/0.001143, allocations: 188.9 kB / 18.71 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.34/1.34, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2076/0.2076, allocations: 44.17 MB / 336.7 MB, free: 2.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002164/0.002164, allocations: 68.12 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.357/0.3592, allocations: 60.83 MB / 0.5184 GB, free: 3.305 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition): time 0.1917/0.551, allocations: 177.3 MB / 0.6915 GB, free: 10.23 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.00866/0.5597, allocations: 6.511 MB / 0.6979 GB, free: 3.699 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000782/0.5605, allocations: 23.81 kB / 0.6979 GB, free: 3.676 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001232/0.5617, allocations: 413.7 kB / 0.6983 GB, free: 3.27 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.004405/0.5662, allocations: 1.733 MB / 0.7 GB, free: 1.535 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.004412/0.5707, allocations: 1.487 MB / 0.7015 GB, free: 52 kB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.003009/0.5737, allocations: 2.114 MB / 0.7035 GB, free: 13.93 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008533/0.5745, allocations: 0.5324 MB / 0.7041 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0038/0.5784, allocations: 1.717 MB / 0.7057 GB, free: 11.67 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002801/0.5812, allocations: 1.461 MB / 0.7072 GB, free: 10.2 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0002286/0.5814, allocations: 76 kB / 0.7072 GB, free: 10.13 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00309/0.5845, allocations: 1.31 MB / 0.7085 GB, free: 8.816 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.000446/0.585, allocations: 450.8 kB / 0.7089 GB, free: 8.375 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0007218/0.5857, allocations: 0.5524 MB / 0.7095 GB, free: 7.82 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.003165/0.5889, allocations: 2.061 MB / 0.7115 GB, free: 5.754 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.5889, allocations: 0 / 0.7115 GB, free: 5.754 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.134e-06/0.5889, allocations: 0 / 0.7115 GB, free: 5.754 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.579e-05/0.5889, allocations: 0 / 0.7115 GB, free: 5.754 MB / 0.5606 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.00323/0.5922, allocations: 1.455 MB / 0.7129 GB, free: 4.25 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/0.5922, allocations: 12.03 kB / 0.7129 GB, free: 4.238 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001838/0.5924, allocations: 134.6 kB / 0.713 GB, free: 4.098 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001414/0.5938, allocations: 286.6 kB / 0.7133 GB, free: 3.816 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001105/0.595, allocations: 0.6324 MB / 0.7139 GB, free: 3.145 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001351/0.5951, allocations: 116.7 kB / 0.7141 GB, free: 3.016 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001256/0.5952, allocations: 71.97 kB / 0.7141 GB, free: 2.945 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001919/0.5972, allocations: 1.256 MB / 0.7153 GB, free: 1.617 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.397e-05/0.5972, allocations: 4 kB / 0.7153 GB, free: 1.613 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001176/0.5973, allocations: 32 kB / 0.7154 GB, free: 1.582 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001083/0.5974, allocations: 85.2 kB / 0.7155 GB, free: 1.5 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001661/0.5991, allocations: 1.051 MB / 0.7165 GB, free: 460 kB / 0.5606 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.2685/0.8676, allocations: 4.921 MB / 0.7213 GB, free: 186.9 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005453/0.8682, allocations: 310.2 kB / 0.7216 GB, free: 186.8 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002481/0.8685, allocations: 147.2 kB / 0.7217 GB, free: 186.7 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 9.353e-05/0.8686, allocations: 96.34 kB / 0.7218 GB, free: 186.6 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.791e-05/0.8686, allocations: 38.22 kB / 0.7219 GB, free: 186.6 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=28): time 2.535e-06/0.8686, allocations: 0 / 0.7219 GB, free: 186.6 MB / 0.5606 GB Notification: Performance of matching and sorting (n=33): time 0.006436/0.875, allocations: 1.833 MB / 0.7236 GB, free: 185.6 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.502e-05/0.8751, allocations: 137.6 kB / 0.7238 GB, free: 185.5 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001175/0.8763, allocations: 0.9386 MB / 0.7247 GB, free: 185.1 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.731e-05/0.8764, allocations: 36.45 kB / 0.7247 GB, free: 185 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003562/0.8767, allocations: 0.5654 MB / 0.7253 GB, free: 184.6 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001085/0.8768, allocations: 131.6 kB / 0.7254 GB, free: 184.5 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003128/0.8772, allocations: 221 kB / 0.7256 GB, free: 184.4 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001451/0.8773, allocations: 397.9 kB / 0.726 GB, free: 184 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004863/0.8778, allocations: 272.7 kB / 0.7263 GB, free: 183.9 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007575/0.8786, allocations: 0.8683 MB / 0.7271 GB, free: 183.1 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001118/0.8797, allocations: 1.18 MB / 0.7283 GB, free: 182.1 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.013e-05/0.8797, allocations: 6.953 kB / 0.7283 GB, free: 182.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001894/0.8816, allocations: 1.246 MB / 0.7295 GB, free: 181.6 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.711e-05/0.8817, allocations: 17.94 kB / 0.7295 GB, free: 181.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.037e-05/0.8817, allocations: 19.62 kB / 0.7295 GB, free: 181.6 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001272/0.883, allocations: 289.7 kB / 0.7298 GB, free: 181.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006054/0.8836, allocations: 206.3 kB / 0.73 GB, free: 181.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009519/0.8846, allocations: 0.9048 MB / 0.7309 GB, free: 180.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000771/0.8853, allocations: 43.95 kB / 0.7309 GB, free: 180.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.785e-05/0.8855, allocations: 70.88 kB / 0.731 GB, free: 180.8 MB / 0.5606 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.0004091/0.8859, allocations: 349.5 kB / 0.7313 GB, free: 180.5 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001348/0.886, allocations: 94.12 kB / 0.7314 GB, free: 180.5 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009097/0.8869, allocations: 0.5103 MB / 0.7319 GB, free: 180.2 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.652e-06/0.8869, allocations: 8.328 kB / 0.7319 GB, free: 180.2 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.652e-06/0.887, allocations: 3.938 kB / 0.7319 GB, free: 180.2 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-06/0.887, allocations: 1.031 kB / 0.7319 GB, free: 180.2 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001522/0.8885, allocations: 1.137 MB / 0.733 GB, free: 179.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.8885, allocations: 0 / 0.733 GB, free: 179.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009402/0.8895, allocations: 179 kB / 0.7332 GB, free: 179.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001162/0.8896, allocations: 27.03 kB / 0.7332 GB, free: 179.3 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.872e-05/0.8896, allocations: 12.56 kB / 0.7332 GB, free: 179.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001487/0.8911, allocations: 2.872 MB / 0.736 GB, free: 176.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.8911, allocations: 0 / 0.736 GB, free: 176.3 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001082/0.8922, allocations: 0.7071 MB / 0.7367 GB, free: 175.9 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003079/0.8925, allocations: 194.2 kB / 0.7369 GB, free: 175.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001211/0.8927, allocations: 10.38 kB / 0.7369 GB, free: 175.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004183/0.8931, allocations: 15.55 kB / 0.7369 GB, free: 175.7 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.083e-05/0.8932, allocations: 24.09 kB / 0.737 GB, free: 175.7 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.451e-05/0.8932, allocations: 21.52 kB / 0.737 GB, free: 175.7 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0008767/0.8941, allocations: 0.6264 MB / 0.7376 GB, free: 175.3 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.81e-07/0.8941, allocations: 1.094 kB / 0.7376 GB, free: 175.3 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001398/0.8955, allocations: 384.2 kB / 0.738 GB, free: 175.2 MB / 0.5606 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.003283/0.8988, allocations: 1.783 MB / 0.7397 GB, free: 174.1 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001509/0.9004, allocations: 0.667 MB / 0.7404 GB, free: 173.8 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.624e-06/0.9004, allocations: 2.438 kB / 0.7404 GB, free: 173.8 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0008767/0.9013, allocations: 372.3 kB / 0.7407 GB, free: 173.6 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001945/0.9032, allocations: 429.9 kB / 0.7411 GB, free: 173.3 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01058/0.9138, allocations: 8.161 MB / 0.7491 GB, free: 166.9 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000539/0.9144, allocations: 1.024 MB / 0.7501 GB, free: 165.8 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001087/0.9155, allocations: 382.1 kB / 0.7505 GB, free: 165.5 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003976/0.9159, allocations: 323.3 kB / 0.7508 GB, free: 165.2 MB / 0.5606 GB Notification: Performance of SimCode: time 7.41e-07/0.9159, allocations: 3.938 kB / 0.7508 GB, free: 165.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07822/0.9942, allocations: 31.29 MB / 0.7813 GB, free: 134.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.57/18.57, allocations: 8.312 kB / 0.7813 GB, free: 134.3 MB / 0.5606 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches