Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009759/0.0009794, allocations: 174.1 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.223/1.223, allocations: 205.4 MB / 222.9 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007697/0.0007696, allocations: 86.36 kB / 271.2 MB, free: 8.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002672/0.0002673, allocations: 12 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2262/0.2265, allocations: 47.58 MB / 375.2 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition): time 0.3618/0.5883, allocations: 159.7 MB / 0.5223 GB, free: 1.055 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00372/0.5921, allocations: 3.572 MB / 0.5258 GB, free: 0.957 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003307/0.5924, allocations: 4.594 kB / 0.5258 GB, free: 0.957 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005531/0.593, allocations: 186.3 kB / 0.526 GB, free: 0.9453 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005987/0.5936, allocations: 343.8 kB / 0.5263 GB, free: 0.9219 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001225/0.5948, allocations: 444.8 kB / 0.5268 GB, free: 0.9062 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001388/0.5962, allocations: 1.314 MB / 0.528 GB, free: 0.8984 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001649/0.5964, allocations: 78.47 kB / 0.5281 GB, free: 0.8906 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002761/0.5992, allocations: 1.178 MB / 0.5293 GB, free: 0.8633 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003951/0.5996, allocations: 359.1 kB / 0.5296 GB, free: 0.8594 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.519e-05/0.5997, allocations: 20.69 kB / 0.5296 GB, free: 0.8594 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001303/0.601, allocations: 0.8436 MB / 0.5305 GB, free: 0.8555 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001646/0.6011, allocations: 212.7 kB / 0.5307 GB, free: 0.8555 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002693/0.6014, allocations: 300.7 kB / 0.5309 GB, free: 0.8242 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007384/0.6022, allocations: 0.8678 MB / 0.5318 GB, free: 0.7812 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.6022, allocations: 0 / 0.5318 GB, free: 0.7812 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.6022, allocations: 0 / 0.5318 GB, free: 0.7812 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.372e-06/0.6022, allocations: 0 / 0.5318 GB, free: 0.7812 MB / 378.7 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.0009593/0.6032, allocations: 0.6992 MB / 0.5325 GB, free: 16.28 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.992e-05/0.6032, allocations: 9.594 kB / 0.5325 GB, free: 16.28 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.601e-05/0.6033, allocations: 78.61 kB / 0.5326 GB, free: 16.24 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004947/0.6038, allocations: 132.5 kB / 0.5327 GB, free: 16.21 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003989/0.6042, allocations: 374.7 kB / 0.533 GB, free: 15.98 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.041e-05/0.6042, allocations: 24.81 kB / 0.5331 GB, free: 15.98 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.107e-05/0.6043, allocations: 39.62 kB / 0.5331 GB, free: 15.98 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007167/0.605, allocations: 0.5688 MB / 0.5337 GB, free: 15.89 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.415e-05/0.605, allocations: 0 / 0.5337 GB, free: 15.89 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.569e-05/0.6051, allocations: 18.16 kB / 0.5337 GB, free: 15.89 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.465e-06/0.6051, allocations: 9.375 kB / 0.5337 GB, free: 15.89 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005039/0.6056, allocations: 454 kB / 0.5341 GB, free: 15.88 MB / 394.7 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.002595/0.6082, allocations: 2.057 MB / 0.5361 GB, free: 14.43 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001951/0.6084, allocations: 157.2 kB / 0.5363 GB, free: 14.39 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000101/0.6085, allocations: 82.08 kB / 0.5364 GB, free: 14.37 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.95e-05/0.6086, allocations: 2.812 kB / 0.5364 GB, free: 14.37 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.184e-05/0.6086, allocations: 36.41 kB / 0.5364 GB, free: 14.33 MB / 394.7 MB Notification: Performance of pre-optimization done (n=18): time 1.172e-06/0.6086, allocations: 0 / 0.5364 GB, free: 14.33 MB / 394.7 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.004957/0.6136, allocations: 1.675 MB / 0.538 GB, free: 13.3 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.704e-05/0.6136, allocations: 55.41 kB / 0.5381 GB, free: 13.24 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004234/0.614, allocations: 484.5 kB / 0.5385 GB, free: 13.05 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.599e-05/0.6141, allocations: 29.27 kB / 0.5386 GB, free: 13.02 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001665/0.6142, allocations: 320.3 kB / 0.5389 GB, free: 12.78 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.071e-05/0.6143, allocations: 85.22 kB / 0.539 GB, free: 12.73 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.925e-05/0.6143, allocations: 9.719 kB / 0.539 GB, free: 12.73 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.6145, allocations: 355.9 kB / 0.5393 GB, free: 12.4 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000189/0.6146, allocations: 129.2 kB / 0.5394 GB, free: 12.38 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003214/0.615, allocations: 442.9 kB / 0.5398 GB, free: 11.97 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000528/0.6155, allocations: 0.6105 MB / 0.5404 GB, free: 11.55 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.6155, allocations: 2.844 kB / 0.5404 GB, free: 11.55 MB / 394.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0007663/0.6163, allocations: 0.6279 MB / 0.5411 GB, free: 11.41 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/0.6163, allocations: 10.59 kB / 0.5411 GB, free: 11.41 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.065e-05/0.6163, allocations: 12.31 kB / 0.5411 GB, free: 11.41 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001372/0.6165, allocations: 57.05 kB / 0.5411 GB, free: 11.39 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003942/0.6169, allocations: 142.2 kB / 0.5413 GB, free: 11.38 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00109/0.618, allocations: 1.849 MB / 0.5431 GB, free: 9.559 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000344/0.6183, allocations: 35.36 kB / 0.5431 GB, free: 9.551 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.008e-05/0.6184, allocations: 37.69 kB / 0.5431 GB, free: 9.551 MB / 394.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001762/0.6186, allocations: 211.5 kB / 0.5433 GB, free: 9.426 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.347e-05/0.6186, allocations: 50.5 kB / 0.5434 GB, free: 9.398 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004397/0.6191, allocations: 287 kB / 0.5437 GB, free: 9.301 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.6191, allocations: 6.156 kB / 0.5437 GB, free: 9.297 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-06/0.6191, allocations: 2.969 kB / 0.5437 GB, free: 9.297 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003991/0.6195, allocations: 0.5224 MB / 0.5442 GB, free: 8.828 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007799/0.6203, allocations: 0.6966 MB / 0.5449 GB, free: 8.418 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/0.6203, allocations: 2.625 kB / 0.5449 GB, free: 8.418 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002436/0.6206, allocations: 54.55 kB / 0.5449 GB, free: 8.406 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.187e-05/0.6206, allocations: 31.38 kB / 0.545 GB, free: 8.387 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.566e-05/0.6207, allocations: 7 kB / 0.545 GB, free: 8.387 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006915/0.6214, allocations: 1.276 MB / 0.5462 GB, free: 7.102 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.6214, allocations: 0 / 0.5462 GB, free: 7.102 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004644/0.6218, allocations: 437 kB / 0.5466 GB, free: 6.906 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.823e-05/0.6219, allocations: 122 kB / 0.5467 GB, free: 6.785 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.05e-05/0.622, allocations: 3.625 kB / 0.5467 GB, free: 6.785 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002586/0.6223, allocations: 18.58 kB / 0.5468 GB, free: 6.777 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.584e-05/0.6223, allocations: 15.67 kB / 0.5468 GB, free: 6.773 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.986e-05/0.6223, allocations: 15.64 kB / 0.5468 GB, free: 6.77 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000284/0.6226, allocations: 320.8 kB / 0.5471 GB, free: 6.641 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6226, allocations: 0 / 0.5471 GB, free: 6.641 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006836/0.6233, allocations: 218.5 kB / 0.5473 GB, free: 6.621 MB / 394.7 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 (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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001823/0.6252, allocations: 1.33 MB / 0.5486 GB, free: 5.742 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005782/0.6257, allocations: 454.1 kB / 0.549 GB, free: 5.594 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.6258, allocations: 2.531 kB / 0.549 GB, free: 5.594 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002108/0.626, allocations: 209 kB / 0.5492 GB, free: 5.469 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00102/0.627, allocations: 215.8 kB / 0.5494 GB, free: 5.395 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003125/0.6301, allocations: 2.827 MB / 0.5522 GB, free: 3.773 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003414/0.6305, allocations: 0.8259 MB / 0.553 GB, free: 3.016 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001889/0.6307, allocations: 149.9 kB / 0.5532 GB, free: 2.996 MB / 394.7 MB Notification: Performance of SimCode: time 2.5e-07/0.6307, allocations: 0 / 0.5532 GB, free: 2.996 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.796/5.427, allocations: 12.85 MB / 0.5657 GB, free: 9.633 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition.fmu > Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches