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.00133/0.00133, allocations: 108.2 kB / 21.18 MB, free: 0.6992 MB / 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.00143/0.00143, allocations: 216.7 kB / 24.49 MB, free: 4.031 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.394/1.394, allocations: 207.6 MB / 235.3 MB, free: 10.01 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.001915/0.001915, allocations: 55.92 kB / 347.2 MB, free: 10.02 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2276/0.2295, allocations: 49.16 MB / 396.4 MB, free: 8.988 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.1986/0.4281, allocations: 176.3 MB / 0.5592 GB, free: 2.438 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.2123/0.6404, allocations: 3.85 MB / 0.563 GB, free: 1.773 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002026/0.6406, allocations: 7.594 kB / 0.563 GB, free: 1.773 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007329/0.6413, allocations: 248.5 kB / 0.5632 GB, free: 1.773 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006798/0.642, allocations: 374.8 kB / 0.5636 GB, free: 1.773 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00136/0.6434, allocations: 0.5604 MB / 0.5641 GB, free: 1.766 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.001301/0.6447, allocations: 1.119 MB / 0.5652 GB, free: 1.766 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002861/0.645, allocations: 179.8 kB / 0.5654 GB, free: 1.75 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002827/0.6478, allocations: 1.316 MB / 0.5667 GB, free: 1.742 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005958/0.6484, allocations: 430.2 kB / 0.5671 GB, free: 1.742 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001282/0.6485, allocations: 67.94 kB / 0.5672 GB, free: 1.742 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001108/0.6496, allocations: 498.3 kB / 0.5676 GB, free: 1.738 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003885/0.65, allocations: 448.1 kB / 0.5681 GB, free: 1.738 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005751/0.6506, allocations: 496.5 kB / 0.5685 GB, free: 1.738 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001662/0.6523, allocations: 1.544 MB / 0.57 GB, free: 1.668 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.6523, allocations: 1.375 kB / 0.57 GB, free: 1.668 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.6523, allocations: 0 / 0.57 GB, free: 1.668 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.759e-05/0.6523, allocations: 0.625 kB / 0.57 GB, free: 1.668 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: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.001889/0.6542, allocations: 1.009 MB / 0.571 GB, free: 17.18 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.6542, allocations: 14.2 kB / 0.571 GB, free: 17.17 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001452/0.6544, allocations: 119.2 kB / 0.5712 GB, free: 17.13 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006608/0.655, allocations: 154.9 kB / 0.5713 GB, free: 17.09 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008062/0.6558, allocations: 426.3 kB / 0.5717 GB, free: 16.91 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.803e-05/0.6559, allocations: 50.06 kB / 0.5718 GB, free: 16.91 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001178/0.656, allocations: 72.39 kB / 0.5718 GB, free: 16.91 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001573/0.6576, allocations: 0.9501 MB / 0.5728 GB, free: 16.86 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.877e-05/0.6576, allocations: 5.594 kB / 0.5728 GB, free: 16.86 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.094e-05/0.6577, allocations: 30.03 kB / 0.5728 GB, free: 16.86 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.813e-05/0.6577, allocations: 42.58 kB / 0.5728 GB, free: 16.86 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001296/0.659, allocations: 0.8734 MB / 0.5737 GB, free: 16.84 MB / 494.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.005444/0.6645, allocations: 3.202 MB / 0.5768 GB, free: 15.5 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007922/0.6653, allocations: 0.6096 MB / 0.5774 GB, free: 15.46 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003681/0.6656, allocations: 343.3 kB / 0.5777 GB, free: 15.45 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.403e-05/0.6657, allocations: 14.17 kB / 0.5777 GB, free: 15.45 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.982e-05/0.6657, allocations: 43.84 kB / 0.5778 GB, free: 15.41 MB / 494.1 MB Notification: Performance of pre-optimization done (n=59): time 2.245e-06/0.6657, allocations: 1.031 kB / 0.5778 GB, free: 15.41 MB / 494.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.01283/0.6786, allocations: 4.882 MB / 0.5826 GB, free: 14.75 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.356e-05/0.6786, allocations: 58.44 kB / 0.5826 GB, free: 14.69 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005531/0.6792, allocations: 0.5433 MB / 0.5831 GB, free: 14.58 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001025/0.6793, allocations: 45.89 kB / 0.5832 GB, free: 14.55 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001558/0.6794, allocations: 274.8 kB / 0.5834 GB, free: 14.39 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000137/0.6796, allocations: 275.4 kB / 0.5837 GB, free: 14.22 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002111/0.6798, allocations: 147.3 kB / 0.5839 GB, free: 14.2 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.6799, allocations: 369 kB / 0.5842 GB, free: 13.89 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005317/0.6805, allocations: 446.9 kB / 0.5846 GB, free: 13.89 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005675/0.681, allocations: 0.5224 MB / 0.5851 GB, free: 13.83 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00107/0.6821, allocations: 0.9673 MB / 0.5861 GB, free: 13.77 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.6821, allocations: 0 / 0.5861 GB, free: 13.77 MB / 494.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001708/0.6838, allocations: 1.343 MB / 0.5874 GB, free: 13.62 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.6838, allocations: 6.906 kB / 0.5874 GB, free: 13.62 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.6838, allocations: 0 / 0.5874 GB, free: 13.62 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005447/0.6844, allocations: 338.9 kB / 0.5877 GB, free: 13.56 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009194/0.6853, allocations: 177.7 kB / 0.5879 GB, free: 13.56 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008245/0.6935, allocations: 10.24 MB / 0.5979 GB, free: 4.527 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006664/0.6942, allocations: 21.52 kB / 0.5979 GB, free: 4.527 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.1e-05/0.6943, allocations: 48.38 kB / 0.598 GB, free: 4.527 MB / 494.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.0004702/0.6948, allocations: 270.7 kB / 0.5982 GB, free: 4.414 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001623/0.6949, allocations: 66.62 kB / 0.5983 GB, free: 4.383 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001884/0.6968, allocations: 1.281 MB / 0.5995 GB, free: 4.25 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.28e-05/0.6968, allocations: 13.25 kB / 0.5995 GB, free: 4.246 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.6968, allocations: 0 / 0.5995 GB, free: 4.246 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001673/0.6985, allocations: 1.603 MB / 0.6011 GB, free: 3.41 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003322/0.7018, allocations: 2.236 MB / 0.6033 GB, free: 3.082 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/0.7018, allocations: 0 / 0.6033 GB, free: 3.082 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001061/0.7029, allocations: 218.2 kB / 0.6035 GB, free: 3.082 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001761/0.7031, allocations: 69.98 kB / 0.6036 GB, free: 3.074 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.84e-05/0.7031, allocations: 38.19 kB / 0.6036 GB, free: 3.074 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001364/0.7045, allocations: 1.44 MB / 0.605 GB, free: 1.852 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.7045, allocations: 4.953 kB / 0.605 GB, free: 1.852 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002076/0.7066, allocations: 1.602 MB / 0.6066 GB, free: 1.621 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002721/0.7068, allocations: 66.88 kB / 0.6066 GB, free: 1.59 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000124/0.707, allocations: 29.31 kB / 0.6067 GB, free: 1.59 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006572/0.7076, allocations: 39 kB / 0.6067 GB, free: 1.59 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.283e-05/0.7077, allocations: 56.88 kB / 0.6068 GB, free: 1.59 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.289e-05/0.7078, allocations: 63.05 kB / 0.6068 GB, free: 1.59 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0004435/0.7083, allocations: 410.2 kB / 0.6072 GB, free: 1.5 MB / 494.1 MB Notification: Performance of sort global known variables: time 8e-08/0.7083, allocations: 0.875 kB / 0.6072 GB, free: 1.5 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001117/0.7094, allocations: 332.2 kB / 0.6075 GB, free: 1.48 MB / 494.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.003475/0.7128, allocations: 2.61 MB / 0.6101 GB, free: 0.707 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002277/0.7151, allocations: 1.834 MB / 0.6119 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.7151, allocations: 0 / 0.6119 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0007997/0.7159, allocations: 0.67 MB / 0.6125 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002192/0.7181, allocations: 0.5034 MB / 0.613 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01271/0.7308, allocations: 8.772 MB / 0.6216 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006305/0.7315, allocations: 0.9706 MB / 0.6225 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0009707/0.7324, allocations: 279.5 kB / 0.6228 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000418/0.7329, allocations: 278.6 kB / 0.6231 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of SimCode: time 9.32e-07/0.7329, allocations: 0 / 0.6231 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0876/0.8205, allocations: 34.7 MB / 0.657 GB, free: 12.12 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.17/14.99, allocations: 7.922 kB / 0.657 GB, free: 12.11 MB / 0.5294 GB " [Timeout remaining time 645] (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.945324061904103]