Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001104/0.001104, allocations: 91.72 kB / 17.31 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001409/0.00141, allocations: 175.9 kB / 18.21 MB, free: 5.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.322/1.322, allocations: 223.3 MB / 242.3 MB, free: 224 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002787/0.0002788, allocations: 7.938 kB / 302.1 MB, free: 6.152 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09994/0.1002, allocations: 50.41 MB / 352.5 MB, free: 3.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir1): time 0.2616/0.3619, allocations: 51.1 MB / 403.6 MB, free: 13.2 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008728/0.3707, allocations: 5.208 MB / 408.8 MB, free: 9.09 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000595/0.3713, allocations: 6.594 kB / 408.8 MB, free: 9.086 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009826/0.3723, allocations: 218.9 kB / 409 MB, free: 8.914 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001101/0.3734, allocations: 354.8 kB / 409.4 MB, free: 8.633 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02169/0.3951, allocations: 5.946 MB / 415.3 MB, free: 4.438 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002221/0.3974, allocations: 1.602 MB / 416.9 MB, free: 3.59 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003252/0.3977, allocations: 108.9 kB / 417 MB, free: 3.531 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007686/0.4054, allocations: 3.653 MB / 420.7 MB, free: 424 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009974/0.4065, allocations: 406.5 kB / 421.1 MB, free: 16 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002299/0.4067, allocations: 28.05 kB / 421.1 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02088/0.4276, allocations: 10.05 MB / 431.1 MB, free: 5.918 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004281/0.4281, allocations: 187.5 kB / 431.3 MB, free: 5.734 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006884/0.4288, allocations: 300.6 kB / 431.6 MB, free: 5.434 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008288/0.4371, allocations: 3.754 MB / 435.4 MB, free: 1.672 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.706e-06/0.4372, allocations: 3.938 kB / 435.4 MB, free: 1.668 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.835e-06/0.4372, allocations: 3.938 kB / 435.4 MB, free: 1.664 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.437e-05/0.4372, allocations: 0 / 435.4 MB, free: 1.664 MB / 334.1 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.00389/0.4411, allocations: 1.245 MB / 436.6 MB, free: 380 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.23e-05/0.4412, allocations: 8.031 kB / 436.6 MB, free: 372 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004491/0.4416, allocations: 65.55 kB / 436.7 MB, free: 308 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005853/0.4422, allocations: 358 kB / 437.1 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.487e-05/0.4423, allocations: 40.94 kB / 437.1 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.721e-05/0.4424, allocations: 40 kB / 437.1 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001358/0.4438, allocations: 0.5881 MB / 437.7 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.127e-05/0.4438, allocations: 4 kB / 437.7 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.067e-05/0.4439, allocations: 20 kB / 437.7 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.042e-05/0.4439, allocations: 8 kB / 437.8 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001391/0.4453, allocations: 0.7534 MB / 438.5 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01664/0.4619, allocations: 12 MB / 450.5 MB, free: 392 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00148/0.4635, allocations: 0.5356 MB / 451 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004272/0.4639, allocations: 265.9 kB / 451.3 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01515/0.4791, allocations: 11.94 MB / 463.2 MB, free: 1.328 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.005e-05/0.4792, allocations: 46.98 kB / 463.3 MB, free: 1.27 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 3.146e-06/0.4792, allocations: 0 / 463.3 MB, free: 1.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=55): time 0.006127/0.4853, allocations: 2.137 MB / 465.4 MB, free: 15.04 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.514e-05/0.4854, allocations: 59.97 kB / 465.5 MB, free: 14.97 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003898/0.4858, allocations: 315 kB / 465.8 MB, free: 14.66 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.164e-05/0.4859, allocations: 37.7 kB / 465.8 MB, free: 14.61 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001483/0.486, allocations: 200.3 kB / 466 MB, free: 14.41 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001648/0.4862, allocations: 197.2 kB / 466.2 MB, free: 14.22 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.685e-05/0.4863, allocations: 45.7 kB / 466.3 MB, free: 14.17 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.4865, allocations: 354.8 kB / 466.6 MB, free: 13.81 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003924/0.4869, allocations: 241 kB / 466.8 MB, free: 13.58 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000614/0.4875, allocations: 331.4 kB / 467.2 MB, free: 13.22 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001138/0.4886, allocations: 0.6073 MB / 467.8 MB, free: 12.58 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.4886, allocations: 0 / 467.8 MB, free: 12.58 MB / 382.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001793/0.4904, allocations: 0.7478 MB / 468.5 MB, free: 11.82 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.197e-05/0.4905, allocations: 7.938 kB / 468.5 MB, free: 11.81 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.4905, allocations: 4.281 kB / 468.5 MB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004844/0.491, allocations: 114.4 kB / 468.6 MB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004932/0.4915, allocations: 123.8 kB / 468.8 MB, free: 11.56 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002457/0.494, allocations: 3.272 MB / 472 MB, free: 8.004 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004119/0.4944, allocations: 48 kB / 472.1 MB, free: 7.957 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.401e-05/0.4945, allocations: 27.98 kB / 472.1 MB, free: 7.93 MB / 382.1 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.0002764/0.4948, allocations: 189.7 kB / 472.3 MB, free: 7.734 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002815/0.495, allocations: 43.53 kB / 472.3 MB, free: 7.691 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00162/0.4967, allocations: 0.819 MB / 473.2 MB, free: 6.84 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.934e-06/0.4967, allocations: 4 kB / 473.2 MB, free: 6.836 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.4967, allocations: 4 kB / 473.2 MB, free: 6.832 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001106/0.4978, allocations: 0.7712 MB / 473.9 MB, free: 5.988 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002094/0.4999, allocations: 1.294 MB / 475.2 MB, free: 4.633 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.4999, allocations: 4 kB / 475.2 MB, free: 4.629 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004361/0.5004, allocations: 99.88 kB / 475.3 MB, free: 4.531 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009197/0.5013, allocations: 148.7 kB / 475.5 MB, free: 4.383 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.703e-05/0.5014, allocations: 16 kB / 475.5 MB, free: 4.367 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003895/0.5018, allocations: 0.6561 MB / 476.1 MB, free: 3.688 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.5018, allocations: 4.031 kB / 476.2 MB, free: 3.684 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001641/0.5034, allocations: 0.9004 MB / 477.1 MB, free: 2.754 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001687/0.5036, allocations: 132.8 kB / 477.2 MB, free: 2.605 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.105e-05/0.5037, allocations: 12 kB / 477.2 MB, free: 2.594 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004598/0.5042, allocations: 31.98 kB / 477.2 MB, free: 2.562 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.436e-05/0.5042, allocations: 36.39 kB / 477.3 MB, free: 2.527 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.51e-05/0.5043, allocations: 31.92 kB / 477.3 MB, free: 2.496 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002898/0.5046, allocations: 261.9 kB / 477.5 MB, free: 2.242 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5046, allocations: 0 / 477.5 MB, free: 2.242 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004066/0.5087, allocations: 1.312 MB / 478.9 MB, free: 0.9297 MB / 382.1 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.006581/0.5153, allocations: 1.686 MB / 480.5 MB, free: 15.25 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001722/0.517, allocations: 0.7997 MB / 481.3 MB, free: 14.42 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/0.5171, allocations: 0.5625 kB / 481.3 MB, free: 14.42 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006084/0.5177, allocations: 299.2 kB / 481.6 MB, free: 14.12 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00164/0.5193, allocations: 261.2 kB / 481.9 MB, free: 13.87 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002085/0.5214, allocations: 1.396 MB / 483.3 MB, free: 12.43 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003753/0.5218, allocations: 0.829 MB / 484.1 MB, free: 11.57 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002154/0.522, allocations: 71.41 kB / 484.2 MB, free: 11.5 MB / 398.1 MB Notification: Performance of SimCode: time 8.21e-07/0.5221, allocations: 0 / 484.2 MB, free: 11.5 MB / 398.1 MB Notification: Performance of Templates: time 0.048/0.5701, allocations: 33.76 MB / 0.5058 GB, free: 9.738 MB / 430.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/MoistAir1/MoistAir1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches