Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas",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.00124/0.00124, allocations: 104.1 kB / 16.27 MB, free: 5.93 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.001188/0.001188, allocations: 190.1 kB / 17.2 MB, free: 5.574 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.448/1.448, allocations: 205.1 MB / 223.1 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2082/0.2082, allocations: 43.52 MB / 313.9 MB, free: 0.5273 MB / 254.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.001716/0.001717, allocations: 75.19 kB / 382.8 MB, free: 56.7 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09836/0.1001, allocations: 57.78 MB / 440.6 MB, free: 6.801 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.4347/0.5348, allocations: 183.1 MB / 0.6091 GB, free: 7.621 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.009531/0.5444, allocations: 6.958 MB / 0.6159 GB, free: 2.52 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001016/0.5454, allocations: 21.94 kB / 0.6159 GB, free: 2.508 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001359/0.5469, allocations: 428.9 kB / 0.6163 GB, free: 2.16 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006064/0.553, allocations: 2.023 MB / 0.6183 GB, free: 0.6836 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004695/0.5577, allocations: 1.714 MB / 0.62 GB, free: 15.46 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002756/0.5605, allocations: 2.227 MB / 0.6221 GB, free: 14.23 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00115/0.5616, allocations: 0.7649 MB / 0.6229 GB, free: 13.77 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004107/0.5657, allocations: 1.918 MB / 0.6248 GB, free: 12.32 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002644/0.5684, allocations: 1.581 MB / 0.6263 GB, free: 10.73 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002621/0.5687, allocations: 108 kB / 0.6264 GB, free: 10.63 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003375/0.5721, allocations: 1.63 MB / 0.628 GB, free: 8.996 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006736/0.5728, allocations: 0.6859 MB / 0.6287 GB, free: 8.309 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008964/0.5737, allocations: 0.7548 MB / 0.6294 GB, free: 7.551 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004676/0.5784, allocations: 2.77 MB / 0.6321 GB, free: 4.773 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.5784, allocations: 0 / 0.6321 GB, free: 4.773 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.5784, allocations: 0 / 0.6321 GB, free: 4.773 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.85e-05/0.5784, allocations: 0 / 0.6321 GB, free: 4.773 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 276 * Number of variables: 276 Notification: Performance of Generate backend data structure: time 0.003628/0.5821, allocations: 1.688 MB / 0.6338 GB, free: 3.035 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.467e-05/0.5821, allocations: 11.89 kB / 0.6338 GB, free: 3.023 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002783/0.5824, allocations: 180.9 kB / 0.6339 GB, free: 2.836 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00149/0.5839, allocations: 303.4 kB / 0.6342 GB, free: 2.539 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001205/0.5851, allocations: 0.7416 MB / 0.635 GB, free: 1.754 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001304/0.5853, allocations: 149.3 kB / 0.6351 GB, free: 1.594 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001711/0.5854, allocations: 107.8 kB / 0.6352 GB, free: 1.488 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002923/0.5884, allocations: 1.841 MB / 0.637 GB, free: 15.58 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.169e-05/0.5884, allocations: 4 kB / 0.637 GB, free: 15.57 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001481/0.5886, allocations: 47.98 kB / 0.6371 GB, free: 15.53 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001039/0.5887, allocations: 93.89 kB / 0.6371 GB, free: 15.44 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002475/0.5912, allocations: 1.698 MB / 0.6388 GB, free: 13.74 MB / 462.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.01006/0.6013, allocations: 7.041 MB / 0.6457 GB, free: 6.223 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001331/0.6026, allocations: 0.875 MB / 0.6465 GB, free: 5.344 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006182/0.6032, allocations: 442.3 kB / 0.647 GB, free: 4.91 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001692/0.6034, allocations: 155.6 kB / 0.6471 GB, free: 4.738 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.122e-05/0.6035, allocations: 47.12 kB / 0.6471 GB, free: 4.68 MB / 462.1 MB Notification: Performance of pre-optimization done (n=60): time 2.585e-06/0.6035, allocations: 0 / 0.6471 GB, free: 4.68 MB / 462.1 MB Notification: Performance of matching and sorting (n=72): time 0.0108/0.6143, allocations: 4.24 MB / 0.6513 GB, free: 368 kB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.979e-05/0.6144, allocations: 115.4 kB / 0.6514 GB, free: 228 kB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001429/0.6158, allocations: 1.105 MB / 0.6525 GB, free: 15.09 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001067/0.6159, allocations: 41.7 kB / 0.6525 GB, free: 15.05 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004214/0.6164, allocations: 0.5184 MB / 0.653 GB, free: 14.52 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002129/0.6166, allocations: 264.3 kB / 0.6533 GB, free: 14.26 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004065/0.617, allocations: 214.5 kB / 0.6535 GB, free: 14.04 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000181/0.6172, allocations: 349.9 kB / 0.6538 GB, free: 13.7 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008996/0.6181, allocations: 0.5836 MB / 0.6544 GB, free: 13.11 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001073/0.6192, allocations: 0.8682 MB / 0.6552 GB, free: 12.12 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001935/0.6211, allocations: 1.443 MB / 0.6566 GB, free: 10.57 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.472e-06/0.6211, allocations: 4 kB / 0.6566 GB, free: 10.57 MB / 478.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003209/0.6244, allocations: 2 MB / 0.6586 GB, free: 8.555 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.514e-05/0.6244, allocations: 8 kB / 0.6586 GB, free: 8.547 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.394e-05/0.6244, allocations: 8 kB / 0.6586 GB, free: 8.539 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004621/0.629, allocations: 1.332 MB / 0.6599 GB, free: 7.203 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006217/0.6297, allocations: 139.8 kB / 0.66 GB, free: 7.066 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002785/0.6325, allocations: 1.928 MB / 0.6619 GB, free: 5.113 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001075/0.6336, allocations: 39.97 kB / 0.662 GB, free: 5.074 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000131/0.6337, allocations: 75.98 kB / 0.662 GB, free: 5 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (82): * Single equations (assignments): 81 * 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 {(9,35)} Notification: Performance of prepare postOptimizeDAE: time 0.0008086/0.6345, allocations: 397.4 kB / 0.6624 GB, free: 4.602 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002464/0.6348, allocations: 106.8 kB / 0.6625 GB, free: 4.496 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002459/0.6372, allocations: 1.402 MB / 0.6639 GB, free: 3.082 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.113e-05/0.6373, allocations: 8 kB / 0.6639 GB, free: 3.074 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.734e-06/0.6373, allocations: 192 / 0.6639 GB, free: 3.074 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.859e-06/0.6373, allocations: 7.984 kB / 0.6639 GB, free: 3.066 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005081/0.6424, allocations: 2.692 MB / 0.6665 GB, free: 316 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.446e-06/0.6424, allocations: 4 kB / 0.6665 GB, free: 312 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001803/0.6442, allocations: 319.8 kB / 0.6668 GB, free: 15.99 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001912/0.6444, allocations: 72.66 kB / 0.6669 GB, free: 15.92 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.371e-05/0.6445, allocations: 39.97 kB / 0.6669 GB, free: 15.88 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002606/0.6471, allocations: 3.025 MB / 0.6699 GB, free: 12.57 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.6472, allocations: 4 kB / 0.6699 GB, free: 12.57 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003028/0.6502, allocations: 1.906 MB / 0.6718 GB, free: 10.64 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007164/0.6509, allocations: 331.6 kB / 0.6721 GB, free: 10.3 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002679/0.6512, allocations: 27.98 kB / 0.6721 GB, free: 10.27 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001042/0.6523, allocations: 47.95 kB / 0.6722 GB, free: 10.23 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001691/0.6524, allocations: 68.56 kB / 0.6722 GB, free: 10.16 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001467/0.6526, allocations: 63.95 kB / 0.6723 GB, free: 10.1 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001182/0.6538, allocations: 0.7969 MB / 0.6731 GB, free: 9.289 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.6538, allocations: 0 / 0.6731 GB, free: 9.289 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001779/0.6556, allocations: 0.5233 MB / 0.6736 GB, free: 8.766 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (78): * Single equations (assignments): 76 * 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.006001/0.6616, allocations: 3.227 MB / 0.6767 GB, free: 5.512 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003454/0.6651, allocations: 1.806 MB / 0.6785 GB, free: 3.707 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.163e-06/0.6651, allocations: 0.6562 kB / 0.6785 GB, free: 3.703 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001694/0.6668, allocations: 0.8661 MB / 0.6793 GB, free: 2.824 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003595/0.6704, allocations: 0.7741 MB / 0.6801 GB, free: 2.055 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02044/0.6908, allocations: 13.7 MB / 0.6935 GB, free: 3.863 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009706/0.6919, allocations: 1.176 MB / 0.6946 GB, free: 2.656 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001646/0.6935, allocations: 405.8 kB / 0.695 GB, free: 2.258 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007562/0.6943, allocations: 443.3 kB / 0.6954 GB, free: 1.824 MB / 0.4981 GB Notification: Performance of SimCode: time 7.32e-07/0.6943, allocations: 4 kB / 0.6954 GB, free: 1.82 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2995/0.9938, allocations: 50.96 MB / 0.7452 GB, free: 229.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.81/13.81, allocations: 2.891 kB / 0.7452 GB, free: 229.8 MB / 0.545 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas.fmu > ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/SimpleNaturalGas/SimpleNaturalGas.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches