Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.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) 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(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97_pT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97_pT",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.001007/0.001007, allocations: 104.6 kB / 17.16 MB, free: 6.316 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.0009286/0.0009289, allocations: 190 kB / 18.07 MB, free: 5.414 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.227/1.227, allocations: 205.1 MB / 223.9 MB, free: 12.47 MB / 190.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.001275/0.001275, allocations: 51.92 kB / 280.1 MB, free: 3.469 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07817/0.07946, allocations: 46.62 MB / 326.7 MB, free: 4.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT): time 0.02917/0.1087, allocations: 33.24 MB / 359.9 MB, free: 3.414 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01647/0.1252, allocations: 16.68 MB / 376.6 MB, free: 2.688 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002293/0.1255, allocations: 4 kB / 376.6 MB, free: 2.684 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006607/0.1261, allocations: 234.8 kB / 376.9 MB, free: 2.453 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005579/0.1267, allocations: 358.2 kB / 377.2 MB, free: 2.102 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1404/0.2671, allocations: 4.666 MB / 381.9 MB, free: 11.69 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001372/0.2685, allocations: 1.425 MB / 383.3 MB, free: 11.69 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00015/0.2687, allocations: 84.91 kB / 383.4 MB, free: 11.68 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004186/0.2729, allocations: 2.109 MB / 385.5 MB, free: 11.25 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003381/0.2732, allocations: 315.1 kB / 385.8 MB, free: 11.25 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.315e-05/0.2733, allocations: 18.22 kB / 385.8 MB, free: 11.25 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004852/0.2781, allocations: 3.515 MB / 389.3 MB, free: 11.25 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.552e-05/0.2782, allocations: 91.34 kB / 389.4 MB, free: 11.25 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002028/0.2785, allocations: 201.1 kB / 389.6 MB, free: 11.25 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002139/0.2806, allocations: 2.344 MB / 392 MB, free: 11.22 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.2806, allocations: 2.438 kB / 392 MB, free: 11.22 MB / 318.1 MB Notification: Performance of FrontEnd: time 8.21e-07/0.2806, allocations: 0 / 392 MB, free: 11.22 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.69e-06/0.2806, allocations: 0 / 392 MB, free: 11.22 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001031/0.2817, allocations: 0.8174 MB / 392.8 MB, free: 10.72 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.558e-05/0.2817, allocations: 8.812 kB / 392.8 MB, free: 10.72 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.606e-05/0.2818, allocations: 68.91 kB / 392.9 MB, free: 10.68 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000629/0.2824, allocations: 86.44 kB / 392.9 MB, free: 10.67 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002629/0.2827, allocations: 302.8 kB / 393.2 MB, free: 10.45 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.039e-05/0.2827, allocations: 24.66 kB / 393.3 MB, free: 10.45 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.436e-05/0.2828, allocations: 31.44 kB / 393.3 MB, free: 10.45 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000643/0.2834, allocations: 450.3 kB / 393.7 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.377e-05/0.2834, allocations: 4.625 kB / 393.7 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.286e-05/0.2835, allocations: 18.05 kB / 393.8 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.139e-05/0.2835, allocations: 13.3 kB / 393.8 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005177/0.284, allocations: 316.2 kB / 394.1 MB, free: 10.3 MB / 318.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.001856/0.2859, allocations: 2.617 MB / 396.7 MB, free: 8.223 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004675/0.2863, allocations: 252.9 kB / 396.9 MB, free: 8.195 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001387/0.2865, allocations: 107.8 kB / 397 MB, free: 8.188 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02559/0.3121, allocations: 15.48 MB / 412.5 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.779e-05/0.3121, allocations: 35.75 kB / 412.6 MB, free: 12.75 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 1.623e-06/0.3121, allocations: 4 kB / 412.6 MB, free: 12.74 MB / 334.1 MB Notification: Performance of matching and sorting (n=30): time 0.003987/0.3161, allocations: 1.31 MB / 413.9 MB, free: 12.16 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.075e-05/0.3162, allocations: 55.97 kB / 413.9 MB, free: 12.1 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000229/0.3164, allocations: 265.5 kB / 414.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.559e-05/0.3165, allocations: 32.23 kB / 414.2 MB, free: 11.93 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001067/0.3166, allocations: 195.8 kB / 414.4 MB, free: 11.79 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.466e-05/0.3166, allocations: 106.4 kB / 414.5 MB, free: 11.71 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.31e-05/0.3167, allocations: 86.66 kB / 414.6 MB, free: 11.68 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.3169, allocations: 338.6 kB / 414.9 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001426/0.317, allocations: 100.6 kB / 415 MB, free: 11.34 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000206/0.3172, allocations: 216.5 kB / 415.2 MB, free: 11.19 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003786/0.3176, allocations: 353.2 kB / 415.6 MB, free: 11.04 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.3176, allocations: 2.562 kB / 415.6 MB, free: 11.04 MB / 334.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006224/0.3182, allocations: 446.8 kB / 416 MB, free: 10.93 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/0.3183, allocations: 5.812 kB / 416 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.3183, allocations: 3.375 kB / 416 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003135/0.3214, allocations: 261.7 kB / 416.3 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002566/0.3217, allocations: 86.14 kB / 416.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001291/0.323, allocations: 1.882 MB / 418.3 MB, free: 9.008 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002157/0.3232, allocations: 23.39 kB / 418.3 MB, free: 9.004 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.424e-05/0.3232, allocations: 20.72 kB / 418.3 MB, free: 9 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 3 (ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(2,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001483/0.3234, allocations: 160.8 kB / 418.5 MB, free: 8.883 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.709e-05/0.3235, allocations: 43.8 kB / 418.5 MB, free: 8.859 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009169/0.3244, allocations: 0.9418 MB / 419.4 MB, free: 8.402 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.177e-06/0.3244, allocations: 9.297 kB / 419.4 MB, free: 8.395 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.373e-06/0.3244, allocations: 0 / 419.4 MB, free: 8.395 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008442/0.3253, allocations: 1.12 MB / 420.6 MB, free: 7.484 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001687/0.327, allocations: 1.596 MB / 422.2 MB, free: 6.336 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.327, allocations: 0 / 422.2 MB, free: 6.336 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001947/0.3272, allocations: 49.41 kB / 422.2 MB, free: 6.289 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00163/0.3288, allocations: 287.9 kB / 422.5 MB, free: 6.055 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.138e-05/0.3289, allocations: 9.062 kB / 422.5 MB, free: 6.051 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005027/0.3294, allocations: 0.6698 MB / 423.2 MB, free: 5.422 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.3294, allocations: 0 / 423.2 MB, free: 5.422 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001003/0.3304, allocations: 0.9526 MB / 424.1 MB, free: 4.781 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.35e-05/0.3305, allocations: 116.4 kB / 424.2 MB, free: 4.652 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.19e-05/0.3305, allocations: 21.81 kB / 424.3 MB, free: 4.637 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000201/0.3307, allocations: 21.3 kB / 424.3 MB, free: 4.621 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.389e-05/0.3308, allocations: 19.66 kB / 424.3 MB, free: 4.605 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.932e-05/0.3308, allocations: 8 kB / 424.3 MB, free: 4.598 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002173/0.331, allocations: 241.3 kB / 424.5 MB, free: 4.406 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.331, allocations: 0 / 424.5 MB, free: 4.406 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001635/0.3327, allocations: 0.4923 MB / 425 MB, free: 3.934 MB / 334.1 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: 4 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {(2,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002705/0.3354, allocations: 1.915 MB / 426.9 MB, free: 2.383 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000724/0.3361, allocations: 0.5183 MB / 427.5 MB, free: 1.996 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.3361, allocations: 0 / 427.5 MB, free: 1.996 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003853/0.3365, allocations: 298.3 kB / 427.8 MB, free: 1.828 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009902/0.3375, allocations: 188 kB / 427.9 MB, free: 1.676 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004618/0.3421, allocations: 4.15 MB / 432.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003317/0.3425, allocations: 0.8206 MB / 432.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000275/0.3428, allocations: 114.8 kB / 433 MB, free: 12.64 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001646/0.3429, allocations: 147.4 kB / 433.2 MB, free: 12.5 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.3429, allocations: 3.938 kB / 433.2 MB, free: 12.49 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.702/3.045, allocations: 22.67 MB / 455.8 MB, free: 5.832 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002027/3.045, allocations: 251 kB / 456.1 MB, free: 5.574 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.672/5.717, allocations: 3.906 kB / 456.1 MB, free: 5.57 MB / 366.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97_pT_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97_pT.fmu > Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/Tests/MediaTestModels/Water/WaterIF97_pT/WaterIF97_pT.csv","../files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches