Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearWater_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.LinearFluid.LinearWater_pT,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_LinearFluid_LinearWater_pT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearWater_pT,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_LinearFluid_LinearWater_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.001616/0.001616, allocations: 110.6 kB / 17.73 MB, free: 5.312 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.001707/0.001707, allocations: 194.9 kB / 18.67 MB, free: 4.379 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.397/1.397, allocations: 205.1 MB / 224.6 MB, free: 12.23 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.001716/0.001716, allocations: 59.91 kB / 328.1 MB, free: 3.758 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09017/0.0919, allocations: 46.62 MB / 374.7 MB, free: 5.023 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearWater_pT): time 0.2036/0.2955, allocations: 39.24 MB / 413.9 MB, free: 3.77 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00295/0.2985, allocations: 2.043 MB / 416 MB, free: 2.098 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002218/0.2988, allocations: 3.75 kB / 416 MB, free: 2.098 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000563/0.2994, allocations: 177.5 kB / 416.2 MB, free: 1.945 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006033/0.3, allocations: 317.6 kB / 416.5 MB, free: 1.688 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006561/0.3007, allocations: 272 kB / 416.7 MB, free: 1.48 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001062/0.3018, allocations: 0.8402 MB / 417.6 MB, free: 1.012 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002431/0.302, allocations: 97.84 kB / 417.7 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1111/0.4131, allocations: 44.1 MB / 461.8 MB, free: 8.367 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005903/0.4137, allocations: 275.8 kB / 462 MB, free: 8.098 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.317e-05/0.4138, allocations: 28 kB / 462.1 MB, free: 8.07 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001637/0.414, allocations: 44 kB / 462.1 MB, free: 8.027 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001218/0.4141, allocations: 91.7 kB / 462.2 MB, free: 7.938 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002444/0.4144, allocations: 179.3 kB / 462.4 MB, free: 7.762 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005929/0.415, allocations: 442.4 kB / 462.8 MB, free: 7.328 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.415, allocations: 0 / 462.8 MB, free: 7.328 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.415, allocations: 0 / 462.8 MB, free: 7.328 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.163e-06/0.415, allocations: 0 / 462.8 MB, free: 7.328 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0009963/0.416, allocations: 0.5923 MB / 463.4 MB, free: 6.688 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.4161, allocations: 8.031 kB / 463.4 MB, free: 6.68 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.023e-05/0.4161, allocations: 62.72 kB / 463.5 MB, free: 6.609 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000264/0.4164, allocations: 44.73 kB / 463.5 MB, free: 6.566 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004335/0.4168, allocations: 287.9 kB / 463.8 MB, free: 6.246 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.44e-05/0.4169, allocations: 20.94 kB / 463.8 MB, free: 6.223 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.845e-05/0.4169, allocations: 28.12 kB / 463.8 MB, free: 6.195 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004733/0.4174, allocations: 299.7 kB / 464.1 MB, free: 5.875 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.832e-05/0.4174, allocations: 4.5 kB / 464.1 MB, free: 5.871 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.028e-05/0.4175, allocations: 8 kB / 464.2 MB, free: 5.863 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.358e-06/0.4175, allocations: 8 kB / 464.2 MB, free: 5.855 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003306/0.4178, allocations: 193.6 kB / 464.4 MB, free: 5.668 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001762/0.4196, allocations: 1.44 MB / 465.8 MB, free: 4.113 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003069/0.4199, allocations: 176.9 kB / 466 MB, free: 3.934 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001476/0.4201, allocations: 88.83 kB / 466 MB, free: 3.844 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.736e-05/0.4201, allocations: 7.938 kB / 466.1 MB, free: 3.836 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.156e-05/0.4202, allocations: 46.5 kB / 466.1 MB, free: 3.781 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.453e-06/0.4202, allocations: 0 / 466.1 MB, free: 3.781 MB / 382.1 MB Notification: Performance of matching and sorting (n=26): time 0.002548/0.4227, allocations: 1.008 MB / 467.1 MB, free: 2.695 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.116e-05/0.4228, allocations: 55.41 kB / 467.2 MB, free: 2.629 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002915/0.4231, allocations: 262.5 kB / 467.4 MB, free: 2.363 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.954e-05/0.4231, allocations: 29.7 kB / 467.5 MB, free: 2.328 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000134/0.4232, allocations: 180.5 kB / 467.6 MB, free: 2.148 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.109e-05/0.4233, allocations: 99.19 kB / 467.7 MB, free: 2.051 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001037/0.4234, allocations: 65.66 kB / 467.8 MB, free: 1.98 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.4236, allocations: 342.8 kB / 468.1 MB, free: 1.637 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001588/0.4238, allocations: 83.97 kB / 468.2 MB, free: 1.555 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002238/0.424, allocations: 178.9 kB / 468.4 MB, free: 1.34 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003997/0.4244, allocations: 290.9 kB / 468.7 MB, free: 1.016 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.4244, allocations: 4 kB / 468.7 MB, free: 1.012 MB / 382.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007015/0.4251, allocations: 382.8 kB / 469 MB, free: 0.625 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.051e-05/0.4252, allocations: 8 kB / 469 MB, free: 0.6172 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.4252, allocations: 7.984 kB / 469.1 MB, free: 0.6094 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00025/0.4254, allocations: 53.69 kB / 469.1 MB, free: 0.5508 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003071/0.4258, allocations: 72.28 kB / 469.2 MB, free: 492 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002706/0.4285, allocations: 2.892 MB / 472.1 MB, free: 13.31 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000246/0.4287, allocations: 12 kB / 472.1 MB, free: 13.3 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.627e-05/0.4288, allocations: 12 kB / 472.1 MB, free: 13.29 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (39): * Single equations (assignments): 37 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001932/0.429, allocations: 155.2 kB / 472.2 MB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.338e-05/0.429, allocations: 31.83 kB / 472.3 MB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.937e-05/0.4291, allocations: 38.25 kB / 472.3 MB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.4291, allocations: 4 kB / 472.3 MB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.4292, allocations: 3.938 kB / 472.3 MB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006756/0.4298, allocations: 0.5591 MB / 472.9 MB, free: 12.4 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001075/0.4309, allocations: 0.6916 MB / 473.6 MB, free: 11.64 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.4309, allocations: 4.031 kB / 473.6 MB, free: 11.64 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002064/0.4312, allocations: 51.91 kB / 473.6 MB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002311/0.4314, allocations: 52.75 kB / 473.7 MB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.277e-05/0.4314, allocations: 5.125 kB / 473.7 MB, free: 11.53 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001362/0.4328, allocations: 1.492 MB / 475.2 MB, free: 9.902 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.4328, allocations: 0 / 475.2 MB, free: 9.902 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007268/0.4335, allocations: 476.9 kB / 475.6 MB, free: 9.414 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.894e-05/0.4337, allocations: 108.9 kB / 475.7 MB, free: 9.289 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.169e-05/0.4337, allocations: 8 kB / 475.8 MB, free: 9.281 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001945/0.4339, allocations: 4.141 kB / 475.8 MB, free: 9.277 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.959e-05/0.434, allocations: 27.95 kB / 475.8 MB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.355e-05/0.434, allocations: 12 kB / 475.8 MB, free: 9.238 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002135/0.4342, allocations: 186 kB / 476 MB, free: 9.055 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4342, allocations: 0 / 476 MB, free: 9.055 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004049/0.4346, allocations: 88 kB / 476.1 MB, free: 8.969 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,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 (24): * Single equations (assignments): 23 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001059/0.4357, allocations: 0.9989 MB / 477.1 MB, free: 7.938 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008334/0.4365, allocations: 485.8 kB / 477.5 MB, free: 7.438 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.4366, allocations: 0 / 477.5 MB, free: 7.438 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003896/0.4369, allocations: 238.9 kB / 477.8 MB, free: 7.191 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009172/0.4379, allocations: 158.1 kB / 477.9 MB, free: 7.039 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004144/0.442, allocations: 3.157 MB / 481.1 MB, free: 3.711 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004136/0.4425, allocations: 0.7606 MB / 481.8 MB, free: 2.926 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002387/0.4427, allocations: 50.94 kB / 481.9 MB, free: 2.875 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000148/0.4429, allocations: 91.41 kB / 482 MB, free: 2.785 MB / 398.1 MB Notification: Performance of SimCode: time 2.204e-06/0.4429, allocations: 0 / 482 MB, free: 2.785 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03929/0.4822, allocations: 8.751 MB / 490.7 MB, free: 9.973 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.97/12.45, allocations: 19.84 kB / 490.8 MB, free: 9.953 MB / 414.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearWater_pT.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearWater_pT.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearWater_pT.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearWater_pT.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearWater_pT_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_LinearFluid_LinearWater_pT_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_LinearFluid_LinearWater_pT.fmu > Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearWater_pT.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearWater_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/LinearFluid/LinearWater_pT/LinearWater_pT.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearWater_pT.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches