Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001346/0.001346, allocations: 103.9 kB / 17.63 MB, free: 5.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001154/0.001154, allocations: 202.4 kB / 18.57 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.316/1.316, allocations: 227.4 MB / 246.7 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001072/0.001072, allocations: 57.5 kB / 306.9 MB, free: 0.6484 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0825/0.08359, allocations: 50.54 MB / 357.5 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir2): time 0.2097/0.2933, allocations: 65.72 MB / 423.2 MB, free: 9.211 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006594/0.3, allocations: 5.459 MB / 428.6 MB, free: 4.223 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002703/0.3003, allocations: 4 kB / 428.6 MB, free: 4.219 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009063/0.3012, allocations: 354 kB / 429 MB, free: 3.871 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007952/0.302, allocations: 0.5088 MB / 429.5 MB, free: 3.359 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01948/0.3215, allocations: 7.439 MB / 436.9 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001832/0.3234, allocations: 1.543 MB / 438.5 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003227/0.3237, allocations: 231.9 kB / 438.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008413/0.3245, allocations: 0.6191 MB / 439.3 MB, free: 9.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006789/0.3252, allocations: 0.5645 MB / 439.9 MB, free: 8.953 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001281/0.3254, allocations: 80 kB / 440 MB, free: 8.875 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01855/0.3439, allocations: 10.06 MB / 450 MB, free: 14.8 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004226/0.3444, allocations: 319.2 kB / 450.3 MB, free: 14.49 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005713/0.345, allocations: 442.3 kB / 450.8 MB, free: 14.05 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01263/0.3576, allocations: 5.949 MB / 456.7 MB, free: 8.094 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.3576, allocations: 0 / 456.7 MB, free: 8.094 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.3577, allocations: 0 / 456.7 MB, free: 8.094 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.046e-05/0.3577, allocations: 0 / 456.7 MB, free: 8.094 MB / 366.1 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.003987/0.3617, allocations: 1.568 MB / 458.3 MB, free: 6.477 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.69e-05/0.3617, allocations: 8.031 kB / 458.3 MB, free: 6.469 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004913/0.3622, allocations: 87.23 kB / 458.4 MB, free: 6.383 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006607/0.3629, allocations: 436.8 kB / 458.8 MB, free: 5.918 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.989e-05/0.363, allocations: 49.31 kB / 458.9 MB, free: 5.867 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001016/0.3631, allocations: 71.89 kB / 458.9 MB, free: 5.797 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001794/0.3649, allocations: 0.8068 MB / 459.7 MB, free: 4.984 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.116e-05/0.3649, allocations: 0 / 459.7 MB, free: 4.984 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.882e-05/0.365, allocations: 28 kB / 459.8 MB, free: 4.957 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.727e-05/0.365, allocations: 16 kB / 459.8 MB, free: 4.941 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001917/0.3669, allocations: 1.028 MB / 460.8 MB, free: 3.914 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01785/0.3848, allocations: 12.79 MB / 473.6 MB, free: 4.98 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001945/0.3868, allocations: 0.7366 MB / 474.3 MB, free: 4.238 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000668/0.3875, allocations: 414.6 kB / 474.7 MB, free: 3.832 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01515/0.4027, allocations: 12.25 MB / 487 MB, free: 5.199 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.063e-05/0.4028, allocations: 43.59 kB / 487 MB, free: 5.145 MB / 398.1 MB Notification: Performance of pre-optimization done (n=78): time 2.876e-06/0.4028, allocations: 3.938 kB / 487 MB, free: 5.141 MB / 398.1 MB Notification: Performance of matching and sorting (n=88): time 0.01029/0.4131, allocations: 3.387 MB / 490.4 MB, free: 1.676 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.948e-05/0.4131, allocations: 60.41 kB / 490.5 MB, free: 1.602 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004342/0.4136, allocations: 356.4 kB / 490.8 MB, free: 1.246 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001045/0.4137, allocations: 49.7 kB / 490.9 MB, free: 1.191 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001576/0.4139, allocations: 228.8 kB / 491.1 MB, free: 0.9609 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002387/0.4141, allocations: 311.5 kB / 491.4 MB, free: 0.6523 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002494/0.4144, allocations: 162.5 kB / 491.6 MB, free: 500 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.4145, allocations: 366.8 kB / 491.9 MB, free: 124 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006112/0.4151, allocations: 369.8 kB / 492.3 MB, free: 15.76 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009248/0.4161, allocations: 496.2 kB / 492.8 MB, free: 15.24 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001754/0.4178, allocations: 0.9021 MB / 493.7 MB, free: 14.3 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/0.4178, allocations: 0 / 493.7 MB, free: 14.3 MB / 414.1 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.002606/0.4205, allocations: 1.117 MB / 494.8 MB, free: 13.17 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.084e-05/0.4205, allocations: 11.03 kB / 494.8 MB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.868e-06/0.4205, allocations: 8 kB / 494.8 MB, free: 13.15 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000822/0.4213, allocations: 163.3 kB / 495 MB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000764/0.4221, allocations: 191.8 kB / 495.1 MB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002881/0.425, allocations: 4.121 MB / 499.3 MB, free: 8.348 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004132/0.4254, allocations: 16 kB / 499.3 MB, free: 8.332 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.197e-05/0.4255, allocations: 43.98 kB / 499.3 MB, free: 8.289 MB / 414.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 (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.0003598/0.4259, allocations: 225.6 kB / 499.5 MB, free: 8.059 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004133/0.4263, allocations: 59.34 kB / 499.6 MB, free: 8 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002411/0.4287, allocations: 1.281 MB / 0.4891 GB, free: 6.684 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.135e-06/0.4288, allocations: 8 kB / 0.4891 GB, free: 6.676 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-06/0.4288, allocations: 4 kB / 0.4892 GB, free: 6.672 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001822/0.4306, allocations: 1.327 MB / 0.4904 GB, free: 5.215 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00321/0.4338, allocations: 1.967 MB / 0.4924 GB, free: 3.18 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.838e-06/0.4338, allocations: 64 / 0.4924 GB, free: 3.18 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007222/0.4346, allocations: 171.7 kB / 0.4925 GB, free: 3.012 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001788/0.4364, allocations: 289.2 kB / 0.4928 GB, free: 2.723 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.279e-05/0.4365, allocations: 31.98 kB / 0.4928 GB, free: 2.691 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007626/0.4372, allocations: 1.285 MB / 0.4941 GB, free: 1.359 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.4372, allocations: 4.031 kB / 0.4941 GB, free: 1.355 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002522/0.4398, allocations: 1.421 MB / 0.4955 GB, free: 15.91 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000149/0.4399, allocations: 124.6 kB / 0.4956 GB, free: 15.77 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001041/0.44, allocations: 20 kB / 0.4956 GB, free: 15.75 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005413/0.4406, allocations: 35.91 kB / 0.4957 GB, free: 15.71 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.092e-05/0.4407, allocations: 52.92 kB / 0.4957 GB, free: 15.66 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.99e-05/0.4408, allocations: 43.97 kB / 0.4958 GB, free: 15.62 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002968/0.4411, allocations: 287 kB / 0.496 GB, free: 15.34 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4411, allocations: 0 / 0.496 GB, free: 15.34 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00353/0.4446, allocations: 1.409 MB / 0.4974 GB, free: 13.93 MB / 430.1 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.005822/0.4505, allocations: 1.733 MB / 0.4991 GB, free: 12.19 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002496/0.453, allocations: 1.273 MB / 0.5003 GB, free: 10.88 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.453, allocations: 0 / 0.5003 GB, free: 10.88 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008645/0.4539, allocations: 487.9 kB / 0.5008 GB, free: 10.4 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001885/0.4558, allocations: 404.8 kB / 0.5012 GB, free: 10.01 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002711/0.4585, allocations: 1.663 MB / 0.5028 GB, free: 8.32 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000464/0.459, allocations: 0.9165 MB / 0.5037 GB, free: 7.379 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0007398/0.4597, allocations: 209.2 kB / 0.5039 GB, free: 7.172 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002034/0.4599, allocations: 75.42 kB / 0.504 GB, free: 7.098 MB / 430.1 MB Notification: Performance of SimCode: time 3.5e-07/0.4599, allocations: 3.938 kB / 0.504 GB, free: 7.094 MB / 430.1 MB Notification: Performance of Templates: time 0.2052/0.6651, allocations: 50.06 MB / 0.5529 GB, free: 142.5 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2.makefile (rm -f Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2.sim & ./Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches