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.001339/0.001339, allocations: 118.8 kB / 17.78 MB, free: 5.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001822/0.001822, allocations: 202 kB / 18.74 MB, free: 4.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.306/1.306, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001041/0.001041, allocations: 63.83 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2249/0.2259, allocations: 50.55 MB / 409.3 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.0349/0.2609, allocations: 37.51 MB / 446.8 MB, free: 11.94 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005359/0.2662, allocations: 4.584 MB / 451.4 MB, free: 7.344 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006262/0.2669, allocations: 4 kB / 451.4 MB, free: 7.34 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001083/0.2681, allocations: 302.2 kB / 451.7 MB, free: 7.043 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001325/0.2694, allocations: 485.3 kB / 452.1 MB, free: 6.566 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00458/0.274, allocations: 1.64 MB / 453.8 MB, free: 4.93 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001582/0.2756, allocations: 1.265 MB / 455 MB, free: 3.66 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003076/0.2759, allocations: 166.6 kB / 455.2 MB, free: 3.492 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007912/0.2767, allocations: 474.5 kB / 455.7 MB, free: 3.027 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006993/0.2775, allocations: 402.4 kB / 456.1 MB, free: 2.633 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001107/0.2776, allocations: 48 kB / 456.1 MB, free: 2.586 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001798/0.2794, allocations: 0.7532 MB / 456.9 MB, free: 1.832 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001937/0.2796, allocations: 135.6 kB / 457 MB, free: 1.699 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004006/0.28, allocations: 282.9 kB / 457.3 MB, free: 1.422 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001785/0.2818, allocations: 1.048 MB / 458.3 MB, free: 380 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.2818, allocations: 4 kB / 458.3 MB, free: 376 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2818, allocations: 0 / 458.3 MB, free: 376 kB / 366.1 MB Notification: Performance of Transformations before backend: time 1.655e-05/0.2818, allocations: 0 / 458.3 MB, free: 376 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.001274/0.2831, allocations: 0.7905 MB / 459.1 MB, free: 15.53 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/0.2832, allocations: 8.031 kB / 459.1 MB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006081/0.2838, allocations: 80.62 kB / 459.2 MB, free: 15.44 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005713/0.2844, allocations: 347.6 kB / 459.5 MB, free: 15.06 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.9e-05/0.2844, allocations: 29.38 kB / 459.6 MB, free: 15.04 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.274e-05/0.2845, allocations: 40.38 kB / 459.6 MB, free: 15 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006983/0.2852, allocations: 471.6 kB / 460.1 MB, free: 14.48 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.05e-05/0.2852, allocations: 4 kB / 460.1 MB, free: 14.48 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.338e-05/0.2853, allocations: 16 kB / 460.1 MB, free: 14.46 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.158e-05/0.2853, allocations: 8 kB / 460.1 MB, free: 14.46 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000455/0.2857, allocations: 315.6 kB / 460.4 MB, free: 14.15 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01303/0.2988, allocations: 6.742 MB / 467.1 MB, free: 6.82 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005058/0.2993, allocations: 286.4 kB / 467.4 MB, free: 6.531 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002309/0.2996, allocations: 153.7 kB / 467.6 MB, free: 6.379 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009824/0.3094, allocations: 3.889 MB / 471.5 MB, free: 2.191 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.209e-05/0.3095, allocations: 34.56 kB / 471.5 MB, free: 2.148 MB / 382.1 MB Notification: Performance of pre-optimization done (n=35): time 2.354e-06/0.3095, allocations: 4 kB / 471.5 MB, free: 2.145 MB / 382.1 MB Notification: Performance of matching and sorting (n=45): time 0.01166/0.3211, allocations: 2.467 MB / 474 MB, free: 15.61 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.513e-05/0.3212, allocations: 63.39 kB / 474 MB, free: 15.53 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003324/0.3215, allocations: 295.3 kB / 474.3 MB, free: 15.23 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.21e-05/0.3216, allocations: 37.7 kB / 474.3 MB, free: 15.19 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001427/0.3217, allocations: 232.5 kB / 474.6 MB, free: 14.96 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001061/0.3219, allocations: 162.6 kB / 474.7 MB, free: 14.8 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001414/0.322, allocations: 102.2 kB / 474.8 MB, free: 14.69 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001202/0.3221, allocations: 346.8 kB / 475.2 MB, free: 14.34 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002484/0.3224, allocations: 153.1 kB / 475.3 MB, free: 14.2 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003366/0.3227, allocations: 275.7 kB / 475.6 MB, free: 13.88 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006239/0.3234, allocations: 472.3 kB / 476.1 MB, free: 13.36 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3234, allocations: 0 / 476.1 MB, free: 13.36 MB / 398.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001007/0.3244, allocations: 0.5918 MB / 476.6 MB, free: 12.75 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.043e-05/0.3244, allocations: 11.94 kB / 476.7 MB, free: 12.74 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.3244, allocations: 4 kB / 476.7 MB, free: 12.74 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007654/0.3321, allocations: 1.844 MB / 478.5 MB, free: 10.9 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004053/0.3325, allocations: 111.8 kB / 478.6 MB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001954/0.3345, allocations: 2.565 MB / 481.2 MB, free: 8.039 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002885/0.3348, allocations: 16 kB / 481.2 MB, free: 8.023 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.926e-05/0.3349, allocations: 20 kB / 481.2 MB, free: 8.004 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.0002142/0.3351, allocations: 185.7 kB / 481.4 MB, free: 7.812 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.91e-05/0.3352, allocations: 51.69 kB / 481.4 MB, free: 7.762 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001153/0.3363, allocations: 0.8398 MB / 482.3 MB, free: 6.91 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.739e-05/0.3364, allocations: 15.92 kB / 482.3 MB, free: 6.895 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.204e-06/0.3364, allocations: 3.938 kB / 482.3 MB, free: 6.891 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009686/0.3374, allocations: 0.9651 MB / 483.3 MB, free: 5.848 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001934/0.3393, allocations: 1.482 MB / 484.8 MB, free: 4.305 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.3393, allocations: 0 / 484.8 MB, free: 4.305 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002915/0.3396, allocations: 71.91 kB / 484.8 MB, free: 4.234 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003151/0.3428, allocations: 0.6296 MB / 485.5 MB, free: 3.598 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.954e-05/0.3428, allocations: 11.94 kB / 485.5 MB, free: 3.586 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009179/0.3438, allocations: 1.285 MB / 486.7 MB, free: 2.25 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/0.3438, allocations: 0 / 486.7 MB, free: 2.25 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001491/0.3453, allocations: 1.229 MB / 488 MB, free: 0.9961 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001182/0.3454, allocations: 116.8 kB / 488.1 MB, free: 0.8633 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.985e-05/0.3455, allocations: 12 kB / 488.1 MB, free: 0.8516 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002348/0.3457, allocations: 7.938 kB / 488.1 MB, free: 0.8438 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.25e-05/0.3458, allocations: 31.95 kB / 488.1 MB, free: 0.8125 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.761e-05/0.3458, allocations: 19.98 kB / 488.2 MB, free: 0.793 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002118/0.346, allocations: 209.9 kB / 488.4 MB, free: 0.5859 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.346, allocations: 0 / 488.4 MB, free: 0.5859 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007261/0.3468, allocations: 231.7 kB / 488.6 MB, free: 368 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.0006526/0.3474, allocations: 282.7 kB / 488.9 MB, free: 76 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001255/0.3487, allocations: 0.7062 MB / 489.6 MB, free: 15.36 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.3487, allocations: 0 / 489.6 MB, free: 15.36 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009143/0.3496, allocations: 440.2 kB / 490 MB, free: 14.93 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001189/0.3508, allocations: 251 kB / 490.2 MB, free: 14.69 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001756/0.3526, allocations: 1.222 MB / 491.5 MB, free: 13.44 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003918/0.353, allocations: 0.8402 MB / 492.3 MB, free: 12.57 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002869/0.3533, allocations: 68.34 kB / 492.4 MB, free: 12.5 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.8e-05/0.3534, allocations: 43.42 kB / 492.4 MB, free: 12.46 MB / 414.1 MB Notification: Performance of SimCode: time 9.31e-07/0.3534, allocations: 3.938 kB / 492.4 MB, free: 12.45 MB / 414.1 MB Notification: Performance of Templates: time 0.01951/0.3729, allocations: 12.77 MB / 0.4934 GB, free: 15.73 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