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.001697/0.001697, allocations: 124.5 kB / 17.79 MB, free: 5.246 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.00206/0.00206, allocations: 207.2 kB / 20.75 MB, free: 2.297 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.457/1.457, allocations: 230.6 MB / 254.1 MB, free: 15.07 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.001518/0.001518, allocations: 47.94 kB / 373 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1103, allocations: 53.33 MB / 426.3 MB, free: 4.785 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.2635/0.3738, allocations: 37.99 MB / 464.3 MB, free: 3.789 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03671/0.4105, allocations: 30.74 MB / 495 MB, free: 10.9 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006648/0.4112, allocations: 11.38 kB / 495.1 MB, free: 10.9 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001284/0.4125, allocations: 422.9 kB / 495.5 MB, free: 10.56 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001356/0.4138, allocations: 0.5292 MB / 496 MB, free: 10.12 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01527/0.4291, allocations: 5.239 MB / 0.4895 GB, free: 5.887 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002041/0.4311, allocations: 1.355 MB / 0.4908 GB, free: 4.527 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002541/0.4314, allocations: 130.6 kB / 0.4909 GB, free: 4.398 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007879/0.4322, allocations: 0.5488 MB / 0.4915 GB, free: 3.848 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005549/0.4327, allocations: 458.3 kB / 0.4919 GB, free: 3.398 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.557e-05/0.4328, allocations: 52 kB / 0.492 GB, free: 3.348 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02529/0.4581, allocations: 12.89 MB / 0.5045 GB, free: 6.426 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000303/0.4584, allocations: 163.3 kB / 0.5047 GB, free: 6.27 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005211/0.4589, allocations: 318.8 kB / 0.505 GB, free: 5.957 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03666/0.4956, allocations: 14.94 MB / 0.5196 GB, free: 7.004 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.4956, allocations: 4 kB / 0.5196 GB, free: 7 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.4956, allocations: 3.938 kB / 0.5196 GB, free: 6.996 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.091e-05/0.4956, allocations: 0 / 0.5196 GB, free: 6.996 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.009182/0.5048, allocations: 1.475 MB / 0.521 GB, free: 5.465 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.363e-05/0.5048, allocations: 12.03 kB / 0.5211 GB, free: 5.453 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001192/0.505, allocations: 86.52 kB / 0.5211 GB, free: 5.359 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008868/0.5058, allocations: 103.6 kB / 0.5212 GB, free: 5.258 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006734/0.5065, allocations: 382.2 kB / 0.5216 GB, free: 4.844 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.978e-05/0.5066, allocations: 37 kB / 0.5216 GB, free: 4.805 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.891e-05/0.5066, allocations: 44 kB / 0.5217 GB, free: 4.762 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00126/0.5079, allocations: 0.6205 MB / 0.5223 GB, free: 4.098 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.645e-05/0.5079, allocations: 3.953 kB / 0.5223 GB, free: 4.094 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.32e-05/0.508, allocations: 24.56 kB / 0.5223 GB, free: 4.07 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.635e-05/0.508, allocations: 12 kB / 0.5223 GB, free: 4.059 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001085/0.5091, allocations: 0.5346 MB / 0.5228 GB, free: 3.52 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.004636/0.5137, allocations: 3.798 MB / 0.5265 GB, free: 15.42 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009792/0.5147, allocations: 399.7 kB / 0.5269 GB, free: 15.02 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000314/0.515, allocations: 193.5 kB / 0.5271 GB, free: 14.83 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003529/0.5185, allocations: 3.455 MB / 0.5305 GB, free: 10.67 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.792e-05/0.5186, allocations: 39.44 kB / 0.5305 GB, free: 10.62 MB / 446.1 MB Notification: Performance of pre-optimization done (n=46): time 2.575e-06/0.5186, allocations: 0 / 0.5305 GB, free: 10.62 MB / 446.1 MB Notification: Performance of matching and sorting (n=54): time 0.01033/0.5289, allocations: 2.044 MB / 0.5325 GB, free: 8.504 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.814e-05/0.529, allocations: 59.78 kB / 0.5326 GB, free: 8.434 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003615/0.5293, allocations: 316.5 kB / 0.5329 GB, free: 8.121 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.144e-05/0.5294, allocations: 29.7 kB / 0.5329 GB, free: 8.086 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001713/0.5295, allocations: 245.1 kB / 0.5331 GB, free: 7.844 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001569/0.5297, allocations: 194.3 kB / 0.5333 GB, free: 7.652 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001841/0.5299, allocations: 118.3 kB / 0.5334 GB, free: 7.527 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001599/0.53, allocations: 346.8 kB / 0.5338 GB, free: 7.18 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003278/0.5304, allocations: 185.2 kB / 0.5339 GB, free: 7 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004448/0.5308, allocations: 328 kB / 0.5343 GB, free: 6.617 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000806/0.5316, allocations: 0.5506 MB / 0.5348 GB, free: 6.008 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.5316, allocations: 4 kB / 0.5348 GB, free: 6.004 MB / 446.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001407/0.533, allocations: 0.6701 MB / 0.5355 GB, free: 5.316 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.247e-05/0.533, allocations: 15.92 kB / 0.5355 GB, free: 5.301 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.533, allocations: 4 kB / 0.5355 GB, free: 5.297 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01205/0.5451, allocations: 470.2 kB / 0.5359 GB, free: 4.828 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006076/0.5457, allocations: 143.8 kB / 0.5361 GB, free: 4.688 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002348/0.5481, allocations: 3.091 MB / 0.5391 GB, free: 1.387 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003475/0.5484, allocations: 19.94 kB / 0.5391 GB, free: 1.367 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.31e-05/0.5485, allocations: 27.98 kB / 0.5391 GB, free: 1.34 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.0002778/0.5487, allocations: 190.2 kB / 0.5393 GB, free: 1.145 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002263/0.549, allocations: 47.72 kB / 0.5394 GB, free: 1.098 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001621/0.5506, allocations: 1.058 MB / 0.5404 GB, free: 24 kB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.355e-05/0.5506, allocations: 11.98 kB / 0.5404 GB, free: 12 kB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.404e-06/0.5506, allocations: 0 / 0.5404 GB, free: 12 kB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001258/0.5519, allocations: 1.091 MB / 0.5415 GB, free: 14.85 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002289/0.5541, allocations: 1.73 MB / 0.5432 GB, free: 13.06 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.5541, allocations: 0 / 0.5432 GB, free: 13.06 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003871/0.5545, allocations: 107.8 kB / 0.5433 GB, free: 12.95 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003033/0.5576, allocations: 353 kB / 0.5436 GB, free: 12.6 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.12e-05/0.5576, allocations: 12 kB / 0.5436 GB, free: 12.59 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007989/0.5584, allocations: 1.15 MB / 0.5447 GB, free: 11.39 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.5584, allocations: 0 / 0.5447 GB, free: 11.39 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001695/0.5601, allocations: 1.128 MB / 0.5458 GB, free: 10.24 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001509/0.5603, allocations: 128.7 kB / 0.546 GB, free: 10.09 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.673e-05/0.5603, allocations: 12 kB / 0.546 GB, free: 10.08 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002508/0.5606, allocations: 19.97 kB / 0.546 GB, free: 10.06 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.626e-05/0.5606, allocations: 32.61 kB / 0.546 GB, free: 10.03 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.294e-05/0.5607, allocations: 23.98 kB / 0.546 GB, free: 10 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0002973/0.561, allocations: 251 kB / 0.5463 GB, free: 9.762 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/0.561, allocations: 0 / 0.5463 GB, free: 9.762 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006198/0.5672, allocations: 0.974 MB / 0.5472 GB, free: 8.785 MB / 462.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.03339/0.6006, allocations: 9.458 MB / 0.5565 GB, free: 15.28 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001719/0.6023, allocations: 0.6888 MB / 0.5571 GB, free: 14.58 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.6023, allocations: 4 kB / 0.5571 GB, free: 14.58 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006181/0.6029, allocations: 347.5 kB / 0.5575 GB, free: 14.24 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001455/0.6044, allocations: 268.4 kB / 0.5577 GB, free: 13.98 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01184/0.6162, allocations: 5.352 MB / 0.563 GB, free: 8.422 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004988/0.6167, allocations: 0.8648 MB / 0.5638 GB, free: 7.527 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0005939/0.6173, allocations: 240.1 kB / 0.564 GB, free: 7.289 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002749/0.6176, allocations: 195.4 kB / 0.5642 GB, free: 7.098 MB / 478.1 MB Notification: Performance of SimCode: time 1.042e-06/0.6176, allocations: 3.938 kB / 0.5642 GB, free: 7.094 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08361/0.7012, allocations: 42.39 MB / 0.6056 GB, free: 12.81 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.87/14.58, allocations: 15.84 kB / 0.6056 GB, free: 12.79 MB / 0.5137 GB " [Timeout remaining time 645] (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: 18.742551823001122]