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: translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001169/0.001169, allocations: 92.66 kB / 17 MB, free: 6.844 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.00154/0.00154, allocations: 188.6 kB / 17.89 MB, free: 6.078 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.434/1.434, allocations: 223.3 MB / 241.9 MB, free: 292 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2154/0.2154, allocations: 44.25 MB / 337.3 MB, free: 2.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000572/0.0005721, allocations: 8 kB / 409.7 MB, free: 27.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1773/0.1779, allocations: 61.92 MB / 471.6 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition): time 0.4633/0.6413, allocations: 161.8 MB / 0.6185 GB, free: 1.355 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.009135/0.6505, allocations: 6.188 MB / 0.6246 GB, free: 11.15 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001038/0.6515, allocations: 19.81 kB / 0.6246 GB, free: 11.13 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001084/0.6526, allocations: 314 kB / 0.6249 GB, free: 10.82 MB / 462.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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 4.0.0+maint.om/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 4.0.0+maint.om/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 4.0.0+maint.om/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.004085/0.6567, allocations: 1.396 MB / 0.6262 GB, free: 9.422 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003365/0.6601, allocations: 1.052 MB / 0.6273 GB, free: 8.375 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.003101/0.6632, allocations: 2.561 MB / 0.6298 GB, free: 5.809 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007371/0.664, allocations: 448.9 kB / 0.6302 GB, free: 5.363 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003763/0.6677, allocations: 1.544 MB / 0.6317 GB, free: 3.816 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002802/0.6706, allocations: 1.543 MB / 0.6332 GB, free: 2.27 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001339/0.6707, allocations: 40 kB / 0.6332 GB, free: 2.23 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002558/0.6733, allocations: 1.217 MB / 0.6344 GB, free: 1.012 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004485/0.6737, allocations: 418.9 kB / 0.6348 GB, free: 0.6016 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003097/0.6741, allocations: 229.2 kB / 0.6351 GB, free: 380 kB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002002/0.6761, allocations: 1.547 MB / 0.6366 GB, free: 14.82 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/0.6761, allocations: 0 / 0.6366 GB, free: 14.82 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.6761, allocations: 0 / 0.6366 GB, free: 14.82 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.214e-05/0.6761, allocations: 0 / 0.6366 GB, free: 14.82 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: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.002723/0.6788, allocations: 1.255 MB / 0.6378 GB, free: 13.52 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.6789, allocations: 8.562 kB / 0.6378 GB, free: 13.51 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001284/0.6802, allocations: 290.5 kB / 0.6381 GB, free: 13.22 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009677/0.6812, allocations: 0.59 MB / 0.6386 GB, free: 12.59 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001263/0.6813, allocations: 121.5 kB / 0.6388 GB, free: 12.46 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001245/0.6814, allocations: 67.94 kB / 0.6388 GB, free: 12.4 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001943/0.6834, allocations: 1.256 MB / 0.6401 GB, free: 11.07 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.393e-05/0.6834, allocations: 7.938 kB / 0.6401 GB, free: 11.06 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001246/0.6835, allocations: 39.98 kB / 0.6401 GB, free: 11.02 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.611e-05/0.6836, allocations: 77.27 kB / 0.6402 GB, free: 10.95 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001615/0.6853, allocations: 1.063 MB / 0.6412 GB, free: 9.887 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.006125/0.6914, allocations: 4.848 MB / 0.6459 GB, free: 4.738 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004803/0.6919, allocations: 286.6 kB / 0.6462 GB, free: 4.449 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002384/0.6921, allocations: 144.8 kB / 0.6464 GB, free: 4.305 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001042/0.6923, allocations: 101 kB / 0.6465 GB, free: 4.188 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.798e-05/0.6923, allocations: 42.56 kB / 0.6465 GB, free: 4.137 MB / 478.1 MB Notification: Performance of pre-optimization done (n=28): time 2.064e-06/0.6923, allocations: 0 / 0.6465 GB, free: 4.137 MB / 478.1 MB Notification: Performance of matching and sorting (n=33): time 0.005584/0.6979, allocations: 1.744 MB / 0.6482 GB, free: 2.309 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.858e-05/0.698, allocations: 132.5 kB / 0.6483 GB, free: 2.148 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001208/0.6992, allocations: 0.931 MB / 0.6492 GB, free: 1.191 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 5.699e-05/0.6993, allocations: 37.69 kB / 0.6493 GB, free: 1.148 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004354/0.6997, allocations: 0.5594 MB / 0.6498 GB, free: 0.5781 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001091/0.6999, allocations: 138.3 kB / 0.6499 GB, free: 452 kB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.276e-05/0.6999, allocations: 23.94 kB / 0.65 GB, free: 428 kB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0002018/0.7001, allocations: 402.7 kB / 0.6504 GB, free: 16 kB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000456/0.7006, allocations: 266.5 kB / 0.6506 GB, free: 15.75 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008663/0.7014, allocations: 0.8639 MB / 0.6515 GB, free: 14.6 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006396/0.7021, allocations: 456.3 kB / 0.6519 GB, free: 14.16 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.105e-06/0.7021, allocations: 7.953 kB / 0.6519 GB, free: 14.15 MB / 494.1 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001979/0.7041, allocations: 1.232 MB / 0.6531 GB, free: 12.91 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.969e-05/0.7041, allocations: 13.88 kB / 0.6531 GB, free: 12.89 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.157e-05/0.7042, allocations: 23.98 kB / 0.6531 GB, free: 12.87 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001236/0.7054, allocations: 296.6 kB / 0.6534 GB, free: 12.58 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005686/0.706, allocations: 211.5 kB / 0.6536 GB, free: 12.37 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001043/0.707, allocations: 0.9022 MB / 0.6545 GB, free: 11.45 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007366/0.7078, allocations: 63.94 kB / 0.6546 GB, free: 11.38 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.782e-05/0.7079, allocations: 68 kB / 0.6546 GB, free: 11.32 MB / 494.1 MB 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.0004522/0.7084, allocations: 345.2 kB / 0.655 GB, free: 10.97 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001347/0.7085, allocations: 98.92 kB / 0.6551 GB, free: 10.87 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001034/0.7096, allocations: 0.5123 MB / 0.6556 GB, free: 10.35 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.7096, allocations: 4 kB / 0.6556 GB, free: 10.35 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.478e-06/0.7096, allocations: 4 kB / 0.6556 GB, free: 10.34 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.622e-06/0.7096, allocations: 3.984 kB / 0.6556 GB, free: 10.34 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001815/0.7114, allocations: 1.113 MB / 0.6566 GB, free: 9.168 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.7114, allocations: 0 / 0.6566 GB, free: 9.168 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009425/0.7124, allocations: 187.8 kB / 0.6568 GB, free: 8.984 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001049/0.7125, allocations: 24.75 kB / 0.6569 GB, free: 8.957 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.354e-05/0.7125, allocations: 12 kB / 0.6569 GB, free: 8.945 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002423/0.715, allocations: 2.68 MB / 0.6595 GB, free: 5.996 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.715, allocations: 0 / 0.6595 GB, free: 5.996 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001309/0.7163, allocations: 0.6992 MB / 0.6602 GB, free: 5.273 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004183/0.7167, allocations: 203.9 kB / 0.6604 GB, free: 5.055 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001143/0.7169, allocations: 15.94 kB / 0.6604 GB, free: 5.039 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004448/0.7173, allocations: 27.98 kB / 0.6604 GB, free: 5.012 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.187e-05/0.7174, allocations: 19.97 kB / 0.6604 GB, free: 4.992 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.437e-05/0.7174, allocations: 24.05 kB / 0.6604 GB, free: 4.969 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00101/0.7185, allocations: 0.6165 MB / 0.661 GB, free: 4.34 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.7185, allocations: 0 / 0.661 GB, free: 4.34 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001476/0.72, allocations: 391.8 kB / 0.6614 GB, free: 3.957 MB / 494.1 MB 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.00195/0.7219, allocations: 0.5427 MB / 0.6619 GB, free: 3.414 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001494/0.7234, allocations: 0.6656 MB / 0.6626 GB, free: 2.75 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/0.7234, allocations: 0 / 0.6626 GB, free: 2.75 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009279/0.7244, allocations: 368.3 kB / 0.6629 GB, free: 2.379 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002008/0.7264, allocations: 408.7 kB / 0.6633 GB, free: 1.984 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003132/0.7296, allocations: 1.897 MB / 0.6652 GB, free: 52 kB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007786/0.7303, allocations: 1.036 MB / 0.6662 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001313/0.7317, allocations: 378.1 kB / 0.6666 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002469/0.7319, allocations: 79.42 kB / 0.6666 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of SimCode: time 1.362e-06/0.7319, allocations: 0 / 0.6666 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of Templates: time 0.03962/0.7716, allocations: 19.84 MB / 0.686 GB, free: 10.93 MB / 0.5137 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/SimpleNaturalGasFixedComposition/SimpleNaturalGasFixedComposition.csv","/var/lib/jenkins/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