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.001564/0.001564, allocations: 113.3 kB / 17.69 MB, free: 5.309 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.001726/0.001726, allocations: 192 kB / 18.63 MB, free: 4.375 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.308/1.308, allocations: 222.9 MB / 242.3 MB, free: 15.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001004/0.001004, allocations: 43.25 kB / 302 MB, free: 5.141 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08131/0.08233, allocations: 49.45 MB / 351.5 MB, free: 3.664 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir1): time 0.1892/0.2716, allocations: 50.53 MB / 402 MB, free: 12.7 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006405/0.278, allocations: 5.192 MB / 407.2 MB, free: 8.52 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002609/0.2783, allocations: 7.5 kB / 407.2 MB, free: 8.516 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007306/0.279, allocations: 248.1 kB / 407.5 MB, free: 8.312 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006147/0.2797, allocations: 364.5 kB / 407.8 MB, free: 8.02 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01695/0.2967, allocations: 7.108 MB / 414.9 MB, free: 3.152 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001349/0.298, allocations: 1.087 MB / 416 MB, free: 2.547 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002349/0.2983, allocations: 139.7 kB / 416.2 MB, free: 2.477 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006305/0.3046, allocations: 3.593 MB / 419.8 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005318/0.3051, allocations: 398.7 kB / 420.1 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.991e-05/0.3053, allocations: 56 kB / 420.2 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01619/0.3214, allocations: 9.94 MB / 430.1 MB, free: 5.137 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002738/0.3217, allocations: 223.5 kB / 430.4 MB, free: 4.918 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004074/0.3222, allocations: 314.8 kB / 430.7 MB, free: 4.609 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009296/0.3315, allocations: 5.493 MB / 436.2 MB, free: 15.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.3315, allocations: 4 kB / 436.2 MB, free: 15.1 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3315, allocations: 0 / 436.2 MB, free: 15.1 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.735e-06/0.3315, allocations: 0 / 436.2 MB, free: 15.1 MB / 350.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.002571/0.3341, allocations: 1.362 MB / 437.5 MB, free: 13.69 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.354e-05/0.3341, allocations: 15.89 kB / 437.5 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003203/0.3345, allocations: 59.52 kB / 437.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005087/0.335, allocations: 373.9 kB / 438 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.42e-05/0.335, allocations: 29 kB / 438 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.009e-05/0.3351, allocations: 44 kB / 438 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001208/0.3363, allocations: 0.5842 MB / 438.6 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.856e-05/0.3363, allocations: 4 kB / 438.6 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.055e-05/0.3364, allocations: 24 kB / 438.6 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.798e-06/0.3364, allocations: 9.875 kB / 438.7 MB, free: 12.51 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001319/0.3377, allocations: 0.7495 MB / 439.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01534/0.3531, allocations: 11.95 MB / 451.4 MB, free: 13.74 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001261/0.3544, allocations: 0.5241 MB / 451.9 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003733/0.3548, allocations: 258 kB / 452.1 MB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01454/0.3693, allocations: 11.9 MB / 464 MB, free: 14.75 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.621e-05/0.3694, allocations: 39 kB / 464.1 MB, free: 14.7 MB / 382.1 MB Notification: Performance of pre-optimization done (n=50): time 2.384e-06/0.3694, allocations: 0 / 464.1 MB, free: 14.7 MB / 382.1 MB Notification: Performance of matching and sorting (n=55): time 0.005758/0.3752, allocations: 2.122 MB / 466.2 MB, free: 12.49 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.219e-05/0.3752, allocations: 55.97 kB / 466.2 MB, free: 12.43 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003515/0.3756, allocations: 322.8 kB / 466.6 MB, free: 12.1 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.87e-05/0.3756, allocations: 37.7 kB / 466.6 MB, free: 12.06 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001256/0.3758, allocations: 196.4 kB / 466.8 MB, free: 11.86 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001403/0.3759, allocations: 193.2 kB / 467 MB, free: 11.67 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001768/0.3761, allocations: 118.1 kB / 467.1 MB, free: 11.55 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.3762, allocations: 346.8 kB / 467.4 MB, free: 11.2 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003788/0.3766, allocations: 241 kB / 467.7 MB, free: 10.97 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006611/0.3773, allocations: 343.3 kB / 468 MB, free: 10.6 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001168/0.3785, allocations: 0.5956 MB / 468.6 MB, free: 9.969 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.3785, allocations: 0 / 468.6 MB, free: 9.969 MB / 382.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001831/0.3803, allocations: 0.7559 MB / 469.4 MB, free: 9.199 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.3803, allocations: 8 kB / 469.4 MB, free: 9.191 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.717e-06/0.3803, allocations: 4 kB / 469.4 MB, free: 9.188 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004665/0.3808, allocations: 102.5 kB / 469.5 MB, free: 9.078 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005149/0.3814, allocations: 131.7 kB / 469.6 MB, free: 8.949 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002523/0.3839, allocations: 3.48 MB / 473.1 MB, free: 5.168 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002917/0.3842, allocations: 15.98 kB / 473.1 MB, free: 5.152 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.601e-05/0.3843, allocations: 31.98 kB / 473.1 MB, free: 5.121 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.0002445/0.3845, allocations: 197.6 kB / 473.3 MB, free: 4.918 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002934/0.3848, allocations: 39.62 kB / 473.4 MB, free: 4.879 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001581/0.3864, allocations: 0.8229 MB / 474.2 MB, free: 4.023 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.57e-06/0.3864, allocations: 4 kB / 474.2 MB, free: 4.02 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.3864, allocations: 0 / 474.2 MB, free: 4.02 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001146/0.3876, allocations: 0.7635 MB / 474.9 MB, free: 3.184 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002136/0.3897, allocations: 1.293 MB / 476.2 MB, free: 1.824 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.992e-06/0.3898, allocations: 8.062 kB / 476.2 MB, free: 1.816 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004534/0.3902, allocations: 99.88 kB / 476.3 MB, free: 1.719 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009319/0.3912, allocations: 152.5 kB / 476.5 MB, free: 1.566 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.042e-05/0.3912, allocations: 15.94 kB / 476.5 MB, free: 1.551 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003742/0.3916, allocations: 0.6445 MB / 477.1 MB, free: 0.8828 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3916, allocations: 0 / 477.1 MB, free: 0.8828 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001786/0.3934, allocations: 0.9132 MB / 478.1 MB, free: 15.94 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001089/0.3935, allocations: 116.7 kB / 478.2 MB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.173e-05/0.3936, allocations: 12 kB / 478.2 MB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003901/0.394, allocations: 23.98 kB / 478.2 MB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.329e-05/0.3941, allocations: 32.39 kB / 478.2 MB, free: 15.74 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.24e-05/0.3941, allocations: 23.98 kB / 478.3 MB, free: 15.72 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000273/0.3944, allocations: 261.9 kB / 478.5 MB, free: 15.46 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3944, allocations: 0 / 478.5 MB, free: 15.46 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003489/0.3979, allocations: 1.312 MB / 479.8 MB, free: 14.15 MB / 398.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.005805/0.4037, allocations: 1.683 MB / 481.5 MB, free: 12.47 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001556/0.4053, allocations: 0.8076 MB / 482.3 MB, free: 11.64 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.374e-06/0.4053, allocations: 4.562 kB / 482.3 MB, free: 11.63 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005767/0.4059, allocations: 295.2 kB / 482.6 MB, free: 11.34 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00131/0.4072, allocations: 277.2 kB / 482.9 MB, free: 11.07 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001884/0.4091, allocations: 1.088 MB / 484 MB, free: 9.949 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004107/0.4096, allocations: 0.8404 MB / 484.8 MB, free: 9.078 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004824/0.4101, allocations: 136.3 kB / 484.9 MB, free: 8.945 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001587/0.4102, allocations: 55.42 kB / 485 MB, free: 8.891 MB / 398.1 MB Notification: Performance of SimCode: time 2.8e-07/0.4102, allocations: 0 / 485 MB, free: 8.891 MB / 398.1 MB Notification: Performance of Templates: time 0.06849/0.4787, allocations: 44.89 MB / 0.5175 GB, free: 12.06 MB / 446.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 -s gbode -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