Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.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.DryAir2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p|volume1.medium.T|volume1.medium.p",fileNamePrefix="Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2") translateModel(Modelica.Media.Examples.ReferenceAir.DryAir2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p|volume1.medium.T|volume1.medium.p",fileNamePrefix="Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001448/0.001448, allocations: 117.2 kB / 17.79 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001868/0.001868, allocations: 199.8 kB / 18.73 MB, free: 4.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.308/1.308, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001075/0.001075, allocations: 59.91 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2264/0.2275, allocations: 50.55 MB / 409.3 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.03398/0.2615, allocations: 37.51 MB / 446.8 MB, free: 11.95 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005209/0.2667, allocations: 4.587 MB / 451.4 MB, free: 7.344 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003179/0.2671, allocations: 4 kB / 451.4 MB, free: 7.34 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007503/0.2679, allocations: 298.2 kB / 451.7 MB, free: 7.047 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000785/0.2686, allocations: 489.3 kB / 452.1 MB, free: 6.566 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004054/0.2727, allocations: 1.645 MB / 453.8 MB, free: 4.926 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001179/0.2739, allocations: 1.269 MB / 455 MB, free: 3.652 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000239/0.2741, allocations: 170.6 kB / 455.2 MB, free: 3.48 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004996/0.2747, allocations: 486.5 kB / 455.7 MB, free: 3.004 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000444/0.2751, allocations: 398.4 kB / 456.1 MB, free: 2.613 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.306e-05/0.2752, allocations: 44 kB / 456.1 MB, free: 2.57 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001312/0.2765, allocations: 0.761 MB / 456.9 MB, free: 1.809 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001422/0.2767, allocations: 131.6 kB / 457 MB, free: 1.68 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002663/0.2769, allocations: 278.9 kB / 457.3 MB, free: 1.406 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001148/0.2781, allocations: 1.048 MB / 458.3 MB, free: 364 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.2781, allocations: 0 / 458.3 MB, free: 364 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2781, allocations: 0 / 458.3 MB, free: 364 kB / 366.1 MB Notification: Performance of Transformations before backend: time 1.147e-05/0.2781, allocations: 4 kB / 458.3 MB, free: 360 kB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001027/0.2792, allocations: 0.7798 MB / 459.1 MB, free: 15.52 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.161e-05/0.2792, allocations: 8.031 kB / 459.1 MB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005794/0.2798, allocations: 72.44 kB / 459.2 MB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004697/0.2803, allocations: 347.4 kB / 459.5 MB, free: 15.07 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.54e-05/0.2803, allocations: 29.38 kB / 459.6 MB, free: 15.04 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.454e-05/0.2804, allocations: 40.28 kB / 459.6 MB, free: 15 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006433/0.281, allocations: 475.6 kB / 460.1 MB, free: 14.48 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.763e-05/0.281, allocations: 0 / 460.1 MB, free: 14.48 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.151e-05/0.2811, allocations: 19.98 kB / 460.1 MB, free: 14.46 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.185e-05/0.2811, allocations: 12 kB / 460.1 MB, free: 14.45 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004623/0.2816, allocations: 311.6 kB / 460.4 MB, free: 14.15 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01283/0.2944, allocations: 6.73 MB / 467.1 MB, free: 6.832 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004402/0.2949, allocations: 286.4 kB / 467.4 MB, free: 6.543 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000212/0.2951, allocations: 151.9 kB / 467.6 MB, free: 6.395 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01005/0.3051, allocations: 3.881 MB / 471.4 MB, free: 2.215 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.672e-05/0.3052, allocations: 46.5 kB / 471.5 MB, free: 2.16 MB / 382.1 MB Notification: Performance of pre-optimization done (n=35): time 1.643e-06/0.3052, allocations: 0 / 471.5 MB, free: 2.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=45): time 0.01132/0.3165, allocations: 2.451 MB / 473.9 MB, free: 15.63 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.979e-05/0.3166, allocations: 55.41 kB / 474 MB, free: 15.57 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003114/0.3169, allocations: 307.2 kB / 474.3 MB, free: 15.26 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.166e-05/0.3169, allocations: 37.7 kB / 474.3 MB, free: 15.21 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001338/0.3171, allocations: 220 kB / 474.5 MB, free: 14.99 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.945e-05/0.3172, allocations: 161.6 kB / 474.7 MB, free: 14.83 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001379/0.3173, allocations: 98.16 kB / 474.8 MB, free: 14.73 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.3174, allocations: 346.8 kB / 475.1 MB, free: 14.38 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002506/0.3177, allocations: 161 kB / 475.3 MB, free: 14.23 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003199/0.318, allocations: 271.7 kB / 475.6 MB, free: 13.91 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006175/0.3186, allocations: 468.3 kB / 476 MB, free: 13.4 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/0.3187, allocations: 7.938 kB / 476 MB, free: 13.39 MB / 398.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001014/0.3197, allocations: 0.5839 MB / 476.6 MB, free: 12.79 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.3197, allocations: 11.94 kB / 476.6 MB, free: 12.78 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.58e-05/0.3197, allocations: 4 kB / 476.6 MB, free: 12.78 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00775/0.3275, allocations: 1.848 MB / 478.5 MB, free: 10.94 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004016/0.3279, allocations: 111.8 kB / 478.6 MB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001885/0.3298, allocations: 2.565 MB / 481.1 MB, free: 8.078 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002417/0.3301, allocations: 12 kB / 481.2 MB, free: 8.066 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.383e-05/0.3301, allocations: 24.12 kB / 481.2 MB, free: 8.043 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (61): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 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): 3 systems {(2,1), (2,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001956/0.3303, allocations: 185.5 kB / 481.4 MB, free: 7.852 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.559e-05/0.3304, allocations: 39.53 kB / 481.4 MB, free: 7.812 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00114/0.3315, allocations: 0.8514 MB / 482.2 MB, free: 6.949 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.16e-05/0.3316, allocations: 8 kB / 482.3 MB, free: 6.941 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.3316, allocations: 7.922 kB / 482.3 MB, free: 6.934 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009726/0.3326, allocations: 0.9573 MB / 483.2 MB, free: 5.898 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001834/0.3344, allocations: 1.49 MB / 484.7 MB, free: 4.348 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.399e-06/0.3344, allocations: 0 / 484.7 MB, free: 4.348 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003025/0.3347, allocations: 75.89 kB / 484.8 MB, free: 4.273 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003302/0.338, allocations: 0.6179 MB / 485.4 MB, free: 3.648 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.667e-05/0.3381, allocations: 19.92 kB / 485.4 MB, free: 3.629 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009005/0.339, allocations: 1.284 MB / 486.7 MB, free: 2.293 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.339, allocations: 0 / 486.7 MB, free: 2.293 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001458/0.3405, allocations: 1.225 MB / 487.9 MB, free: 1.043 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.409e-05/0.3406, allocations: 116.5 kB / 488 MB, free: 0.9102 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.986e-05/0.3406, allocations: 16.03 kB / 488.1 MB, free: 0.8945 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002264/0.3409, allocations: 15.94 kB / 488.1 MB, free: 0.8789 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.703e-05/0.3409, allocations: 23.97 kB / 488.1 MB, free: 0.8555 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.96e-05/0.341, allocations: 19.98 kB / 488.1 MB, free: 0.8359 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002019/0.3412, allocations: 209.9 kB / 488.3 MB, free: 0.6289 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3412, allocations: 0 / 488.3 MB, free: 0.6289 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006867/0.3419, allocations: 235.9 kB / 488.6 MB, free: 408 kB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (volume.medium.p,volume.medium.T,volume1.medium.p,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 (43): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 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,2), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005408/0.3424, allocations: 286.9 kB / 488.8 MB, free: 112 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001173/0.3436, allocations: 0.6907 MB / 489.5 MB, free: 15.41 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.3436, allocations: 0 / 489.5 MB, free: 15.41 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009055/0.3445, allocations: 444.2 kB / 490 MB, free: 14.98 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001089/0.3456, allocations: 232.9 kB / 490.2 MB, free: 14.75 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001722/0.3474, allocations: 1.22 MB / 491.4 MB, free: 13.5 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003838/0.3478, allocations: 0.8324 MB / 492.2 MB, free: 12.64 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002409/0.348, allocations: 68.34 kB / 492.3 MB, free: 12.57 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.84e-05/0.3481, allocations: 39.44 kB / 492.3 MB, free: 12.54 MB / 414.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3481, allocations: 0 / 492.3 MB, free: 12.54 MB / 414.1 MB Notification: Performance of Templates: time 0.01955/0.3677, allocations: 12.78 MB / 0.4933 GB, free: 15.8 MB / 430.1 MB make -j1 -f Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.makefile (rm -f Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.sim & ./Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/DryAir2/DryAir2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches