Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.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.ReferenceAir.MoistAir2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p|volume1.medium.T|volume1.medium.Xi.1.|volume1.medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2") translateModel(Modelica.Media.Examples.ReferenceAir.MoistAir2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p|volume1.medium.T|volume1.medium.Xi.1.|volume1.medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001299/0.001299, allocations: 177.3 kB / 16.71 MB, free: 5.094 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.261/1.261, allocations: 225.7 MB / 243.2 MB, free: 8.434 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.0007417/0.0007417, allocations: 90.59 kB / 294.4 MB, free: 9.453 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002144/0.0002144, allocations: 15.92 kB / 354.2 MB, free: 13.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2004/0.2007, allocations: 50.41 MB / 404.6 MB, free: 31.27 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir2): time 0.0594/0.2601, allocations: 78.26 MB / 482.8 MB, free: 13.2 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.006808/0.2669, allocations: 6.958 MB / 489.8 MB, free: 5.812 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005091/0.2675, allocations: 8 kB / 489.8 MB, free: 5.805 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009646/0.2685, allocations: 314.5 kB / 490.1 MB, free: 5.496 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009806/0.2695, allocations: 0.4897 MB / 490.6 MB, free: 5.004 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01587/0.2854, allocations: 6.698 MB / 497.3 MB, free: 14.18 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.002143/0.2875, allocations: 2.304 MB / 499.6 MB, free: 11.86 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002736/0.2878, allocations: 169.4 kB / 499.8 MB, free: 11.7 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009284/0.2887, allocations: 0.5371 MB / 0.4886 GB, free: 11.16 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008242/0.2896, allocations: 0.5683 MB / 0.4891 GB, free: 10.59 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001241/0.2897, allocations: 44 kB / 0.4892 GB, free: 10.55 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01542/0.3051, allocations: 10.06 MB / 0.499 GB, free: 484 kB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003851/0.3055, allocations: 271.2 kB / 0.4993 GB, free: 212 kB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.1654/0.471, allocations: 408.9 kB / 0.4996 GB, free: 34.73 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01113/0.4821, allocations: 6.009 MB / 0.5055 GB, free: 34.66 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.4822, allocations: 2.734 kB / 0.5055 GB, free: 34.66 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.4822, allocations: 0 / 0.5055 GB, free: 34.66 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.787e-06/0.4822, allocations: 0 / 0.5055 GB, free: 34.66 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.002655/0.4848, allocations: 1.407 MB / 0.5069 GB, free: 33.89 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.2e-05/0.4849, allocations: 10.75 kB / 0.5069 GB, free: 33.89 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000339/0.4852, allocations: 86.62 kB / 0.507 GB, free: 33.86 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004338/0.4857, allocations: 429.5 kB / 0.5074 GB, free: 33.62 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.888e-05/0.4857, allocations: 45.38 kB / 0.5074 GB, free: 33.62 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.697e-05/0.4858, allocations: 71.62 kB / 0.5075 GB, free: 33.62 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001425/0.4872, allocations: 0.7992 MB / 0.5083 GB, free: 33.57 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.04e-05/0.4872, allocations: 2.062 kB / 0.5083 GB, free: 33.57 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.407e-05/0.4873, allocations: 29.48 kB / 0.5083 GB, free: 33.57 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.566e-05/0.4873, allocations: 18.41 kB / 0.5083 GB, free: 33.57 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00152/0.4889, allocations: 1.023 MB / 0.5093 GB, free: 33.57 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01298/0.5019, allocations: 12.83 MB / 0.5219 GB, free: 22.55 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001385/0.5033, allocations: 0.7515 MB / 0.5226 GB, free: 22.5 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004354/0.5037, allocations: 400.8 kB / 0.523 GB, free: 22.5 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01029/0.514, allocations: 12.3 MB / 0.535 GB, free: 10.3 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.791e-05/0.5141, allocations: 43.97 kB / 0.535 GB, free: 10.26 MB / 378.7 MB Notification: Performance of pre-optimization done (n=78): time 2.474e-06/0.5141, allocations: 3.844 kB / 0.535 GB, free: 10.26 MB / 378.7 MB Notification: Performance of matching and sorting (n=88): time 0.00774/0.5218, allocations: 3.416 MB / 0.5384 GB, free: 9.609 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.196e-05/0.5219, allocations: 70.5 kB / 0.5384 GB, free: 9.543 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000292/0.5222, allocations: 353.6 kB / 0.5388 GB, free: 9.438 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.073e-05/0.5222, allocations: 42.19 kB / 0.5388 GB, free: 9.406 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.019e-05/0.5223, allocations: 239.3 kB / 0.539 GB, free: 9.262 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001305/0.5224, allocations: 304.9 kB / 0.5393 GB, free: 9.066 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.803e-05/0.5225, allocations: 16.19 kB / 0.5394 GB, free: 9.066 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.491e-05/0.5226, allocations: 362 kB / 0.5397 GB, free: 8.754 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004785/0.523, allocations: 370.4 kB / 0.5401 GB, free: 8.754 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007048/0.5238, allocations: 488.7 kB / 0.5405 GB, free: 8.656 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001376/0.5251, allocations: 0.8929 MB / 0.5414 GB, free: 8.551 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.5252, allocations: 3.938 kB / 0.5414 GB, free: 8.547 MB / 378.7 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.002027/0.5272, allocations: 1.11 MB / 0.5425 GB, free: 8.426 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/0.5272, allocations: 3.938 kB / 0.5425 GB, free: 8.426 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.5272, allocations: 3.938 kB / 0.5425 GB, free: 8.426 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006542/0.5279, allocations: 167.1 kB / 0.5426 GB, free: 8.391 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006654/0.5286, allocations: 192.3 kB / 0.5428 GB, free: 8.387 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002404/0.531, allocations: 3.918 MB / 0.5467 GB, free: 20.7 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004772/0.5315, allocations: 64.72 kB / 0.5467 GB, free: 20.68 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.648e-05/0.5315, allocations: 41.23 kB / 0.5468 GB, free: 20.68 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {2, 2} * 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): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002795/0.5318, allocations: 231.1 kB / 0.547 GB, free: 20.57 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002711/0.5321, allocations: 65.02 kB / 0.547 GB, free: 20.54 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001888/0.534, allocations: 1.278 MB / 0.5483 GB, free: 20.38 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.534, allocations: 10.62 kB / 0.5483 GB, free: 20.37 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.084e-06/0.534, allocations: 4 kB / 0.5483 GB, free: 20.37 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001502/0.5355, allocations: 1.325 MB / 0.5496 GB, free: 19.7 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002488/0.538, allocations: 1.965 MB / 0.5515 GB, free: 19.33 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.5381, allocations: 7.469 kB / 0.5515 GB, free: 19.33 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006232/0.5387, allocations: 161.9 kB / 0.5517 GB, free: 19.33 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001501/0.5402, allocations: 295.2 kB / 0.552 GB, free: 19.3 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.469e-05/0.5403, allocations: 32.34 kB / 0.552 GB, free: 19.3 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006808/0.541, allocations: 1.29 MB / 0.5532 GB, free: 18.12 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.541, allocations: 0 / 0.5532 GB, free: 18.12 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002001/0.543, allocations: 1.42 MB / 0.5546 GB, free: 17.88 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001637/0.5431, allocations: 138.6 kB / 0.5548 GB, free: 17.76 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.659e-05/0.5432, allocations: 24.56 kB / 0.5548 GB, free: 17.76 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005339/0.5438, allocations: 48.14 kB / 0.5548 GB, free: 17.76 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.381e-05/0.5439, allocations: 55.25 kB / 0.5549 GB, free: 17.76 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.254e-05/0.544, allocations: 45.58 kB / 0.5549 GB, free: 17.76 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002629/0.5442, allocations: 279.4 kB / 0.5552 GB, free: 17.68 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.5443, allocations: 0 / 0.5552 GB, free: 17.68 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003785/0.548, allocations: 1.406 MB / 0.5566 GB, free: 17.5 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume1.medium.p,volume1.medium.Xi[1],volume1.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * 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): 2 systems {2, 2} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004465/0.5525, allocations: 1.744 MB / 0.5583 GB, free: 16.96 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00166/0.5542, allocations: 1.15 MB / 0.5594 GB, free: 16.08 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.5542, allocations: 0 / 0.5594 GB, free: 16.08 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00069/0.5549, allocations: 489.8 kB / 0.5599 GB, free: 15.75 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001595/0.5565, allocations: 382.8 kB / 0.5602 GB, free: 15.45 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002289/0.5588, allocations: 2.041 MB / 0.5622 GB, free: 13.59 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003926/0.5592, allocations: 0.9105 MB / 0.5631 GB, free: 12.66 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0006394/0.5599, allocations: 206.9 kB / 0.5633 GB, free: 12.46 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001713/0.56, allocations: 77.59 kB / 0.5634 GB, free: 12.39 MB / 394.7 MB Notification: Performance of SimCode: time 3.81e-07/0.56, allocations: 4 kB / 0.5634 GB, free: 12.38 MB / 394.7 MB Notification: Performance of Templates: time 0.06179/0.6218, allocations: 48.97 MB / 0.6112 GB, free: 11.85 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.makefile (rm -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.sim & ./Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/MoistAir2/MoistAir2.csv","../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches