Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.R134a.R134a2.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Media.Examples.R134a.R134a2") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001014/0.001014, allocations: 201 kB / 17.43 MB, free: 4.273 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.241/1.241, allocations: 229.5 MB / 247.7 MB, free: 6.336 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007927/0.0007927, allocations: 92.41 kB / 299.8 MB, free: 5.344 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001975/0.0001976, allocations: 8 kB / 360.6 MB, free: 8.492 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1749/0.1751, allocations: 51.42 MB / 412 MB, free: 25.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.02395/0.1991, allocations: 35.13 MB / 447.2 MB, free: 6.633 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.03334/0.2324, allocations: 40.05 MB / 487.2 MB, free: 12.05 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000497/0.233, allocations: 11.88 kB / 487.2 MB, free: 12.04 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001103/0.2341, allocations: 342.3 kB / 487.6 MB, free: 11.7 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001164/0.2353, allocations: 0.5013 MB / 488.1 MB, free: 11.2 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01178/0.2471, allocations: 4.174 MB / 492.2 MB, free: 7.012 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.001942/0.249, allocations: 2.034 MB / 494.3 MB, free: 4.973 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002254/0.2493, allocations: 130.7 kB / 494.4 MB, free: 4.844 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006598/0.2499, allocations: 482.1 kB / 494.9 MB, free: 4.371 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004688/0.2504, allocations: 450.1 kB / 495.3 MB, free: 3.93 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 5.501e-05/0.2505, allocations: 24 kB / 495.3 MB, free: 3.906 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2158/0.4663, allocations: 38.98 MB / 0.5218 GB, free: 32.61 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002332/0.4666, allocations: 119.6 kB / 0.5219 GB, free: 32.58 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000415/0.467, allocations: 311.8 kB / 0.5222 GB, free: 32.53 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.06334/0.5304, allocations: 26.13 MB / 0.5477 GB, free: 14.03 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.5304, allocations: 0 / 0.5477 GB, free: 14.03 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.5304, allocations: 1 kB / 0.5477 GB, free: 14.03 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.997e-06/0.5304, allocations: 0 / 0.5477 GB, free: 14.03 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.006738/0.5372, allocations: 1.312 MB / 0.549 GB, free: 12.74 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.5372, allocations: 12.03 kB / 0.549 GB, free: 12.73 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005894/0.5378, allocations: 88.39 kB / 0.5491 GB, free: 12.64 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003616/0.5382, allocations: 390.8 kB / 0.5495 GB, free: 12.3 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.423e-05/0.5382, allocations: 33.78 kB / 0.5495 GB, free: 12.28 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.291e-05/0.5383, allocations: 51.78 kB / 0.5496 GB, free: 12.25 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009158/0.5392, allocations: 0.6136 MB / 0.5502 GB, free: 11.77 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.869e-05/0.5393, allocations: 4 kB / 0.5502 GB, free: 11.77 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.465e-05/0.5393, allocations: 23.08 kB / 0.5502 GB, free: 11.77 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.418e-06/0.5393, allocations: 13 kB / 0.5502 GB, free: 11.75 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000792/0.5401, allocations: 0.5238 MB / 0.5507 GB, free: 11.41 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.002863/0.543, allocations: 3.808 MB / 0.5544 GB, free: 7.82 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007257/0.5437, allocations: 403 kB / 0.5548 GB, free: 7.555 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002433/0.544, allocations: 213.1 kB / 0.555 GB, free: 7.426 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002196/0.5462, allocations: 3.548 MB / 0.5585 GB, free: 3.301 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.07e-05/0.5462, allocations: 35.19 kB / 0.5585 GB, free: 3.262 MB / 378.7 MB Notification: Performance of pre-optimization done (n=46): time 1.824e-06/0.5462, allocations: 0 / 0.5585 GB, free: 3.262 MB / 378.7 MB Notification: Performance of matching and sorting (n=54): time 0.007784/0.554, allocations: 2.051 MB / 0.5605 GB, free: 1.629 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.284e-05/0.5541, allocations: 65.02 kB / 0.5606 GB, free: 1.555 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002403/0.5543, allocations: 305 kB / 0.5609 GB, free: 1.309 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.902e-05/0.5543, allocations: 32.27 kB / 0.5609 GB, free: 1.277 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.044e-05/0.5544, allocations: 237.9 kB / 0.5611 GB, free: 1.09 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.461e-05/0.5545, allocations: 195.4 kB / 0.5613 GB, free: 0.9258 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.379e-05/0.5546, allocations: 7.625 kB / 0.5613 GB, free: 0.9258 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.716e-05/0.5546, allocations: 363.3 kB / 0.5617 GB, free: 0.582 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002444/0.5549, allocations: 170.9 kB / 0.5618 GB, free: 496 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002909/0.5552, allocations: 331.9 kB / 0.5622 GB, free: 196 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006269/0.5558, allocations: 0.5432 MB / 0.5627 GB, free: 15.81 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.5558, allocations: 0 / 0.5627 GB, free: 15.81 MB / 394.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001112/0.5569, allocations: 0.6676 MB / 0.5633 GB, free: 15.35 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.557, allocations: 8 kB / 0.5633 GB, free: 15.34 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.557, allocations: 4 kB / 0.5633 GB, free: 15.34 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00847/0.5655, allocations: 450.2 kB / 0.5638 GB, free: 14.95 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005886/0.5661, allocations: 145 kB / 0.5639 GB, free: 14.83 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001787/0.5679, allocations: 2.997 MB / 0.5668 GB, free: 11.76 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000406/0.5683, allocations: 45.05 kB / 0.5669 GB, free: 11.73 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.924e-05/0.5684, allocations: 29.39 kB / 0.5669 GB, free: 11.71 MB / 394.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.0002548/0.5686, allocations: 196.9 kB / 0.5671 GB, free: 11.56 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.591e-05/0.5687, allocations: 43.47 kB / 0.5671 GB, free: 11.52 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0014/0.5701, allocations: 1.058 MB / 0.5682 GB, free: 10.82 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.545e-05/0.5701, allocations: 16.8 kB / 0.5682 GB, free: 10.8 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-06/0.5701, allocations: 0 / 0.5682 GB, free: 10.8 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001014/0.5712, allocations: 1.083 MB / 0.5692 GB, free: 9.949 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001905/0.5731, allocations: 1.731 MB / 0.5709 GB, free: 8.738 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.5731, allocations: 0 / 0.5709 GB, free: 8.738 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003867/0.5735, allocations: 102.8 kB / 0.571 GB, free: 8.652 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002976/0.5765, allocations: 359.8 kB / 0.5714 GB, free: 8.348 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.443e-05/0.5765, allocations: 17.56 kB / 0.5714 GB, free: 8.34 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006218/0.5772, allocations: 1.147 MB / 0.5725 GB, free: 7.211 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/0.5772, allocations: 0 / 0.5725 GB, free: 7.211 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001329/0.5785, allocations: 1.134 MB / 0.5736 GB, free: 6.441 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001206/0.5786, allocations: 144.2 kB / 0.5738 GB, free: 6.289 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.95e-05/0.5787, allocations: 13.56 kB / 0.5738 GB, free: 6.285 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002901/0.579, allocations: 22.92 kB / 0.5738 GB, free: 6.27 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.572e-05/0.5791, allocations: 34.45 kB / 0.5738 GB, free: 6.242 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.832e-05/0.5791, allocations: 27.61 kB / 0.5739 GB, free: 6.223 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002353/0.5794, allocations: 243.4 kB / 0.5741 GB, free: 6.035 MB / 394.7 MB Notification: Performance of sort global known variables: time 2e-07/0.5794, allocations: 0 / 0.5741 GB, free: 6.035 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004823/0.5842, allocations: 0.9601 MB / 0.575 GB, free: 5.148 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.04235/0.6266, allocations: 7.874 MB / 0.5827 GB, free: 13.52 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00171/0.6283, allocations: 0.6988 MB / 0.5834 GB, free: 13 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.6283, allocations: 0 / 0.5834 GB, free: 13 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005552/0.6289, allocations: 368.7 kB / 0.5837 GB, free: 12.79 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001416/0.6303, allocations: 264.9 kB / 0.584 GB, free: 12.57 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002093/0.6324, allocations: 1.639 MB / 0.5856 GB, free: 11.09 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003804/0.6328, allocations: 0.8674 MB / 0.5864 GB, free: 10.2 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0005436/0.6334, allocations: 238.6 kB / 0.5867 GB, free: 9.969 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001096/0.6335, allocations: 50.8 kB / 0.5867 GB, free: 9.922 MB / 410.7 MB Notification: Performance of SimCode: time 6.42e-07/0.6335, allocations: 0 / 0.5867 GB, free: 9.922 MB / 410.7 MB Notification: Performance of Templates: time 0.04753/0.681, allocations: 35.5 MB / 0.6214 GB, free: 7.016 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Media.Examples.R134a.R134a2.makefile (rm -f Modelica_trunk_Modelica.Media.Examples.R134a.R134a2.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.R134a.R134a2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.R134a.R134a2.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.R134a.R134a2.sim & ./Modelica_trunk_Modelica.Media.Examples.R134a.R134a2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Media.Examples.R134a.R134a2.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Media.Examples.R134a.R134a2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches