Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Media.Examples.R134a.R134a2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p|volume1.medium.h|volume1.medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2") translateModel(Modelica.Media.Examples.R134a.R134a2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p|volume1.medium.h|volume1.medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001225/0.001225, allocations: 183.7 kB / 16.71 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.251/1.251, allocations: 225.7 MB / 243.2 MB, free: 8.5 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001003/0.001003, allocations: 100.1 kB / 294.4 MB, free: 9.52 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002661/0.0002662, allocations: 7.938 kB / 354.1 MB, free: 13.67 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1946/0.1949, allocations: 50.42 MB / 404.6 MB, free: 31.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.02289/0.2178, allocations: 34.93 MB / 439.5 MB, free: 12.31 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.03381/0.2516, allocations: 39.97 MB / 479.5 MB, free: 1.828 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005363/0.2522, allocations: 7.938 kB / 479.5 MB, free: 1.82 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001088/0.2533, allocations: 346.3 kB / 479.8 MB, free: 1.48 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00119/0.2545, allocations: 0.5051 MB / 480.3 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01226/0.2668, allocations: 4.159 MB / 484.5 MB, free: 12.8 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.002014/0.2688, allocations: 2.026 MB / 486.5 MB, free: 10.76 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002709/0.2691, allocations: 134.7 kB / 486.6 MB, free: 10.63 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009072/0.27, allocations: 478.2 kB / 487.1 MB, free: 10.16 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006839/0.2707, allocations: 454.2 kB / 487.6 MB, free: 9.715 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 8.29e-05/0.2708, allocations: 24 kB / 487.6 MB, free: 9.691 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2214/0.4922, allocations: 38.97 MB / 0.5142 GB, free: 39.83 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000277/0.4925, allocations: 124.1 kB / 0.5143 GB, free: 39.83 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004302/0.4929, allocations: 311.8 kB / 0.5146 GB, free: 39.8 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.06142/0.5544, allocations: 26.12 MB / 0.5401 GB, free: 23.55 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.5544, allocations: 0 / 0.5401 GB, free: 23.55 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.5544, allocations: 1 kB / 0.5401 GB, free: 23.55 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.606e-06/0.5545, allocations: 4 kB / 0.5401 GB, free: 23.55 MB / 378.7 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.007251/0.5617, allocations: 1.31 MB / 0.5414 GB, free: 22.26 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.5618, allocations: 12.03 kB / 0.5414 GB, free: 22.25 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005965/0.5624, allocations: 89.23 kB / 0.5415 GB, free: 22.16 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003916/0.5628, allocations: 384 kB / 0.5419 GB, free: 21.82 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.424e-05/0.5628, allocations: 31 kB / 0.5419 GB, free: 21.8 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.797e-05/0.5629, allocations: 53.03 kB / 0.542 GB, free: 21.77 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009465/0.5638, allocations: 0.6172 MB / 0.5426 GB, free: 21.3 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.905e-05/0.5638, allocations: 1 kB / 0.5426 GB, free: 21.3 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.364e-05/0.5639, allocations: 25 kB / 0.5426 GB, free: 21.29 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.888e-06/0.5639, allocations: 12 kB / 0.5426 GB, free: 21.28 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000807/0.5647, allocations: 0.5298 MB / 0.5431 GB, free: 20.93 MB / 378.7 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.002948/0.5677, allocations: 3.796 MB / 0.5468 GB, free: 17.35 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007714/0.5685, allocations: 407.5 kB / 0.5472 GB, free: 17.09 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002452/0.5687, allocations: 208.7 kB / 0.5474 GB, free: 16.96 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002117/0.5709, allocations: 3.545 MB / 0.5509 GB, free: 12.83 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.397e-05/0.5709, allocations: 44.25 kB / 0.5509 GB, free: 12.79 MB / 378.7 MB Notification: Performance of pre-optimization done (n=46): time 2.965e-06/0.5709, allocations: 0 / 0.5509 GB, free: 12.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=54): time 0.007691/0.5786, allocations: 2.043 MB / 0.5529 GB, free: 11.16 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.905e-05/0.5786, allocations: 55.84 kB / 0.553 GB, free: 11.1 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002375/0.5789, allocations: 314.8 kB / 0.5533 GB, free: 10.84 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.66e-05/0.5789, allocations: 32.95 kB / 0.5533 GB, free: 10.81 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.486e-05/0.579, allocations: 229.2 kB / 0.5535 GB, free: 10.63 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.075e-05/0.5791, allocations: 190.6 kB / 0.5537 GB, free: 10.47 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.323e-05/0.5791, allocations: 17.78 kB / 0.5537 GB, free: 10.46 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.431e-05/0.5792, allocations: 350.2 kB / 0.554 GB, free: 10.13 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002402/0.5794, allocations: 178.4 kB / 0.5542 GB, free: 10.02 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002822/0.5797, allocations: 335.9 kB / 0.5545 GB, free: 9.727 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005687/0.5803, allocations: 0.539 MB / 0.5551 GB, free: 9.34 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.5803, allocations: 2.906 kB / 0.5551 GB, free: 9.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001006/0.5813, allocations: 0.6641 MB / 0.5557 GB, free: 8.887 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/0.5813, allocations: 8.984 kB / 0.5557 GB, free: 8.879 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.796e-06/0.5814, allocations: 8 kB / 0.5557 GB, free: 8.871 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008025/0.5894, allocations: 449.8 kB / 0.5562 GB, free: 8.484 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005343/0.59, allocations: 145.2 kB / 0.5563 GB, free: 8.359 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001251/0.5912, allocations: 2.999 MB / 0.5592 GB, free: 5.289 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003806/0.5916, allocations: 43.73 kB / 0.5593 GB, free: 5.262 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.535e-05/0.5917, allocations: 33.48 kB / 0.5593 GB, free: 5.234 MB / 378.7 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.000213/0.5919, allocations: 193.7 kB / 0.5595 GB, free: 5.086 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.843e-05/0.592, allocations: 46.09 kB / 0.5595 GB, free: 5.043 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001217/0.5932, allocations: 1.053 MB / 0.5606 GB, free: 4.348 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.769e-06/0.5932, allocations: 13.73 kB / 0.5606 GB, free: 4.336 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.836e-06/0.5932, allocations: 0 / 0.5606 GB, free: 4.336 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008367/0.5941, allocations: 1.083 MB / 0.5616 GB, free: 3.484 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00169/0.5958, allocations: 1.744 MB / 0.5633 GB, free: 2.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.5958, allocations: 0 / 0.5633 GB, free: 2.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003433/0.5961, allocations: 98.08 kB / 0.5634 GB, free: 2.184 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002848/0.599, allocations: 359 kB / 0.5638 GB, free: 1.883 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.339e-05/0.599, allocations: 20.27 kB / 0.5638 GB, free: 1.875 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003896/0.5994, allocations: 1.143 MB / 0.5649 GB, free: 0.75 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.5995, allocations: 0 / 0.5649 GB, free: 0.75 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001145/0.6006, allocations: 1.141 MB / 0.566 GB, free: 15.97 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001516/0.6008, allocations: 143.5 kB / 0.5662 GB, free: 15.82 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.414e-05/0.6008, allocations: 10.75 kB / 0.5662 GB, free: 15.81 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003029/0.6011, allocations: 28.05 kB / 0.5662 GB, free: 15.8 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.807e-05/0.6012, allocations: 31.77 kB / 0.5662 GB, free: 15.77 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.937e-05/0.6013, allocations: 26.48 kB / 0.5662 GB, free: 15.75 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002442/0.6015, allocations: 245.8 kB / 0.5665 GB, free: 15.56 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.6015, allocations: 0 / 0.5665 GB, free: 15.56 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005002/0.6065, allocations: 0.9633 MB / 0.5674 GB, free: 14.67 MB / 394.7 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.04187/0.6484, allocations: 7.859 MB / 0.5751 GB, free: 7.051 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001359/0.6498, allocations: 0.6993 MB / 0.5758 GB, free: 6.543 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.6498, allocations: 0 / 0.5758 GB, free: 6.543 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005181/0.6503, allocations: 370.6 kB / 0.5761 GB, free: 6.32 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001298/0.6516, allocations: 260.5 kB / 0.5764 GB, free: 6.113 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002057/0.6537, allocations: 1.64 MB / 0.578 GB, free: 4.641 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003776/0.6541, allocations: 0.8689 MB / 0.5788 GB, free: 3.746 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004972/0.6546, allocations: 245.6 kB / 0.5791 GB, free: 3.512 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001044/0.6547, allocations: 47.42 kB / 0.5791 GB, free: 3.465 MB / 394.7 MB Notification: Performance of SimCode: time 3.81e-07/0.6547, allocations: 0 / 0.5791 GB, free: 3.465 MB / 394.7 MB Notification: Performance of Templates: time 0.0459/0.7006, allocations: 35.44 MB / 0.6137 GB, free: 0.6289 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.makefile (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 & ./Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/R134a/R134a2/R134a2.csv","../files/Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches