Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.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.001827/0.001827, allocations: 103.6 kB / 20.43 MB, free: 1.211 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.002172/0.002172, allocations: 185 kB / 23.71 MB, free: 4.434 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.425/1.425, allocations: 225.7 MB / 252.5 MB, free: 12.86 MB / 206.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.R134a.R134a2,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_R134a_R134a2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a2,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_R134a_R134a2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001587/0.001587, allocations: 55.91 kB / 370.4 MB, free: 9.691 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2393/0.2409, allocations: 52.18 MB / 422.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.04051/0.2814, allocations: 34.7 MB / 457.3 MB, free: 11.59 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03434/0.3157, allocations: 27.14 MB / 484.4 MB, free: 372 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004817/0.3162, allocations: 11.94 kB / 484.4 MB, free: 360 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00108/0.3173, allocations: 374 kB / 484.8 MB, free: 15.98 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001164/0.3184, allocations: 0.5283 MB / 485.3 MB, free: 15.45 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01422/0.3327, allocations: 5.252 MB / 490.6 MB, free: 10.18 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00197/0.3346, allocations: 1.379 MB / 491.9 MB, free: 8.801 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002767/0.3349, allocations: 118.8 kB / 492.1 MB, free: 8.68 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009105/0.3358, allocations: 0.5489 MB / 492.6 MB, free: 8.129 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006264/0.3364, allocations: 438.2 kB / 493 MB, free: 7.699 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.359e-05/0.3365, allocations: 56 kB / 493.1 MB, free: 7.645 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02543/0.362, allocations: 12.43 MB / 0.4937 GB, free: 11.19 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003119/0.3623, allocations: 151.5 kB / 0.4938 GB, free: 11.04 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004923/0.3628, allocations: 283 kB / 0.4941 GB, free: 10.76 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04362/0.4064, allocations: 14.94 MB / 0.5087 GB, free: 11.81 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.76e-06/0.4064, allocations: 4 kB / 0.5087 GB, free: 11.8 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.4064, allocations: 0 / 0.5087 GB, free: 11.8 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.08e-05/0.4064, allocations: 3.938 kB / 0.5087 GB, free: 11.8 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.007612/0.414, allocations: 1.385 MB / 0.51 GB, free: 10.38 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.219e-05/0.4141, allocations: 8.031 kB / 0.51 GB, free: 10.37 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001471/0.4142, allocations: 90.52 kB / 0.5101 GB, free: 10.27 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007603/0.415, allocations: 95.58 kB / 0.5102 GB, free: 10.18 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006977/0.4157, allocations: 336.2 kB / 0.5105 GB, free: 9.824 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.826e-05/0.4157, allocations: 33 kB / 0.5106 GB, free: 9.793 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.093e-05/0.4158, allocations: 48 kB / 0.5106 GB, free: 9.746 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001392/0.4172, allocations: 0.8213 MB / 0.5114 GB, free: 8.828 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.227e-05/0.4172, allocations: 3.938 kB / 0.5114 GB, free: 8.824 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.06e-05/0.4173, allocations: 24 kB / 0.5114 GB, free: 8.801 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.544e-05/0.4173, allocations: 12 kB / 0.5115 GB, free: 8.789 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001114/0.4184, allocations: 0.5268 MB / 0.512 GB, free: 8.266 MB / 430.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.004038/0.4225, allocations: 2.814 MB / 0.5147 GB, free: 5.363 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009542/0.4234, allocations: 384.2 kB / 0.5151 GB, free: 4.98 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003315/0.4237, allocations: 202.9 kB / 0.5153 GB, free: 4.785 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002047/0.4258, allocations: 0.6207 MB / 0.5159 GB, free: 4.164 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.019e-05/0.4258, allocations: 38.94 kB / 0.5159 GB, free: 4.117 MB / 430.1 MB Notification: Performance of pre-optimization done (n=46): time 3.487e-06/0.4258, allocations: 0 / 0.5159 GB, free: 4.117 MB / 430.1 MB Notification: Performance of matching and sorting (n=54): time 0.009386/0.4352, allocations: 1.884 MB / 0.5178 GB, free: 2.191 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.991e-05/0.4353, allocations: 63.72 kB / 0.5178 GB, free: 2.117 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003924/0.4357, allocations: 316.3 kB / 0.5181 GB, free: 1.801 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.899e-05/0.4357, allocations: 37.7 kB / 0.5182 GB, free: 1.758 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001879/0.4359, allocations: 237.2 kB / 0.5184 GB, free: 1.523 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001691/0.4361, allocations: 198.3 kB / 0.5186 GB, free: 1.328 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000186/0.4363, allocations: 118.3 kB / 0.5187 GB, free: 1.207 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000178/0.4364, allocations: 350.8 kB / 0.519 GB, free: 0.8555 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003317/0.4368, allocations: 181.2 kB / 0.5192 GB, free: 0.6797 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004933/0.4373, allocations: 336.1 kB / 0.5195 GB, free: 296 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009181/0.4382, allocations: 0.5445 MB / 0.5201 GB, free: 15.68 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.4382, allocations: 0 / 0.5201 GB, free: 15.68 MB / 446.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001382/0.4396, allocations: 0.6699 MB / 0.5207 GB, free: 15 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.32e-05/0.4396, allocations: 14.12 kB / 0.5207 GB, free: 14.98 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.468e-05/0.4396, allocations: 8 kB / 0.5207 GB, free: 14.98 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00898/0.4486, allocations: 454.6 kB / 0.5212 GB, free: 14.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005989/0.4492, allocations: 139.8 kB / 0.5213 GB, free: 14.39 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002678/0.4519, allocations: 2.993 MB / 0.5242 GB, free: 11.21 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003542/0.4522, allocations: 16 kB / 0.5242 GB, free: 11.19 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.278e-05/0.4523, allocations: 31.98 kB / 0.5243 GB, free: 11.16 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 (volume1.medium.phase,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 (73): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * 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 {1} * 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): 3 systems {(1,1), (1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003321/0.4526, allocations: 185.7 kB / 0.5244 GB, free: 10.97 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001506/0.4528, allocations: 43.72 kB / 0.5245 GB, free: 10.93 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001812/0.4546, allocations: 1.079 MB / 0.5255 GB, free: 9.82 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.585e-05/0.4546, allocations: 16.17 kB / 0.5255 GB, free: 9.805 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.4546, allocations: 3.938 kB / 0.5256 GB, free: 9.801 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001407/0.456, allocations: 1.11 MB / 0.5266 GB, free: 8.621 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002576/0.4586, allocations: 1.658 MB / 0.5283 GB, free: 6.906 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.005e-05/0.4586, allocations: 7.938 kB / 0.5283 GB, free: 6.898 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004052/0.459, allocations: 99.88 kB / 0.5284 GB, free: 6.801 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003047/0.4621, allocations: 349 kB / 0.5287 GB, free: 6.453 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.296e-05/0.4621, allocations: 19.98 kB / 0.5287 GB, free: 6.434 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009382/0.463, allocations: 1.152 MB / 0.5298 GB, free: 5.23 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.463, allocations: 0 / 0.5298 GB, free: 5.23 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001706/0.4648, allocations: 1.151 MB / 0.531 GB, free: 4.059 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001206/0.4649, allocations: 43.69 kB / 0.531 GB, free: 4.016 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.034e-05/0.465, allocations: 23.89 kB / 0.531 GB, free: 3.992 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002545/0.4652, allocations: 8 kB / 0.531 GB, free: 3.984 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.361e-05/0.4653, allocations: 44.36 kB / 0.5311 GB, free: 3.941 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.811e-05/0.4653, allocations: 27.98 kB / 0.5311 GB, free: 3.914 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003014/0.4656, allocations: 247 kB / 0.5313 GB, free: 3.676 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4656, allocations: 192 / 0.5313 GB, free: 3.676 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005023/0.4707, allocations: 0.9818 MB / 0.5323 GB, free: 2.691 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (volume.medium.p,volume.medium.h,volume1.medium.p,volume1.medium.h) * Number of discrete variables: 6 ($cse1.phase,$cse2,$cse5.phase,$cse6,$cse7.phase,$cse8) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 {(1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.2092/0.6798, allocations: 9.449 MB / 0.5415 GB, free: 102.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001479/0.6813, allocations: 0.7072 MB / 0.5422 GB, free: 102.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.6813, allocations: 0 / 0.5422 GB, free: 102.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005313/0.6819, allocations: 346 kB / 0.5425 GB, free: 102.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001297/0.6832, allocations: 262.6 kB / 0.5428 GB, free: 102.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009329/0.6925, allocations: 5.339 MB / 0.548 GB, free: 98.17 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002148/0.6927, allocations: 277.3 kB / 0.5483 GB, free: 97.94 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004929/0.6932, allocations: 237 kB / 0.5485 GB, free: 97.79 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000201/0.6934, allocations: 201.7 kB / 0.5487 GB, free: 97.62 MB / 446.1 MB Notification: Performance of SimCode: time 7.72e-07/0.6934, allocations: 4 kB / 0.5487 GB, free: 97.61 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06881/0.7622, allocations: 43.63 MB / 0.5913 GB, free: 55.16 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.55/15.31, allocations: 0 / 0.5913 GB, free: 55.16 MB / 446.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2_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_R134a_R134a2.fmu > Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/R134a/R134a2/R134a2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.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: 19.462869774084538]