Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008204/0.0008204, allocations: 87.67 kB / 21.43 MB, free: 3.117 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.003354/0.003354, allocations: 155.3 kB / 24.69 MB, free: 9.426 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8204/0.8204, allocations: 158.6 MB / 186.5 MB, free: 3.055 MB / 170.7 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.603e-06/1.603e-06, allocations: 0 / 298.5 MB, free: 3.473 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.461e-05/1.621e-05, allocations: 2.281 kB / 298.5 MB, free: 3.469 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.2379/0.2379, allocations: 151.8 MB / 450.3 MB, free: 6.504 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.003393/0.2413, allocations: 3.512 MB / 453.8 MB, free: 2.977 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001763/0.2415, allocations: 10.19 kB / 453.8 MB, free: 2.969 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007026/0.2422, allocations: 222.6 kB / 454 MB, free: 2.75 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006544/0.2428, allocations: 377.6 kB / 454.4 MB, free: 2.379 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001139/0.2439, allocations: 0.5719 MB / 455 MB, free: 1.809 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007391/0.2447, allocations: 1.103 MB / 456.1 MB, free: 0.7031 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002216/0.2449, allocations: 169.8 kB / 456.2 MB, free: 0.543 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1689/0.4138, allocations: 1.468 MB / 457.7 MB, free: 2.395 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005005/0.4143, allocations: 373.3 kB / 458.1 MB, free: 2.395 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001114/0.4144, allocations: 66.62 kB / 458.1 MB, free: 2.395 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008301/0.4152, allocations: 446.3 kB / 458.6 MB, free: 2.395 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003584/0.4156, allocations: 463.1 kB / 459 MB, free: 2.395 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003994/0.416, allocations: 386.4 kB / 459.4 MB, free: 2.395 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001813/0.4178, allocations: 1.621 MB / 461 MB, free: 2.395 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.4178, allocations: 0.7812 kB / 461 MB, free: 2.395 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.4178, allocations: 0 / 461 MB, free: 2.395 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.604e-05/0.4178, allocations: 0.9375 kB / 461 MB, free: 2.395 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.00172/0.4196, allocations: 0.9996 MB / 462 MB, free: 17.93 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.496e-05/0.4196, allocations: 14.98 kB / 462 MB, free: 17.93 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001217/0.4197, allocations: 120 kB / 462.2 MB, free: 17.89 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004671/0.4202, allocations: 151.6 kB / 462.3 MB, free: 17.85 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006054/0.4208, allocations: 428.6 kB / 462.7 MB, free: 17.67 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.246e-05/0.4208, allocations: 51.44 kB / 462.8 MB, free: 17.67 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.838e-05/0.4209, allocations: 65.73 kB / 462.8 MB, free: 17.67 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001262/0.4222, allocations: 1.558 MB / 464.4 MB, free: 16.87 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.451e-05/0.4222, allocations: 6.266 kB / 464.4 MB, free: 16.87 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.445e-05/0.4223, allocations: 33.62 kB / 464.4 MB, free: 16.87 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-05/0.4223, allocations: 42.45 kB / 464.5 MB, free: 16.86 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009422/0.4233, allocations: 0.8685 MB / 465.4 MB, free: 16.86 MB / 426.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.003733/0.427, allocations: 2.251 MB / 467.6 MB, free: 16.45 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006366/0.4276, allocations: 0.6136 MB / 468.2 MB, free: 16.41 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003667/0.428, allocations: 337.9 kB / 468.5 MB, free: 16.4 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.435e-05/0.4281, allocations: 17.36 kB / 468.6 MB, free: 16.39 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.16e-05/0.4281, allocations: 44.03 kB / 468.6 MB, free: 16.36 MB / 426.7 MB Notification: Performance of pre-optimization done (n=59): time 3.026e-06/0.4281, allocations: 0.625 kB / 468.6 MB, free: 16.36 MB / 426.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.Xi[6] 2: volume.medium.Xi[5] 3: volume.medium.Xi[4] 4: volume.medium.Xi[3] 5: volume.medium.Xi[2] 6: volume.medium.Xi[1] 7: volume.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=71): time 0.008972/0.4371, allocations: 4.903 MB / 473.5 MB, free: 15.68 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.95e-05/0.4371, allocations: 63.88 kB / 473.6 MB, free: 15.61 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000448/0.4376, allocations: 0.55 MB / 474.1 MB, free: 15.5 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.949e-05/0.4376, allocations: 46.42 kB / 474.2 MB, free: 15.47 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001208/0.4377, allocations: 273.7 kB / 474.4 MB, free: 15.32 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.803e-05/0.4378, allocations: 266.2 kB / 474.7 MB, free: 15.15 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001461/0.438, allocations: 144.1 kB / 474.8 MB, free: 15.13 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.4381, allocations: 369.9 kB / 475.2 MB, free: 14.82 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003873/0.4385, allocations: 447 kB / 475.6 MB, free: 14.82 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004101/0.4389, allocations: 0.5109 MB / 476.1 MB, free: 14.77 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007945/0.4397, allocations: 0.9762 MB / 477.1 MB, free: 14.71 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.4397, allocations: 0 / 477.1 MB, free: 14.71 MB / 426.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001204/0.4409, allocations: 1.35 MB / 478.5 MB, free: 14.56 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.949e-05/0.4409, allocations: 6.5 kB / 478.5 MB, free: 14.56 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.4409, allocations: 3.281 kB / 478.5 MB, free: 14.56 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003626/0.4413, allocations: 330 kB / 478.8 MB, free: 14.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005129/0.4418, allocations: 178.2 kB / 479 MB, free: 14.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005/0.4468, allocations: 10.2 MB / 489.2 MB, free: 5.473 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004959/0.4473, allocations: 23.84 kB / 489.2 MB, free: 5.473 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.712e-05/0.4473, allocations: 52.52 kB / 489.3 MB, free: 5.469 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (80): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * 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): 8 systems {(1,1), (1,1), (1,1), (1,1), (1,1), (1,1), (1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0004052/0.4477, allocations: 271.8 kB / 489.5 MB, free: 5.355 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.833e-05/0.4478, allocations: 65.66 kB / 489.6 MB, free: 5.324 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001209/0.4491, allocations: 1.279 MB / 490.9 MB, free: 5.188 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.4491, allocations: 6.344 kB / 490.9 MB, free: 5.188 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.4491, allocations: 2.375 kB / 490.9 MB, free: 5.188 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001045/0.4501, allocations: 1.612 MB / 492.5 MB, free: 4.348 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002037/0.4521, allocations: 2.079 MB / 494.6 MB, free: 4.02 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.4521, allocations: 7.922 kB / 494.6 MB, free: 4.012 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005616/0.4527, allocations: 220.6 kB / 494.8 MB, free: 4.012 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001153/0.4528, allocations: 67.81 kB / 494.8 MB, free: 4 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.066e-05/0.4529, allocations: 43.55 kB / 494.9 MB, free: 4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007422/0.4536, allocations: 1.424 MB / 496.3 MB, free: 2.789 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.4536, allocations: 3.859 kB / 496.3 MB, free: 2.789 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001403/0.455, allocations: 1.595 MB / 497.9 MB, free: 2.566 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001346/0.4552, allocations: 66.47 kB / 498 MB, free: 2.535 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.121e-05/0.4552, allocations: 28.09 kB / 498 MB, free: 2.535 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003484/0.4556, allocations: 39.36 kB / 498 MB, free: 2.535 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.037e-05/0.4556, allocations: 59.59 kB / 498.1 MB, free: 2.531 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.354e-05/0.4557, allocations: 58.02 kB / 498.2 MB, free: 2.531 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002977/0.456, allocations: 408.9 kB / 498.6 MB, free: 2.445 MB / 426.7 MB Notification: Performance of sort global known variables: time 5e-08/0.456, allocations: 0 / 498.6 MB, free: 2.445 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.000941/0.457, allocations: 335.2 kB / 498.9 MB, free: 2.426 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (77): * Single equations (assignments): 76 * 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): 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.002776/0.4597, allocations: 2.61 MB / 0.4897 GB, free: 1.648 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001784/0.4615, allocations: 1.828 MB / 0.4915 GB, free: 0.8672 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.4615, allocations: 4.062 kB / 0.4915 GB, free: 0.8672 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005697/0.4621, allocations: 0.6634 MB / 0.4922 GB, free: 0.7539 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001552/0.4636, allocations: 0.508 MB / 0.4927 GB, free: 0.6719 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01011/0.4738, allocations: 8.626 MB / 0.5011 GB, free: 14.6 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003381/0.4741, allocations: 379.9 kB / 0.5015 GB, free: 14.5 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0008652/0.475, allocations: 282.2 kB / 0.5017 GB, free: 14.44 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003209/0.4753, allocations: 273.1 kB / 0.502 GB, free: 14.43 MB / 442.7 MB Notification: Performance of SimCode: time 1.463e-06/0.4753, allocations: 4 kB / 0.502 GB, free: 14.42 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05/0.5253, allocations: 36.69 MB / 0.5378 GB, free: 232 kB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.467/8.992, allocations: 11.91 kB / 0.5378 GB, free: 220 kB / 458.7 MB " [Timeout remaining time 651] (rm -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGas_fmu --startTime=0 --stopTime=1.01 --stepSize=0.000201919 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_IdealGases_SimpleNaturalGas.fmu > Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/Tests/MediaTestModels/IdealGases/SimpleNaturalGas/SimpleNaturalGas.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.928451590240002]