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.001823/0.001823, allocations: 103.6 kB / 21.18 MB, free: 332 kB / 14.72 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.002289/0.002289, allocations: 212 kB / 24.47 MB, free: 3.547 MB / 14.72 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 1.437/1.437, allocations: 207.7 MB / 235.3 MB, free: 9.805 MB / 190.1 MB " [Timeout remaining time 178] 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: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002096/0.002096, allocations: 55.91 kB / 347.2 MB, free: 9.855 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2591/0.2612, allocations: 49.16 MB / 396.4 MB, free: 9.094 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.1866/0.4478, allocations: 151.9 MB / 0.5354 GB, free: 10.88 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.00484/0.4526, allocations: 3.508 MB / 0.5388 GB, free: 7.355 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002112/0.4528, allocations: 7.938 kB / 0.5388 GB, free: 7.348 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007891/0.4536, allocations: 226.7 kB / 0.539 GB, free: 7.125 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007491/0.4543, allocations: 370.1 kB / 0.5394 GB, free: 6.762 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00166/0.456, allocations: 0.5568 MB / 0.5399 GB, free: 6.207 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001245/0.4572, allocations: 1.107 MB / 0.541 GB, free: 5.098 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002863/0.4575, allocations: 177.2 kB / 0.5412 GB, free: 4.922 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002774/0.4603, allocations: 1.303 MB / 0.5425 GB, free: 3.617 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005756/0.4609, allocations: 402.7 kB / 0.5428 GB, free: 3.223 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001311/0.461, allocations: 68 kB / 0.5429 GB, free: 3.156 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009744/0.462, allocations: 443 kB / 0.5433 GB, free: 2.723 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003959/0.4624, allocations: 447 kB / 0.5438 GB, free: 2.285 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004779/0.4629, allocations: 438.6 kB / 0.5442 GB, free: 1.855 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001701/0.4646, allocations: 1.546 MB / 0.5457 GB, free: 312 kB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.4646, allocations: 0 / 0.5457 GB, free: 312 kB / 462.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.4646, allocations: 0 / 0.5457 GB, free: 312 kB / 462.1 MB Notification: Performance of Transformations before backend: time 1.487e-05/0.4646, allocations: 0 / 0.5457 GB, free: 312 kB / 462.1 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.001777/0.4664, allocations: 1.011 MB / 0.5467 GB, free: 15.26 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.4664, allocations: 15.98 kB / 0.5467 GB, free: 15.25 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001612/0.4666, allocations: 122.4 kB / 0.5468 GB, free: 15.12 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006691/0.4672, allocations: 155.5 kB / 0.547 GB, free: 14.96 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008951/0.4681, allocations: 427.1 kB / 0.5474 GB, free: 14.52 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.659e-05/0.4682, allocations: 45.31 kB / 0.5474 GB, free: 14.47 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001221/0.4683, allocations: 71.98 kB / 0.5475 GB, free: 14.4 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001875/0.4702, allocations: 1.558 MB / 0.549 GB, free: 12.69 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.66e-05/0.4702, allocations: 3.984 kB / 0.549 GB, free: 12.69 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.987e-05/0.4703, allocations: 32 kB / 0.549 GB, free: 12.66 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.614e-05/0.4703, allocations: 45.98 kB / 0.5491 GB, free: 12.61 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001357/0.4717, allocations: 0.8706 MB / 0.5499 GB, free: 11.74 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.004992/0.4767, allocations: 2.239 MB / 0.5521 GB, free: 9.457 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009031/0.4776, allocations: 0.6035 MB / 0.5527 GB, free: 8.844 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004919/0.4781, allocations: 350 kB / 0.553 GB, free: 8.496 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.751e-05/0.4781, allocations: 16.44 kB / 0.553 GB, free: 8.48 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.132e-05/0.4782, allocations: 47.05 kB / 0.5531 GB, free: 8.426 MB / 478.1 MB Notification: Performance of pre-optimization done (n=59): time 2.505e-06/0.4782, allocations: 0 / 0.5531 GB, free: 8.426 MB / 478.1 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.01456/0.4927, allocations: 4.878 MB / 0.5579 GB, free: 3.449 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.598e-05/0.4928, allocations: 60.06 kB / 0.5579 GB, free: 3.375 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007343/0.4935, allocations: 0.5486 MB / 0.5585 GB, free: 2.816 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001053/0.4936, allocations: 45.7 kB / 0.5585 GB, free: 2.766 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002225/0.4938, allocations: 277.1 kB / 0.5588 GB, free: 2.488 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002378/0.4941, allocations: 273.7 kB / 0.559 GB, free: 2.219 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002568/0.4943, allocations: 142.7 kB / 0.5592 GB, free: 2.074 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001808/0.4945, allocations: 370.8 kB / 0.5595 GB, free: 1.703 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007055/0.4952, allocations: 445.7 kB / 0.5599 GB, free: 1.266 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007453/0.496, allocations: 0.5155 MB / 0.5604 GB, free: 0.7383 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1736/0.6696, allocations: 0.9633 MB / 0.5614 GB, free: 163.7 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.6696, allocations: 0.7188 kB / 0.5614 GB, free: 163.7 MB / 478.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.002113/0.6717, allocations: 1.347 MB / 0.5627 GB, free: 163.3 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/0.6717, allocations: 5.594 kB / 0.5627 GB, free: 163.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.6717, allocations: 7.125 kB / 0.5627 GB, free: 163.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005609/0.6723, allocations: 328.6 kB / 0.563 GB, free: 163.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009434/0.6732, allocations: 179.4 kB / 0.5632 GB, free: 163.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005776/0.679, allocations: 10.22 MB / 0.5732 GB, free: 153.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005908/0.6796, allocations: 20.75 kB / 0.5732 GB, free: 153.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.752e-05/0.6797, allocations: 46.48 kB / 0.5732 GB, free: 153.5 MB / 478.1 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.0004224/0.6801, allocations: 273.7 kB / 0.5735 GB, free: 153.3 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001495/0.6803, allocations: 65.08 kB / 0.5736 GB, free: 153.3 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001954/0.6822, allocations: 1.286 MB / 0.5748 GB, free: 152.7 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.692e-06/0.6822, allocations: 10.69 kB / 0.5748 GB, free: 152.7 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.6822, allocations: 6.125 kB / 0.5748 GB, free: 152.7 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001521/0.6838, allocations: 1.605 MB / 0.5764 GB, free: 151.5 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003157/0.6869, allocations: 2.072 MB / 0.5784 GB, free: 150.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.6869, allocations: 1.406 kB / 0.5784 GB, free: 150.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001099/0.688, allocations: 221.9 kB / 0.5786 GB, free: 150.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001836/0.6882, allocations: 70.14 kB / 0.5787 GB, free: 150.5 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.144e-05/0.6883, allocations: 36.59 kB / 0.5787 GB, free: 150.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009216/0.6892, allocations: 1.435 MB / 0.5801 GB, free: 149.2 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.6892, allocations: 1.094 kB / 0.5801 GB, free: 149.2 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002118/0.6913, allocations: 1.605 MB / 0.5817 GB, free: 148.4 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001717/0.6915, allocations: 72.64 kB / 0.5818 GB, free: 148.4 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001178/0.6916, allocations: 29.72 kB / 0.5818 GB, free: 148.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006174/0.6922, allocations: 37.48 kB / 0.5818 GB, free: 148.4 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001106/0.6923, allocations: 63.19 kB / 0.5819 GB, free: 148.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001063/0.6924, allocations: 61.22 kB / 0.582 GB, free: 148.4 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0004339/0.6929, allocations: 409.4 kB / 0.5823 GB, free: 148.2 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.6929, allocations: 0 / 0.5823 GB, free: 148.2 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0009521/0.6938, allocations: 330.4 kB / 0.5827 GB, free: 148.2 MB / 478.1 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.003366/0.6972, allocations: 2.595 MB / 0.5852 GB, free: 146.9 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002248/0.6994, allocations: 1.835 MB / 0.587 GB, free: 145.7 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.105e-05/0.6994, allocations: 1.219 kB / 0.587 GB, free: 145.7 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008488/0.7003, allocations: 0.6641 MB / 0.5876 GB, free: 145.4 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002194/0.7025, allocations: 0.4996 MB / 0.5881 GB, free: 145.3 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009545/0.712, allocations: 8.763 MB / 0.5967 GB, free: 138.9 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003172/0.7123, allocations: 380.6 kB / 0.597 GB, free: 138.5 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0009182/0.7133, allocations: 277.7 kB / 0.5973 GB, free: 138.3 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003959/0.7137, allocations: 275.3 kB / 0.5976 GB, free: 138 MB / 478.1 MB Notification: Performance of SimCode: time 1.292e-06/0.7137, allocations: 0 / 0.5976 GB, free: 138 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06969/0.7834, allocations: 36.71 MB / 0.6334 GB, free: 101.1 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.46/14.24, allocations: 7.859 kB / 0.6334 GB, free: 101.1 MB / 478.1 MB " [Timeout remaining time 646] (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/jenkins1/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/jenkins1/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: 17.26648574694991]