Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Media.Examples.R134a.R134a2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001333/0.001333, allocations: 115.9 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001404/0.001404, allocations: 213.4 kB / 23.74 MB, free: 4.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.453/1.453, allocations: 230.6 MB / 257.5 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a2,fileNamePrefix="Modelica_4_1_0_Modelica_Media_Examples_R134a_R134a2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a2,fileNamePrefix="Modelica_4_1_0_Modelica_Media_Examples_R134a_R134a2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001496/0.001496, allocations: 47.92 kB / 377.8 MB, free: 3.148 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2545/0.256, allocations: 53.37 MB / 431.1 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.03993/0.2959, allocations: 38.33 MB / 469.5 MB, free: 432 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03542/0.3314, allocations: 30.85 MB / 0.4886 GB, free: 1.473 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005044/0.3319, allocations: 19.88 kB / 0.4886 GB, free: 1.453 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001113/0.333, allocations: 421.7 kB / 0.489 GB, free: 1.039 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001089/0.3341, allocations: 0.5361 MB / 0.4895 GB, free: 0.5 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01391/0.348, allocations: 5.286 MB / 0.4947 GB, free: 11.2 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002005/0.35, allocations: 1.371 MB / 0.496 GB, free: 9.82 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002702/0.3503, allocations: 130.9 kB / 0.4962 GB, free: 9.688 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008779/0.3511, allocations: 0.545 MB / 0.4967 GB, free: 9.141 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006063/0.3517, allocations: 466.1 kB / 0.4971 GB, free: 8.684 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.554e-05/0.3518, allocations: 52 kB / 0.4972 GB, free: 8.633 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02284/0.3747, allocations: 12.95 MB / 0.5098 GB, free: 11.65 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00028/0.3749, allocations: 163.4 kB / 0.51 GB, free: 11.49 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005026/0.3754, allocations: 318.8 kB / 0.5103 GB, free: 11.18 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03425/0.4097, allocations: 14.94 MB / 0.5249 GB, free: 12.22 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.4097, allocations: 0 / 0.5249 GB, free: 12.22 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.4097, allocations: 0 / 0.5249 GB, free: 12.22 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.105e-05/0.4097, allocations: 4 kB / 0.5249 GB, free: 12.22 MB / 446.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.007835/0.4175, allocations: 1.404 MB / 0.5263 GB, free: 10.78 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.4176, allocations: 8.031 kB / 0.5263 GB, free: 10.77 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001064/0.4177, allocations: 90.52 kB / 0.5264 GB, free: 10.67 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008058/0.4185, allocations: 99.56 kB / 0.5264 GB, free: 10.57 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005931/0.4191, allocations: 336.2 kB / 0.5268 GB, free: 10.22 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.523e-05/0.4191, allocations: 33 kB / 0.5268 GB, free: 10.19 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.484e-05/0.4192, allocations: 48 kB / 0.5268 GB, free: 10.14 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001163/0.4204, allocations: 0.6205 MB / 0.5275 GB, free: 9.473 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.847e-05/0.4204, allocations: 11.88 kB / 0.5275 GB, free: 9.461 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.016e-05/0.4204, allocations: 24 kB / 0.5275 GB, free: 9.438 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.266e-05/0.4205, allocations: 12 kB / 0.5275 GB, free: 9.426 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001025/0.4215, allocations: 0.5307 MB / 0.528 GB, free: 8.898 MB / 446.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.00462/0.4261, allocations: 3.663 MB / 0.5316 GB, free: 4.961 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009482/0.427, allocations: 394.9 kB / 0.532 GB, free: 4.57 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003111/0.4274, allocations: 203.2 kB / 0.5322 GB, free: 4.371 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001935/0.4293, allocations: 0.6168 MB / 0.5328 GB, free: 3.754 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.388e-05/0.4293, allocations: 42.92 kB / 0.5328 GB, free: 3.703 MB / 446.1 MB Notification: Performance of pre-optimization done (n=46): time 1.833e-06/0.4293, allocations: 3.938 kB / 0.5328 GB, free: 3.699 MB / 446.1 MB Notification: Performance of matching and sorting (n=54): time 0.009821/0.4391, allocations: 1.882 MB / 0.5347 GB, free: 1.773 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.424e-05/0.4392, allocations: 59.78 kB / 0.5347 GB, free: 1.703 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003576/0.4396, allocations: 316.4 kB / 0.535 GB, free: 1.383 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.564e-05/0.4396, allocations: 37.7 kB / 0.535 GB, free: 1.34 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001659/0.4398, allocations: 229.2 kB / 0.5353 GB, free: 1.113 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001577/0.4399, allocations: 202.3 kB / 0.5355 GB, free: 0.9141 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001594/0.4401, allocations: 122.3 kB / 0.5356 GB, free: 0.7891 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001652/0.4402, allocations: 350.8 kB / 0.5359 GB, free: 448 kB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002982/0.4405, allocations: 177.2 kB / 0.5361 GB, free: 272 kB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2084/0.649, allocations: 325.2 kB / 0.5364 GB, free: 96.64 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001149/0.6501, allocations: 0.5451 MB / 0.5369 GB, free: 96.48 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.031e-06/0.6501, allocations: 2.469 kB / 0.5369 GB, free: 96.48 MB / 446.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.00171/0.6518, allocations: 0.6765 MB / 0.5376 GB, free: 96.31 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.475e-05/0.6519, allocations: 13.53 kB / 0.5376 GB, free: 96.31 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.6519, allocations: 6.516 kB / 0.5376 GB, free: 96.31 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01139/0.6633, allocations: 472.7 kB / 0.5381 GB, free: 96.23 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006152/0.6639, allocations: 143 kB / 0.5382 GB, free: 96.21 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001476/0.6653, allocations: 2.99 MB / 0.5411 GB, free: 93.26 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003355/0.6657, allocations: 15.28 kB / 0.5411 GB, free: 93.25 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.688e-05/0.6657, allocations: 27.8 kB / 0.5411 GB, free: 93.25 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.0002335/0.666, allocations: 187.9 kB / 0.5413 GB, free: 93.08 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002128/0.6662, allocations: 45.14 kB / 0.5414 GB, free: 93.08 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001421/0.6676, allocations: 1.078 MB / 0.5424 GB, free: 92.61 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.445e-05/0.6676, allocations: 14.05 kB / 0.5424 GB, free: 92.61 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.6676, allocations: 0.5156 kB / 0.5424 GB, free: 92.61 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001041/0.6687, allocations: 1.108 MB / 0.5435 GB, free: 91.91 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002031/0.6707, allocations: 1.736 MB / 0.5452 GB, free: 91.04 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/0.6707, allocations: 1.344 kB / 0.5452 GB, free: 91.04 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003637/0.6711, allocations: 104.4 kB / 0.5453 GB, free: 91.03 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002991/0.674, allocations: 356.6 kB / 0.5457 GB, free: 90.96 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.052e-05/0.6741, allocations: 21.86 kB / 0.5457 GB, free: 90.95 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004284/0.6745, allocations: 1.148 MB / 0.5468 GB, free: 89.85 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.6745, allocations: 0 / 0.5468 GB, free: 89.85 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001247/0.6758, allocations: 1.156 MB / 0.5479 GB, free: 89.26 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.045e-05/0.6759, allocations: 47.2 kB / 0.548 GB, free: 89.23 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.221e-05/0.6759, allocations: 18.31 kB / 0.548 GB, free: 89.22 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002367/0.6762, allocations: 8 kB / 0.548 GB, free: 89.21 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.736e-05/0.6762, allocations: 41.59 kB / 0.548 GB, free: 89.21 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.444e-05/0.6762, allocations: 22.72 kB / 0.5481 GB, free: 89.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002114/0.6765, allocations: 255.1 kB / 0.5483 GB, free: 89.07 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.6765, allocations: 0 / 0.5483 GB, free: 89.07 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004765/0.6812, allocations: 0.9768 MB / 0.5493 GB, free: 89 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.02817/0.7094, allocations: 9.474 MB / 0.5585 GB, free: 82.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001455/0.7108, allocations: 0.6851 MB / 0.5592 GB, free: 82.06 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.7109, allocations: 0 / 0.5592 GB, free: 82.06 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005069/0.7114, allocations: 356.5 kB / 0.5595 GB, free: 81.75 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001313/0.7127, allocations: 271.5 kB / 0.5598 GB, free: 81.55 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00955/0.7222, allocations: 5.354 MB / 0.565 GB, free: 76.47 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002331/0.7225, allocations: 0.8647 MB / 0.5658 GB, free: 75.64 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004564/0.7229, allocations: 241 kB / 0.5661 GB, free: 75.45 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000194/0.7231, allocations: 195.4 kB / 0.5663 GB, free: 75.26 MB / 446.1 MB Notification: Performance of SimCode: time 1.212e-06/0.7231, allocations: 4 kB / 0.5663 GB, free: 75.26 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06982/0.7929, allocations: 43.03 MB / 0.6083 GB, free: 32.37 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.87/15.67, allocations: 6.75 kB / 0.6083 GB, free: 32.37 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.1.0_Modelica.Media.Examples.R134a.R134a2.pipe ; mkfifo Modelica_4.1.0_Modelica.Media.Examples.R134a.R134a2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Media.Examples.R134a.R134a2.pipe >> ../files/Modelica_4.1.0_Modelica.Media.Examples.R134a.R134a2.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Media_Examples_R134a_R134a2.fmu > Modelica_4.1.0_Modelica.Media.Examples.R134a.R134a2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Media.Examples.R134a.R134a2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/R134a/R134a2/R134a2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.762571284998558]