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.001222/0.001222, allocations: 109.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.001264/0.001264, allocations: 192.1 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.235/1.235, 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.001162/0.001162, allocations: 60.14 kB / 328.1 MB, free: 3.762 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.082/0.08317, allocations: 46.61 MB / 374.7 MB, free: 5.043 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearWater_pT): time 0.2045/0.2878, allocations: 39.26 MB / 413.9 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002475/0.2903, allocations: 2.037 MB / 416 MB, free: 2.113 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001627/0.2905, allocations: 4.125 kB / 416 MB, free: 2.113 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005443/0.291, allocations: 172.9 kB / 416.1 MB, free: 1.965 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005232/0.2916, allocations: 317.6 kB / 416.5 MB, free: 1.707 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006106/0.2922, allocations: 287.5 kB / 416.7 MB, free: 1.488 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007813/0.293, allocations: 0.836 MB / 417.6 MB, free: 1.023 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001813/0.2932, allocations: 104 kB / 417.7 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1017/0.3949, allocations: 44.1 MB / 461.8 MB, free: 8.359 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000592/0.3955, allocations: 271.8 kB / 462 MB, free: 8.094 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.496e-05/0.3956, allocations: 28 kB / 462.1 MB, free: 8.066 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002052/0.3958, allocations: 47.92 kB / 462.1 MB, free: 8.02 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001168/0.396, allocations: 87.67 kB / 462.2 MB, free: 7.934 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002365/0.3962, allocations: 179.3 kB / 462.4 MB, free: 7.758 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005033/0.3967, allocations: 438.6 kB / 462.8 MB, free: 7.328 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.3967, allocations: 0 / 462.8 MB, free: 7.328 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.3967, allocations: 4 kB / 462.8 MB, free: 7.324 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.043e-05/0.3968, allocations: 0 / 462.8 MB, free: 7.324 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.0009365/0.3977, allocations: 0.5776 MB / 463.4 MB, free: 6.699 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.3978, allocations: 12.03 kB / 463.4 MB, free: 6.688 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.035e-05/0.3978, allocations: 62.73 kB / 463.5 MB, free: 6.617 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002798/0.3981, allocations: 40.64 kB / 463.5 MB, free: 6.578 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004275/0.3986, allocations: 288.3 kB / 463.8 MB, free: 6.258 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.047e-05/0.3986, allocations: 16.94 kB / 463.8 MB, free: 6.238 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.111e-05/0.3986, allocations: 28.12 kB / 463.8 MB, free: 6.211 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004414/0.3991, allocations: 307.7 kB / 464.1 MB, free: 5.883 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.442e-05/0.3991, allocations: 0 / 464.1 MB, free: 5.883 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.259e-05/0.3991, allocations: 12 kB / 464.1 MB, free: 5.871 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.556e-06/0.3992, allocations: 8 kB / 464.1 MB, free: 5.863 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000307/0.3995, allocations: 197.5 kB / 464.3 MB, free: 5.672 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001629/0.4011, allocations: 1.438 MB / 465.8 MB, free: 4.121 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002925/0.4014, allocations: 182.6 kB / 466 MB, free: 3.934 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001324/0.4015, allocations: 88.83 kB / 466 MB, free: 3.844 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.454e-05/0.4016, allocations: 11.94 kB / 466.1 MB, free: 3.832 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.433e-05/0.4016, allocations: 30.56 kB / 466.1 MB, free: 3.793 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.533e-06/0.4016, allocations: 0 / 466.1 MB, free: 3.793 MB / 382.1 MB Notification: Performance of matching and sorting (n=26): time 0.002381/0.404, allocations: 1.007 MB / 467.1 MB, free: 2.707 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.301e-05/0.4041, allocations: 55.41 kB / 467.1 MB, free: 2.641 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002531/0.4043, allocations: 258.6 kB / 467.4 MB, free: 2.379 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.608e-05/0.4043, allocations: 29.7 kB / 467.4 MB, free: 2.344 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001071/0.4045, allocations: 176.2 kB / 467.6 MB, free: 2.168 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.506e-05/0.4045, allocations: 94.64 kB / 467.7 MB, free: 2.074 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.492e-05/0.4046, allocations: 69.61 kB / 467.8 MB, free: 2 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.4048, allocations: 342.8 kB / 468.1 MB, free: 1.656 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001419/0.4049, allocations: 83.97 kB / 468.2 MB, free: 1.574 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000188/0.4051, allocations: 178.8 kB / 468.4 MB, free: 1.359 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003594/0.4055, allocations: 287 kB / 468.6 MB, free: 1.039 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.4055, allocations: 0 / 468.6 MB, free: 1.039 MB / 382.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006371/0.4061, allocations: 386.7 kB / 469 MB, free: 0.6484 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.4062, allocations: 8 kB / 469 MB, free: 0.6406 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.4062, allocations: 0 / 469 MB, free: 0.6406 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002555/0.4064, allocations: 77.91 kB / 469.1 MB, free: 0.5586 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002885/0.4067, allocations: 67.91 kB / 469.2 MB, free: 0.4922 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002159/0.4089, allocations: 2.885 MB / 472 MB, free: 13.33 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002146/0.4091, allocations: 12 kB / 472.1 MB, free: 13.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.305e-05/0.4092, allocations: 15.98 kB / 472.1 MB, free: 13.3 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.0001579/0.4093, allocations: 151.2 kB / 472.2 MB, free: 13.14 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.771e-05/0.4094, allocations: 27.72 kB / 472.2 MB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.08e-05/0.4095, allocations: 34.17 kB / 472.3 MB, free: 13.08 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.4095, allocations: 4 kB / 472.3 MB, free: 13.08 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.4095, allocations: 3.938 kB / 472.3 MB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005902/0.4101, allocations: 0.5591 MB / 472.8 MB, free: 12.43 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009633/0.4111, allocations: 0.6994 MB / 473.5 MB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.049e-06/0.4111, allocations: 4 kB / 473.6 MB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001963/0.4113, allocations: 45.05 kB / 473.6 MB, free: 11.62 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002112/0.4115, allocations: 52.69 kB / 473.6 MB, free: 11.56 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.193e-05/0.4115, allocations: 11.94 kB / 473.7 MB, free: 11.55 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001062/0.4126, allocations: 1.491 MB / 475.1 MB, free: 9.922 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.4126, allocations: 0 / 475.1 MB, free: 9.922 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006481/0.4133, allocations: 476.9 kB / 475.6 MB, free: 9.434 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.13e-05/0.4133, allocations: 104.8 kB / 475.7 MB, free: 9.312 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.555e-05/0.4134, allocations: 8.125 kB / 475.7 MB, free: 9.305 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001936/0.4136, allocations: 8 kB / 475.7 MB, free: 9.297 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.424e-05/0.4136, allocations: 19.91 kB / 475.8 MB, free: 9.277 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.132e-05/0.4137, allocations: 15.98 kB / 475.8 MB, free: 9.262 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001636/0.4138, allocations: 178 kB / 475.9 MB, free: 9.086 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4138, allocations: 0 / 475.9 MB, free: 9.086 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003976/0.4142, allocations: 92 kB / 476 MB, free: 8.996 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.0008934/0.4151, allocations: 1.006 MB / 477 MB, free: 7.957 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006974/0.4159, allocations: 474 kB / 477.5 MB, free: 7.469 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.634e-06/0.4159, allocations: 3.938 kB / 477.5 MB, free: 7.465 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003402/0.4162, allocations: 230.9 kB / 477.7 MB, free: 7.227 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008468/0.4171, allocations: 162.2 kB / 477.9 MB, free: 7.07 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003616/0.4207, allocations: 3.145 MB / 481 MB, free: 3.758 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002842/0.421, allocations: 0.7645 MB / 481.8 MB, free: 2.969 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002195/0.4212, allocations: 54.92 kB / 481.9 MB, free: 2.914 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001254/0.4214, allocations: 91.41 kB / 481.9 MB, free: 2.824 MB / 398.1 MB Notification: Performance of SimCode: time 3.51e-07/0.4214, allocations: 4 kB / 481.9 MB, free: 2.82 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03012/0.4515, allocations: 8.861 MB / 490.8 MB, free: 9.898 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.2/11.66, allocations: 7.875 kB / 490.8 MB, free: 9.891 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