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.001226/0.001227, allocations: 114.5 kB / 17.73 MB, free: 5.34 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.001211/0.001211, allocations: 183 kB / 18.66 MB, free: 4.418 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.232/1.232, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001216/0.001216, allocations: 51.94 kB / 328.1 MB, free: 3.762 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08748/0.0887, allocations: 46.62 MB / 374.7 MB, free: 5.031 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT): time 0.2093/0.298, allocations: 32.56 MB / 407.3 MB, free: 8.602 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01844/0.3165, allocations: 15.73 MB / 423 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003859/0.317, allocations: 4.625 kB / 423 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007897/0.3178, allocations: 263.5 kB / 423.3 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008928/0.3187, allocations: 361.2 kB / 423.6 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01603/0.3347, allocations: 5.785 MB / 429.4 MB, free: 7.746 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001287/0.3361, allocations: 0.9755 MB / 430.4 MB, free: 7.191 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002443/0.3363, allocations: 118.8 kB / 430.5 MB, free: 7.121 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005536/0.3419, allocations: 2.183 MB / 432.7 MB, free: 5.758 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007286/0.3426, allocations: 300.7 kB / 433 MB, free: 5.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001557/0.3428, allocations: 36 kB / 433 MB, free: 5.555 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007971/0.3508, allocations: 3.613 MB / 436.6 MB, free: 1.938 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001951/0.351, allocations: 95.72 kB / 436.7 MB, free: 1.844 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004582/0.3515, allocations: 227.1 kB / 436.9 MB, free: 1.621 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005221/0.3567, allocations: 2.354 MB / 439.3 MB, free: 15.26 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.3567, allocations: 0 / 439.3 MB, free: 15.26 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3567, allocations: 0 / 439.3 MB, free: 15.26 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.31e-05/0.3567, allocations: 4 kB / 439.3 MB, free: 15.26 MB / 366.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.001734/0.3585, allocations: 0.8194 MB / 440.1 MB, free: 14.39 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.3585, allocations: 8.031 kB / 440.1 MB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.486e-05/0.3586, allocations: 70.72 kB / 440.2 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007644/0.3594, allocations: 88.42 kB / 440.3 MB, free: 14.22 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004535/0.3598, allocations: 315.6 kB / 440.6 MB, free: 13.87 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.538e-05/0.3599, allocations: 21.03 kB / 440.6 MB, free: 13.85 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001178/0.36, allocations: 32.38 kB / 440.6 MB, free: 13.82 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000798/0.3608, allocations: 446.1 kB / 441.1 MB, free: 13.34 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.955e-05/0.3609, allocations: 3.984 kB / 441.1 MB, free: 13.33 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.734e-05/0.3609, allocations: 19.98 kB / 441.1 MB, free: 13.31 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.066e-05/0.3609, allocations: 8 kB / 441.1 MB, free: 13.3 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000579/0.3615, allocations: 317.8 kB / 441.4 MB, free: 13 MB / 366.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.002806/0.3643, allocations: 2.618 MB / 444 MB, free: 10.13 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005127/0.3649, allocations: 251.2 kB / 444.3 MB, free: 9.879 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001924/0.3651, allocations: 112.8 kB / 444.4 MB, free: 9.766 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03156/0.3967, allocations: 15.54 MB / 459.9 MB, free: 8.426 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.665e-05/0.3967, allocations: 42.5 kB / 460 MB, free: 8.375 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 1.923e-06/0.3968, allocations: 4 kB / 460 MB, free: 8.371 MB / 382.1 MB Notification: Performance of matching and sorting (n=30): time 0.004511/0.4013, allocations: 1.302 MB / 461.3 MB, free: 6.992 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.563e-05/0.4013, allocations: 55.41 kB / 461.3 MB, free: 6.926 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002829/0.4016, allocations: 266.5 kB / 461.6 MB, free: 6.66 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.408e-05/0.4017, allocations: 33.7 kB / 461.6 MB, free: 6.621 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001196/0.4018, allocations: 184.1 kB / 461.8 MB, free: 6.438 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.035e-05/0.4019, allocations: 118.4 kB / 461.9 MB, free: 6.32 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001122/0.402, allocations: 85.97 kB / 462 MB, free: 6.23 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001161/0.4021, allocations: 338.8 kB / 462.3 MB, free: 5.891 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001628/0.4023, allocations: 100.8 kB / 462.4 MB, free: 5.793 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002779/0.4026, allocations: 218.9 kB / 462.6 MB, free: 5.523 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004318/0.403, allocations: 354.3 kB / 463 MB, free: 5.125 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.403, allocations: 4 kB / 463 MB, free: 5.121 MB / 382.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007765/0.4038, allocations: 442.6 kB / 463.4 MB, free: 4.676 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.4038, allocations: 8 kB / 463.4 MB, free: 4.668 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.4038, allocations: 4 kB / 463.4 MB, free: 4.664 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003275/0.4071, allocations: 261.8 kB / 463.7 MB, free: 4.402 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002848/0.4074, allocations: 87.83 kB / 463.8 MB, free: 4.316 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001527/0.409, allocations: 1.969 MB / 465.7 MB, free: 2.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002242/0.4092, allocations: 19.94 kB / 465.8 MB, free: 2.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.918e-05/0.4092, allocations: 19.98 kB / 465.8 MB, free: 2.141 MB / 382.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.0001991/0.4094, allocations: 165.8 kB / 465.9 MB, free: 1.969 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001079/0.4096, allocations: 31.66 kB / 466 MB, free: 1.938 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001101/0.4107, allocations: 0.9435 MB / 466.9 MB, free: 0.9922 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-05/0.4107, allocations: 7.984 kB / 466.9 MB, free: 0.9844 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.4107, allocations: 0 / 466.9 MB, free: 0.9844 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001075/0.4118, allocations: 1.118 MB / 468 MB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001856/0.4136, allocations: 1.588 MB / 469.6 MB, free: 14.11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.451e-06/0.4137, allocations: 4.875 kB / 469.6 MB, free: 14.11 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000194/0.4139, allocations: 51.91 kB / 469.7 MB, free: 14.06 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00172/0.4156, allocations: 288 kB / 470 MB, free: 13.77 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.013e-05/0.4156, allocations: 7.984 kB / 470 MB, free: 13.77 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006126/0.4163, allocations: 0.6703 MB / 470.6 MB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.4163, allocations: 4.062 kB / 470.6 MB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001241/0.4175, allocations: 0.9536 MB / 471.6 MB, free: 12.09 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001097/0.4176, allocations: 112.6 kB / 471.7 MB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.875e-05/0.4177, allocations: 11.94 kB / 471.7 MB, free: 11.95 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000193/0.4179, allocations: 8.094 kB / 471.7 MB, free: 11.94 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.374e-05/0.418, allocations: 19.97 kB / 471.8 MB, free: 11.92 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.21e-05/0.418, allocations: 16.05 kB / 471.8 MB, free: 11.91 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00025/0.4183, allocations: 243 kB / 472 MB, free: 11.66 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4183, allocations: 0 / 472 MB, free: 11.66 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001538/0.4198, allocations: 495.9 kB / 472.5 MB, free: 11.18 MB / 398.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.003684/0.4235, allocations: 1.915 MB / 474.4 MB, free: 9.23 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009697/0.4245, allocations: 0.5233 MB / 474.9 MB, free: 8.695 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.242e-05/0.4246, allocations: 5 kB / 474.9 MB, free: 8.691 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000477/0.425, allocations: 300.4 kB / 475.2 MB, free: 8.398 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009916/0.426, allocations: 188.6 kB / 475.4 MB, free: 8.215 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005469/0.4315, allocations: 3.946 MB / 479.4 MB, free: 4.078 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004352/0.432, allocations: 0.8206 MB / 480.2 MB, free: 3.234 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002845/0.4323, allocations: 115.1 kB / 480.3 MB, free: 3.117 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002104/0.4325, allocations: 143.4 kB / 480.4 MB, free: 2.977 MB / 398.1 MB Notification: Performance of SimCode: time 6.11e-07/0.4325, allocations: 0 / 480.4 MB, free: 2.977 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05279/0.4853, allocations: 23.46 MB / 0.4921 GB, free: 11.44 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/12.11, allocations: 3.906 kB / 0.4921 GB, free: 11.43 MB / 430.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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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