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.MoistAir1.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.MoistAir1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1") translateModel(Modelica.Media.Examples.ReferenceAir.MoistAir1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008582/0.0008583, allocations: 183.2 kB / 16.71 MB, free: 4.973 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.2/1.2, allocations: 225.7 MB / 243.2 MB, free: 8.488 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.0007652/0.0007649, allocations: 92.52 kB / 294.4 MB, free: 9.5 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002174/0.0002174, allocations: 7.938 kB / 354.1 MB, free: 13.64 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1754/0.1756, allocations: 50.42 MB / 404.6 MB, free: 31.33 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir1): time 0.04574/0.2214, allocations: 61.95 MB / 466.5 MB, free: 14.14 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.006888/0.2284, allocations: 6.705 MB / 473.2 MB, free: 7.02 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004548/0.2289, allocations: 4 kB / 473.2 MB, free: 7.016 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007368/0.2296, allocations: 214.9 kB / 473.4 MB, free: 6.805 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000773/0.2304, allocations: 354.2 kB / 473.8 MB, free: 6.457 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01715/0.2476, allocations: 6.379 MB / 480.2 MB, free: 15.95 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.001636/0.2492, allocations: 1.606 MB / 481.8 MB, free: 14.34 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002167/0.2494, allocations: 118.1 kB / 481.9 MB, free: 14.22 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006922/0.2564, allocations: 3.663 MB / 485.5 MB, free: 10.55 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006599/0.2571, allocations: 406.6 kB / 485.9 MB, free: 10.15 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000113/0.2572, allocations: 24 kB / 486 MB, free: 10.12 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01629/0.2735, allocations: 9.755 MB / 495.7 MB, free: 364 kB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003568/0.2739, allocations: 187.5 kB / 495.9 MB, free: 176 kB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004574/0.2744, allocations: 300.6 kB / 496.2 MB, free: 15.87 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01159/0.286, allocations: 5.57 MB / 0.49 GB, free: 10.29 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.286, allocations: 0 / 0.49 GB, free: 10.29 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.286, allocations: 0 / 0.49 GB, free: 10.29 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.925e-05/0.286, allocations: 0 / 0.49 GB, free: 10.29 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: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.002961/0.289, allocations: 1.24 MB / 0.4912 GB, free: 9 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.023e-05/0.2891, allocations: 16.03 kB / 0.4912 GB, free: 8.984 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003564/0.2894, allocations: 59.42 kB / 0.4913 GB, free: 8.926 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005074/0.2899, allocations: 362.1 kB / 0.4916 GB, free: 8.531 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.063e-05/0.29, allocations: 33 kB / 0.4917 GB, free: 8.5 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.987e-05/0.2901, allocations: 44 kB / 0.4917 GB, free: 8.457 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001257/0.2913, allocations: 0.5726 MB / 0.4923 GB, free: 7.879 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.895e-05/0.2914, allocations: 7.906 kB / 0.4923 GB, free: 7.871 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.304e-05/0.2914, allocations: 20 kB / 0.4923 GB, free: 7.852 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.17e-05/0.2914, allocations: 19.94 kB / 0.4923 GB, free: 7.832 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001278/0.2927, allocations: 0.7378 MB / 0.493 GB, free: 7.094 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1731/0.4659, allocations: 12 MB / 0.5048 GB, free: 94.07 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001256/0.4672, allocations: 0.5305 MB / 0.5053 GB, free: 94.04 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003724/0.4675, allocations: 255.5 kB / 0.5055 GB, free: 94.01 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01112/0.4787, allocations: 11.95 MB / 0.5172 GB, free: 82.13 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.441e-05/0.4788, allocations: 51.44 kB / 0.5172 GB, free: 82.09 MB / 378.7 MB Notification: Performance of pre-optimization done (n=50): time 2.595e-06/0.4788, allocations: 0 / 0.5172 GB, free: 82.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=55): time 0.005476/0.4843, allocations: 2.126 MB / 0.5193 GB, free: 80.9 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.658e-05/0.4843, allocations: 62.34 kB / 0.5194 GB, free: 80.84 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003466/0.4847, allocations: 317.4 kB / 0.5197 GB, free: 80.62 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.917e-05/0.4847, allocations: 37.64 kB / 0.5197 GB, free: 80.59 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.095e-05/0.4848, allocations: 200.9 kB / 0.5199 GB, free: 80.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001066/0.4849, allocations: 191.3 kB / 0.5201 GB, free: 80.25 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.718e-05/0.485, allocations: 8 kB / 0.5201 GB, free: 80.24 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.749e-05/0.485, allocations: 351.8 kB / 0.5204 GB, free: 79.9 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003503/0.4854, allocations: 232.7 kB / 0.5207 GB, free: 79.78 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007146/0.4861, allocations: 339.8 kB / 0.521 GB, free: 79.56 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001135/0.4873, allocations: 0.5986 MB / 0.5216 GB, free: 79.2 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.4873, allocations: 0 / 0.5216 GB, free: 79.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001487/0.4888, allocations: 0.7515 MB / 0.5223 GB, free: 78.81 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.4888, allocations: 7.953 kB / 0.5223 GB, free: 78.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.373e-06/0.4888, allocations: 7.781 kB / 0.5223 GB, free: 78.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004161/0.4892, allocations: 109.9 kB / 0.5224 GB, free: 78.74 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004479/0.4897, allocations: 122.7 kB / 0.5225 GB, free: 78.71 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001616/0.4913, allocations: 3.274 MB / 0.5257 GB, free: 75.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003836/0.4917, allocations: 46.78 kB / 0.5258 GB, free: 75.35 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.377e-05/0.4918, allocations: 34.62 kB / 0.5258 GB, free: 75.34 MB / 378.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 (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {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.0002237/0.492, allocations: 191.4 kB / 0.526 GB, free: 75.18 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002294/0.4923, allocations: 46.91 kB / 0.526 GB, free: 75.16 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001255/0.4935, allocations: 0.8247 MB / 0.5268 GB, free: 74.65 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.4935, allocations: 3.969 kB / 0.5268 GB, free: 74.65 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.804e-06/0.4935, allocations: 5 kB / 0.5268 GB, free: 74.65 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008566/0.4944, allocations: 0.7589 MB / 0.5276 GB, free: 74.07 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001633/0.4961, allocations: 1.295 MB / 0.5289 GB, free: 73.17 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.4961, allocations: 1.312 kB / 0.5289 GB, free: 73.17 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004107/0.4965, allocations: 100.9 kB / 0.529 GB, free: 73.15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007805/0.4973, allocations: 153 kB / 0.5291 GB, free: 73.08 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.066e-05/0.4973, allocations: 19.55 kB / 0.5291 GB, free: 73.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002338/0.4976, allocations: 0.6481 MB / 0.5297 GB, free: 72.44 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.4976, allocations: 4 kB / 0.5298 GB, free: 72.44 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001306/0.4989, allocations: 0.9073 MB / 0.5306 GB, free: 71.82 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.879e-05/0.499, allocations: 128.7 kB / 0.5308 GB, free: 71.68 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.416e-05/0.4991, allocations: 11.94 kB / 0.5308 GB, free: 71.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004031/0.4995, allocations: 44.72 kB / 0.5308 GB, free: 71.62 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.734e-05/0.4996, allocations: 32.39 kB / 0.5308 GB, free: 71.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.815e-05/0.4996, allocations: 31.98 kB / 0.5309 GB, free: 71.56 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002062/0.4998, allocations: 253.9 kB / 0.5311 GB, free: 71.31 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4998, allocations: 0 / 0.5311 GB, free: 71.31 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003073/0.5029, allocations: 1.308 MB / 0.5324 GB, free: 70.13 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (volume.medium.p,volume.medium.Xi[1],volume.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 (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {2} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004347/0.5073, allocations: 1.689 MB / 0.534 GB, free: 68.68 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001164/0.5085, allocations: 0.8031 MB / 0.5348 GB, free: 67.86 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.5085, allocations: 0 / 0.5348 GB, free: 67.86 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004162/0.5089, allocations: 283.2 kB / 0.5351 GB, free: 67.57 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001211/0.5101, allocations: 277.6 kB / 0.5354 GB, free: 67.3 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001426/0.5115, allocations: 1.342 MB / 0.5367 GB, free: 65.95 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002013/0.5118, allocations: 0.8407 MB / 0.5375 GB, free: 65.08 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000464/0.5122, allocations: 142.1 kB / 0.5376 GB, free: 64.94 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001263/0.5124, allocations: 59.42 kB / 0.5377 GB, free: 64.88 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.5124, allocations: 0 / 0.5377 GB, free: 64.88 MB / 378.7 MB Notification: Performance of Templates: time 0.04421/0.5566, allocations: 44.32 MB / 0.581 GB, free: 20.74 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.makefile (rm -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.sim & ./Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/MoistAir1/MoistAir1.csv","../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches