Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir1.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.ReferenceAir.MoistAir1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir1") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009355/0.0009357, allocations: 201.6 kB / 17.43 MB, free: 4.371 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.253/1.253, allocations: 229.5 MB / 247.7 MB, free: 6.32 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008229/0.000823, allocations: 99.11 kB / 299.8 MB, free: 5.344 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002044/0.0002045, allocations: 4 kB / 360.6 MB, free: 8.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1793/0.1795, allocations: 51.41 MB / 412 MB, free: 25.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir1): time 0.04784/0.2274, allocations: 62.38 MB / 474.4 MB, free: 8.195 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.006336/0.2337, allocations: 6.697 MB / 481.1 MB, free: 1.082 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003709/0.2341, allocations: 11.94 kB / 481.1 MB, free: 1.07 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007456/0.2349, allocations: 215 kB / 481.3 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007057/0.2356, allocations: 366.1 kB / 481.7 MB, free: 0.5 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01449/0.2501, allocations: 6.394 MB / 488.1 MB, free: 9.98 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.001522/0.2517, allocations: 1.598 MB / 489.7 MB, free: 8.375 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002125/0.2519, allocations: 114.1 kB / 489.8 MB, free: 8.262 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007145/0.259, allocations: 3.686 MB / 493.5 MB, free: 4.562 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007403/0.2598, allocations: 402.6 kB / 493.9 MB, free: 4.168 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001164/0.2599, allocations: 24 kB / 493.9 MB, free: 4.145 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01637/0.2763, allocations: 9.779 MB / 0.4919 GB, free: 10.35 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000335/0.2767, allocations: 187.5 kB / 0.4921 GB, free: 10.17 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004432/0.2771, allocations: 296.5 kB / 0.4923 GB, free: 9.871 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01083/0.288, allocations: 5.578 MB / 0.4978 GB, free: 4.281 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.288, allocations: 0 / 0.4978 GB, free: 4.281 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.288, allocations: 3.938 kB / 0.4978 GB, free: 4.277 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.644e-05/0.288, allocations: 4 kB / 0.4978 GB, free: 4.273 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.002786/0.2908, allocations: 1.244 MB / 0.499 GB, free: 2.98 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.376e-05/0.2909, allocations: 15.97 kB / 0.499 GB, free: 2.965 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003196/0.2912, allocations: 63.42 kB / 0.4991 GB, free: 2.902 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004564/0.2917, allocations: 362.9 kB / 0.4994 GB, free: 2.508 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.879e-05/0.2917, allocations: 33 kB / 0.4995 GB, free: 2.477 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.533e-05/0.2918, allocations: 44 kB / 0.4995 GB, free: 2.434 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001214/0.293, allocations: 0.5726 MB / 0.5001 GB, free: 1.855 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.927e-05/0.293, allocations: 7.891 kB / 0.5001 GB, free: 1.848 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.778e-05/0.2931, allocations: 24 kB / 0.5001 GB, free: 1.824 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.288e-06/0.2931, allocations: 12 kB / 0.5001 GB, free: 1.812 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00131/0.2944, allocations: 0.7456 MB / 0.5008 GB, free: 1.062 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1598/0.4542, allocations: 11.99 MB / 0.5125 GB, free: 85.15 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001193/0.4555, allocations: 0.5363 MB / 0.5131 GB, free: 84.97 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003311/0.4558, allocations: 251.6 kB / 0.5133 GB, free: 84.88 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0107/0.4665, allocations: 11.95 MB / 0.525 GB, free: 72.57 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.757e-05/0.4666, allocations: 43.06 kB / 0.525 GB, free: 72.53 MB / 378.7 MB Notification: Performance of pre-optimization done (n=50): time 2.595e-06/0.4666, allocations: 0 / 0.525 GB, free: 72.53 MB / 378.7 MB Notification: Performance of matching and sorting (n=55): time 0.005344/0.4719, allocations: 2.139 MB / 0.5271 GB, free: 71.27 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.032e-05/0.472, allocations: 59.81 kB / 0.5272 GB, free: 71.21 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002794/0.4723, allocations: 321.1 kB / 0.5275 GB, free: 70.99 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.932e-05/0.4723, allocations: 37.67 kB / 0.5275 GB, free: 70.95 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.934e-05/0.4724, allocations: 195.7 kB / 0.5277 GB, free: 70.78 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.496e-05/0.4725, allocations: 202.2 kB / 0.5279 GB, free: 70.61 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.858e-05/0.4726, allocations: 11.97 kB / 0.5279 GB, free: 70.6 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.602e-05/0.4726, allocations: 346.7 kB / 0.5282 GB, free: 70.26 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003135/0.4729, allocations: 239.1 kB / 0.5285 GB, free: 70.14 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000513/0.4735, allocations: 341 kB / 0.5288 GB, free: 69.92 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009577/0.4744, allocations: 0.5937 MB / 0.5294 GB, free: 69.55 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.4744, allocations: 4 kB / 0.5294 GB, free: 69.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.00149/0.4759, allocations: 0.741 MB / 0.5301 GB, free: 69.16 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.476, allocations: 11.77 kB / 0.5301 GB, free: 69.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.476, allocations: 3.938 kB / 0.5301 GB, free: 69.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004132/0.4764, allocations: 101.5 kB / 0.5302 GB, free: 69.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004689/0.4769, allocations: 129.3 kB / 0.5303 GB, free: 69.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001529/0.4784, allocations: 3.281 MB / 0.5335 GB, free: 65.72 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003581/0.4788, allocations: 35.97 kB / 0.5336 GB, free: 65.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.215e-05/0.4789, allocations: 31.8 kB / 0.5336 GB, free: 65.69 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.0001963/0.4791, allocations: 200 kB / 0.5338 GB, free: 65.52 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002272/0.4793, allocations: 47.25 kB / 0.5338 GB, free: 65.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001284/0.4806, allocations: 0.8251 MB / 0.5346 GB, free: 64.98 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.4806, allocations: 7.906 kB / 0.5346 GB, free: 64.98 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.764e-06/0.4806, allocations: 0 / 0.5346 GB, free: 64.98 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008904/0.4815, allocations: 0.7582 MB / 0.5354 GB, free: 64.41 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001664/0.4832, allocations: 1.296 MB / 0.5366 GB, free: 63.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.347e-06/0.4832, allocations: 3.984 kB / 0.5366 GB, free: 63.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000421/0.4836, allocations: 99.17 kB / 0.5367 GB, free: 63.47 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008221/0.4845, allocations: 151.5 kB / 0.5369 GB, free: 63.41 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.853e-05/0.4845, allocations: 17.64 kB / 0.5369 GB, free: 63.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002385/0.4848, allocations: 0.6507 MB / 0.5375 GB, free: 62.76 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.4848, allocations: 5.188 kB / 0.5375 GB, free: 62.76 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001315/0.4861, allocations: 0.9052 MB / 0.5384 GB, free: 61.83 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.998e-05/0.4862, allocations: 127.8 kB / 0.5386 GB, free: 61.69 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.734e-05/0.4863, allocations: 12 kB / 0.5386 GB, free: 61.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004161/0.4867, allocations: 36.06 kB / 0.5386 GB, free: 61.64 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.376e-05/0.4868, allocations: 32.39 kB / 0.5386 GB, free: 61.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.698e-05/0.4868, allocations: 27.98 kB / 0.5387 GB, free: 61.59 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002095/0.4871, allocations: 261.8 kB / 0.5389 GB, free: 61.32 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4871, allocations: 4 kB / 0.5389 GB, free: 61.32 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002859/0.4899, allocations: 1.318 MB / 0.5402 GB, free: 60.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.004659/0.4946, allocations: 1.703 MB / 0.5419 GB, free: 58.64 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001201/0.4958, allocations: 0.7982 MB / 0.5426 GB, free: 57.82 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.4958, allocations: 0 / 0.5426 GB, free: 57.82 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004358/0.4963, allocations: 291.9 kB / 0.5429 GB, free: 57.54 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001251/0.4975, allocations: 261.6 kB / 0.5432 GB, free: 57.28 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001465/0.499, allocations: 1.356 MB / 0.5445 GB, free: 55.91 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001975/0.4992, allocations: 0.8329 MB / 0.5453 GB, free: 55.05 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00048/0.4997, allocations: 151.2 kB / 0.5454 GB, free: 54.91 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001298/0.4998, allocations: 55.42 kB / 0.5455 GB, free: 54.86 MB / 378.7 MB Notification: Performance of SimCode: time 3.21e-07/0.4998, allocations: 0 / 0.5455 GB, free: 54.86 MB / 378.7 MB Notification: Performance of Templates: time 0.04529/0.5451, allocations: 44.48 MB / 0.5889 GB, free: 10.54 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir1.makefile (rm -f Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir1.sim & ./Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches