Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001732/0.001732, allocations: 120.1 kB / 17.79 MB, free: 5.27 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002049/0.002049, allocations: 198.8 kB / 20.73 MB, free: 2.332 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.458/1.458, allocations: 225.6 MB / 249.1 MB, free: 3.602 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.ReferenceAir.MoistAir1,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_MoistAir1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.MoistAir1,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_MoistAir1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001927/0.001927, allocations: 47.92 kB / 365.6 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1185, allocations: 52.14 MB / 417.8 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir1): time 0.2684/0.3869, allocations: 50.76 MB / 468.6 MB, free: 3.465 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005668/0.3926, allocations: 5.212 MB / 473.8 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002839/0.3929, allocations: 7.969 kB / 473.8 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007661/0.3936, allocations: 254.8 kB / 474 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006713/0.3943, allocations: 369 kB / 474.4 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01723/0.4115, allocations: 7.123 MB / 481.5 MB, free: 13.73 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001772/0.4133, allocations: 1.093 MB / 482.6 MB, free: 13.12 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002595/0.4136, allocations: 109.6 kB / 482.7 MB, free: 13.06 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007161/0.4207, allocations: 3.626 MB / 486.3 MB, free: 11.1 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007309/0.4214, allocations: 433.5 kB / 486.8 MB, free: 10.84 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000105/0.4215, allocations: 58.88 kB / 486.8 MB, free: 10.84 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02/0.4415, allocations: 10.08 MB / 496.9 MB, free: 5.508 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003876/0.4419, allocations: 228.2 kB / 497.1 MB, free: 5.344 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000565/0.4425, allocations: 305.6 kB / 497.4 MB, free: 5.164 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01388/0.4564, allocations: 5.512 MB / 0.4911 GB, free: 400 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.4564, allocations: 0 / 0.4911 GB, free: 400 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.4564, allocations: 0 / 0.4911 GB, free: 400 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.101e-05/0.4564, allocations: 0 / 0.4911 GB, free: 400 kB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.003849/0.4602, allocations: 1.402 MB / 0.4925 GB, free: 14.93 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.4603, allocations: 8.031 kB / 0.4925 GB, free: 14.93 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001214/0.4604, allocations: 90.45 kB / 0.4926 GB, free: 14.83 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003741/0.4608, allocations: 63.7 kB / 0.4927 GB, free: 14.77 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005376/0.4613, allocations: 370 kB / 0.493 GB, free: 14.36 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.211e-05/0.4614, allocations: 37 kB / 0.4931 GB, free: 14.33 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.365e-05/0.4614, allocations: 40 kB / 0.4931 GB, free: 14.29 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001346/0.4628, allocations: 0.5882 MB / 0.4937 GB, free: 13.69 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.704e-05/0.4628, allocations: 0 / 0.4937 GB, free: 13.69 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.005e-05/0.4629, allocations: 20 kB / 0.4937 GB, free: 13.67 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.749e-05/0.4629, allocations: 12 kB / 0.4937 GB, free: 13.66 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001471/0.4644, allocations: 0.7424 MB / 0.4944 GB, free: 12.92 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01756/0.4819, allocations: 11.97 MB / 0.5061 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001336/0.4833, allocations: 0.5064 MB / 0.5066 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004024/0.4837, allocations: 246.1 kB / 0.5068 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01617/0.4998, allocations: 11.89 MB / 0.5185 GB, free: 15.92 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.216e-05/0.4999, allocations: 43 kB / 0.5185 GB, free: 15.87 MB / 430.1 MB Notification: Performance of pre-optimization done (n=50): time 2.344e-06/0.4999, allocations: 0 / 0.5185 GB, free: 15.87 MB / 430.1 MB Notification: Performance of matching and sorting (n=55): time 0.006168/0.506, allocations: 2.119 MB / 0.5206 GB, free: 13.66 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.868e-05/0.5061, allocations: 71.89 kB / 0.5206 GB, free: 13.58 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003973/0.5065, allocations: 315 kB / 0.5209 GB, free: 13.27 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.569e-05/0.5065, allocations: 33.7 kB / 0.521 GB, free: 13.23 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001767/0.5067, allocations: 208.7 kB / 0.5212 GB, free: 13.02 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001701/0.5069, allocations: 202.3 kB / 0.5214 GB, free: 12.82 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001993/0.5071, allocations: 110.2 kB / 0.5215 GB, free: 12.71 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001755/0.5073, allocations: 346.8 kB / 0.5218 GB, free: 12.36 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004162/0.5077, allocations: 244.9 kB / 0.522 GB, free: 12.12 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006895/0.5084, allocations: 343.3 kB / 0.5224 GB, free: 11.75 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001252/0.5096, allocations: 0.5995 MB / 0.5229 GB, free: 11.12 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.5096, allocations: 0 / 0.5229 GB, free: 11.12 MB / 430.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001971/0.5116, allocations: 0.7558 MB / 0.5237 GB, free: 10.34 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.626e-05/0.5116, allocations: 10.5 kB / 0.5237 GB, free: 10.34 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.236e-06/0.5116, allocations: 0 / 0.5237 GB, free: 10.34 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005419/0.5122, allocations: 113.9 kB / 0.5238 GB, free: 10.22 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005138/0.5127, allocations: 127.5 kB / 0.5239 GB, free: 10.1 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003019/0.5157, allocations: 3.468 MB / 0.5273 GB, free: 6.324 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003349/0.516, allocations: 16 kB / 0.5273 GB, free: 6.309 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.979e-05/0.5161, allocations: 31.98 kB / 0.5274 GB, free: 6.277 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {2} * Without analytic Jacobian (size): 0 systems 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 {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003096/0.5164, allocations: 204.2 kB / 0.5275 GB, free: 6.07 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002991/0.5167, allocations: 47.7 kB / 0.5276 GB, free: 6.023 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001661/0.5184, allocations: 0.8035 MB / 0.5284 GB, free: 5.184 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.166e-06/0.5184, allocations: 8 kB / 0.5284 GB, free: 5.176 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.5184, allocations: 3.984 kB / 0.5284 GB, free: 5.172 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001256/0.5197, allocations: 0.7635 MB / 0.5291 GB, free: 4.336 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002274/0.5219, allocations: 1.301 MB / 0.5304 GB, free: 2.973 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.5219, allocations: 0 / 0.5304 GB, free: 2.973 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004584/0.5224, allocations: 103.8 kB / 0.5305 GB, free: 2.871 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009729/0.5234, allocations: 148.7 kB / 0.5306 GB, free: 2.723 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.394e-05/0.5234, allocations: 19.98 kB / 0.5307 GB, free: 2.703 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004974/0.5239, allocations: 0.6454 MB / 0.5313 GB, free: 2.035 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.5239, allocations: 0 / 0.5313 GB, free: 2.035 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001805/0.5257, allocations: 0.9095 MB / 0.5322 GB, free: 1.102 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001433/0.5259, allocations: 120.8 kB / 0.5323 GB, free: 0.9648 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.044e-05/0.5259, allocations: 16.08 kB / 0.5323 GB, free: 0.9492 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004155/0.5264, allocations: 25.77 kB / 0.5323 GB, free: 0.9258 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.995e-05/0.5264, allocations: 32.39 kB / 0.5324 GB, free: 0.8945 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.49e-05/0.5265, allocations: 24.86 kB / 0.5324 GB, free: 0.8711 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003118/0.5268, allocations: 257.9 kB / 0.5326 GB, free: 0.6211 MB / 430.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.5268, allocations: 0 / 0.5326 GB, free: 0.6211 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003815/0.5306, allocations: 1.329 MB / 0.5339 GB, free: 15.29 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (volume.medium.p,volume.medium.Xi[1],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 (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {2} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008506/0.5391, allocations: 3.052 MB / 0.5369 GB, free: 12.21 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001828/0.5409, allocations: 0.7728 MB / 0.5377 GB, free: 11.41 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.143e-06/0.541, allocations: 4.125 kB / 0.5377 GB, free: 11.41 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006107/0.5416, allocations: 291.1 kB / 0.538 GB, free: 11.12 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00154/0.5431, allocations: 273.3 kB / 0.5382 GB, free: 10.86 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009881/0.553, allocations: 5.324 MB / 0.5434 GB, free: 5.355 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005269/0.5535, allocations: 0.8287 MB / 0.5442 GB, free: 4.496 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005936/0.5541, allocations: 152.2 kB / 0.5444 GB, free: 4.344 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003212/0.5544, allocations: 155.4 kB / 0.5445 GB, free: 4.191 MB / 446.1 MB Notification: Performance of SimCode: time 1.643e-06/0.5544, allocations: 0 / 0.5445 GB, free: 4.191 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.103/0.6574, allocations: 50.51 MB / 0.5938 GB, free: 1.855 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.91/15.57, allocations: 10.44 kB / 0.5939 GB, free: 1.848 MB / 494.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000201919 Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_MoistAir1.fmu > Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/MoistAir1/MoistAir1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.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: 24.625596958678216]