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.001383/0.001383, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001729/0.001729, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.444/1.444, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001121/0.001121, allocations: 57.38 kB / 308.4 MB, free: 15.87 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08779/0.08892, allocations: 50.53 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.225/0.3139, allocations: 37.53 MB / 396.4 MB, free: 14.89 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005604/0.3196, allocations: 4.568 MB / 401 MB, free: 11.57 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004498/0.3201, allocations: 13.28 kB / 401 MB, free: 11.56 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008428/0.3209, allocations: 292.2 kB / 401.3 MB, free: 11.39 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009305/0.3219, allocations: 480.1 kB / 401.8 MB, free: 11.1 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004616/0.3265, allocations: 1.641 MB / 403.4 MB, free: 9.988 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001739/0.3283, allocations: 1.278 MB / 404.7 MB, free: 9.27 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003133/0.3286, allocations: 170.5 kB / 404.8 MB, free: 9.18 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007264/0.3294, allocations: 470.6 kB / 405.3 MB, free: 8.934 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005385/0.3299, allocations: 414.6 kB / 405.7 MB, free: 8.699 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.428e-05/0.33, allocations: 45.69 kB / 405.7 MB, free: 8.699 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001756/0.3317, allocations: 0.7589 MB / 406.5 MB, free: 8.344 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001785/0.3319, allocations: 136.4 kB / 406.6 MB, free: 8.238 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003242/0.3323, allocations: 273.2 kB / 406.9 MB, free: 8.086 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001516/0.3338, allocations: 1.052 MB / 408 MB, free: 7.398 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.3338, allocations: 0 / 408 MB, free: 7.398 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.043e-06/0.3338, allocations: 0 / 408 MB, free: 7.398 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.125e-05/0.3338, allocations: 0 / 408 MB, free: 7.398 MB / 318.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.001251/0.3351, allocations: 0.7854 MB / 408.7 MB, free: 6.742 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.3351, allocations: 8.812 kB / 408.8 MB, free: 6.742 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005914/0.3357, allocations: 77.75 kB / 408.8 MB, free: 6.711 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005994/0.3363, allocations: 341.2 kB / 409.2 MB, free: 6.391 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.393e-05/0.3364, allocations: 28.47 kB / 409.2 MB, free: 6.375 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.933e-05/0.3365, allocations: 38.38 kB / 409.2 MB, free: 6.363 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007103/0.3372, allocations: 471 kB / 409.7 MB, free: 6.02 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.15e-05/0.3372, allocations: 9.156 kB / 409.7 MB, free: 6.012 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.911e-05/0.3373, allocations: 18.59 kB / 409.7 MB, free: 6 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.366e-05/0.3373, allocations: 8.5 kB / 409.7 MB, free: 6 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004957/0.3378, allocations: 311.1 kB / 410 MB, free: 5.852 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01329/0.3511, allocations: 6.732 MB / 416.8 MB, free: 288 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004539/0.3516, allocations: 274 kB / 417 MB, free: 136 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002309/0.3518, allocations: 160.1 kB / 417.2 MB, free: 52 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0106/0.3624, allocations: 3.879 MB / 421.1 MB, free: 11.97 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.134e-05/0.3625, allocations: 34.56 kB / 421.1 MB, free: 11.93 MB / 334.1 MB Notification: Performance of pre-optimization done (n=35): time 2.044e-06/0.3625, allocations: 0 / 421.1 MB, free: 11.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.01183/0.3744, allocations: 2.461 MB / 423.6 MB, free: 9.395 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.704e-05/0.3744, allocations: 59.34 kB / 423.6 MB, free: 9.324 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003363/0.3748, allocations: 303.2 kB / 423.9 MB, free: 9.02 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.863e-05/0.3748, allocations: 41.64 kB / 423.9 MB, free: 8.973 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001439/0.375, allocations: 224 kB / 424.2 MB, free: 8.75 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001167/0.3751, allocations: 161.7 kB / 424.3 MB, free: 8.59 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000143/0.3752, allocations: 98.16 kB / 424.4 MB, free: 8.488 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.3754, allocations: 354.8 kB / 424.8 MB, free: 8.133 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002455/0.3756, allocations: 153.1 kB / 424.9 MB, free: 7.984 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003319/0.376, allocations: 279.7 kB / 425.2 MB, free: 7.66 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005981/0.3766, allocations: 468.3 kB / 425.6 MB, free: 7.152 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3766, allocations: 0 / 425.6 MB, free: 7.152 MB / 334.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00101/0.3776, allocations: 0.5917 MB / 426.2 MB, free: 6.547 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/0.3776, allocations: 11.94 kB / 426.3 MB, free: 6.535 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.308e-06/0.3776, allocations: 4 kB / 426.3 MB, free: 6.531 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00786/0.3855, allocations: 1.848 MB / 428.1 MB, free: 4.695 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000422/0.3859, allocations: 111.8 kB / 428.2 MB, free: 4.586 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001978/0.3879, allocations: 2.558 MB / 430.8 MB, free: 1.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003026/0.3883, allocations: 12 kB / 430.8 MB, free: 1.828 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.537e-05/0.3883, allocations: 24 kB / 430.8 MB, free: 1.805 MB / 334.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.0002307/0.3885, allocations: 177.7 kB / 431 MB, free: 1.621 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.992e-05/0.3886, allocations: 35.62 kB / 431 MB, free: 1.586 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001154/0.3898, allocations: 0.859 MB / 431.9 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-05/0.3898, allocations: 15.92 kB / 431.9 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.174e-06/0.3898, allocations: 0 / 431.9 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009845/0.3908, allocations: 0.9573 MB / 432.8 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001988/0.3928, allocations: 1.49 MB / 434.3 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/0.3928, allocations: 0 / 434.3 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004134/0.3932, allocations: 75.89 kB / 434.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003295/0.3966, allocations: 0.6217 MB / 435 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.031e-05/0.3966, allocations: 15.98 kB / 435 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009408/0.3976, allocations: 1.288 MB / 436.3 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.3976, allocations: 3.938 kB / 436.3 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001498/0.3991, allocations: 1.217 MB / 437.6 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001228/0.3992, allocations: 112.6 kB / 437.7 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.971e-05/0.3993, allocations: 16.03 kB / 437.7 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002309/0.3995, allocations: 16 kB / 437.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.021e-05/0.3996, allocations: 27.91 kB / 437.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.906e-05/0.3996, allocations: 19.98 kB / 437.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002015/0.3998, allocations: 209.9 kB / 437.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3998, allocations: 0 / 437.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007671/0.4006, allocations: 235.9 kB / 438.2 MB, free: 10.15 MB / 350.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.0005791/0.4012, allocations: 275.1 kB / 438.4 MB, free: 9.875 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001162/0.4024, allocations: 0.6912 MB / 439.1 MB, free: 9.168 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.329e-06/0.4024, allocations: 4 kB / 439.1 MB, free: 9.164 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009159/0.4033, allocations: 436.2 kB / 439.6 MB, free: 8.738 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001117/0.4044, allocations: 236.5 kB / 439.8 MB, free: 8.512 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001705/0.4062, allocations: 1.232 MB / 441 MB, free: 7.258 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003707/0.4065, allocations: 0.8285 MB / 441.9 MB, free: 6.402 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002488/0.4068, allocations: 76.33 kB / 441.9 MB, free: 6.324 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.555e-05/0.4069, allocations: 39.44 kB / 442 MB, free: 6.289 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.4069, allocations: 0 / 442 MB, free: 6.289 MB / 350.1 MB Notification: Performance of Templates: time 0.01852/0.4254, allocations: 12.66 MB / 454.6 MB, free: 9.684 MB / 366.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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/DryAir2/DryAir2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches