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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001543/0.001543, allocations: 109.1 kB / 21.22 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001724/0.001724, allocations: 208.7 kB / 24.51 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.38/1.38, allocations: 230.5 MB / 258.2 MB, free: 7.824 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.DryAir2,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_ReferenceAir_DryAir2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.DryAir2,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_ReferenceAir_DryAir2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001786/0.001786, allocations: 59.89 kB / 378.5 MB, free: 2.836 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2259/0.2277, allocations: 53.4 MB / 431.9 MB, free: 6.621 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.04097/0.2686, allocations: 33.98 MB / 465.9 MB, free: 4.527 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005505/0.2741, allocations: 4.171 MB / 470.1 MB, free: 356 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003167/0.2744, allocations: 11.88 kB / 470.1 MB, free: 344 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007839/0.2752, allocations: 270.3 kB / 470.3 MB, free: 72 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009886/0.2762, allocations: 497.4 kB / 470.8 MB, free: 15.58 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004231/0.2804, allocations: 1.631 MB / 472.4 MB, free: 13.95 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001645/0.2821, allocations: 1.292 MB / 473.7 MB, free: 12.65 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002615/0.2824, allocations: 119 kB / 473.9 MB, free: 12.53 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007408/0.2831, allocations: 498.4 kB / 474.3 MB, free: 12.04 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006321/0.2837, allocations: 434.3 kB / 474.8 MB, free: 11.61 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.586e-05/0.2838, allocations: 48 kB / 474.8 MB, free: 11.57 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001573/0.2854, allocations: 0.7532 MB / 475.6 MB, free: 10.81 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001939/0.2856, allocations: 143.5 kB / 475.7 MB, free: 10.67 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003187/0.2859, allocations: 243.1 kB / 475.9 MB, free: 10.43 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001569/0.2875, allocations: 1.052 MB / 477 MB, free: 9.379 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.621e-05/0.2875, allocations: 4 kB / 477 MB, free: 9.375 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2875, allocations: 0 / 477 MB, free: 9.375 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.126e-05/0.2875, allocations: 3.938 kB / 477 MB, free: 9.371 MB / 382.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.001189/0.2887, allocations: 0.7113 MB / 477.7 MB, free: 8.625 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.2887, allocations: 8.031 kB / 477.7 MB, free: 8.617 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.222e-05/0.2887, allocations: 13.19 kB / 477.7 MB, free: 8.605 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.626e-05/0.2888, allocations: 78.7 kB / 477.8 MB, free: 8.52 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005996/0.2894, allocations: 80.62 kB / 477.9 MB, free: 8.441 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005379/0.29, allocations: 289.7 kB / 478.2 MB, free: 8.133 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.879e-05/0.29, allocations: 29.38 kB / 478.2 MB, free: 8.105 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.292e-05/0.2901, allocations: 40.12 kB / 478.2 MB, free: 8.066 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008643/0.2909, allocations: 0.6613 MB / 478.9 MB, free: 7.312 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.806e-05/0.2909, allocations: 0 / 478.9 MB, free: 7.312 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.591e-05/0.291, allocations: 16 kB / 478.9 MB, free: 7.297 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.178e-05/0.291, allocations: 12 kB / 478.9 MB, free: 7.285 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005155/0.2915, allocations: 307.6 kB / 479.2 MB, free: 6.98 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01342/0.3049, allocations: 4.643 MB / 483.9 MB, free: 2.246 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004766/0.3054, allocations: 246.6 kB / 484.1 MB, free: 1.996 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000221/0.3056, allocations: 147.5 kB / 484.3 MB, free: 1.852 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01038/0.316, allocations: 2.68 MB / 486.9 MB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.691e-05/0.3161, allocations: 42.56 kB / 487 MB, free: 15.12 MB / 398.1 MB Notification: Performance of pre-optimization done (n=35): time 1.934e-06/0.3161, allocations: 0 / 487 MB, free: 15.12 MB / 398.1 MB Notification: Performance of matching and sorting (n=45): time 0.01202/0.3281, allocations: 2.315 MB / 489.3 MB, free: 12.77 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.319e-05/0.3281, allocations: 59.41 kB / 489.4 MB, free: 12.7 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003469/0.3285, allocations: 304.5 kB / 489.7 MB, free: 12.39 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.032e-05/0.3285, allocations: 33.7 kB / 489.7 MB, free: 12.36 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001721/0.3287, allocations: 236.5 kB / 489.9 MB, free: 12.12 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001287/0.3288, allocations: 162.6 kB / 490.1 MB, free: 11.96 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001532/0.329, allocations: 102.3 kB / 490.2 MB, free: 11.85 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001593/0.3291, allocations: 350.8 kB / 490.5 MB, free: 11.5 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000261/0.3294, allocations: 153.2 kB / 490.7 MB, free: 11.35 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003599/0.3298, allocations: 276.7 kB / 490.9 MB, free: 11.03 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006658/0.3304, allocations: 472.2 kB / 491.4 MB, free: 10.52 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3304, allocations: 0 / 491.4 MB, free: 10.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00111/0.3315, allocations: 0.5957 MB / 492 MB, free: 9.91 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/0.3316, allocations: 6.188 kB / 492 MB, free: 9.906 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.3316, allocations: 4 kB / 492 MB, free: 9.902 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008328/0.3399, allocations: 1.849 MB / 493.9 MB, free: 8.062 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004312/0.3403, allocations: 107.8 kB / 494 MB, free: 7.957 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00222/0.3425, allocations: 2.45 MB / 496.4 MB, free: 5.34 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002824/0.3428, allocations: 12 kB / 496.4 MB, free: 5.328 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.332e-05/0.3429, allocations: 28 kB / 496.4 MB, free: 5.301 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.000253/0.3431, allocations: 194.3 kB / 496.6 MB, free: 5.102 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.736e-05/0.3432, allocations: 35.77 kB / 496.7 MB, free: 5.066 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001273/0.3445, allocations: 0.8727 MB / 497.5 MB, free: 4.188 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-05/0.3445, allocations: 11.98 kB / 497.6 MB, free: 4.176 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.863e-06/0.3445, allocations: 0 / 497.6 MB, free: 4.176 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001091/0.3456, allocations: 0.9745 MB / 498.5 MB, free: 3.121 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002099/0.3477, allocations: 1.42 MB / 499.9 MB, free: 1.641 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.3477, allocations: 0 / 499.9 MB, free: 1.641 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000321/0.348, allocations: 75.91 kB / 0.4883 GB, free: 1.566 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003463/0.3515, allocations: 0.6257 MB / 0.4889 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.718e-05/0.3515, allocations: 12 kB / 0.4889 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001117/0.3526, allocations: 1.296 MB / 0.4902 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.676e-06/0.3526, allocations: 3.938 kB / 0.4902 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001666/0.3543, allocations: 1.247 MB / 0.4914 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001012/0.3544, allocations: 43.69 kB / 0.4915 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.874e-05/0.3545, allocations: 15.94 kB / 0.4915 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002392/0.3547, allocations: 12 kB / 0.4915 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.635e-05/0.3548, allocations: 27.94 kB / 0.4915 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.85e-05/0.3548, allocations: 19.98 kB / 0.4915 GB, free: 14.18 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002494/0.3551, allocations: 211.1 kB / 0.4917 GB, free: 13.97 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3551, allocations: 4.062 kB / 0.4917 GB, free: 13.97 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007388/0.3558, allocations: 227.7 kB / 0.492 GB, free: 13.75 MB / 414.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.002508/0.3583, allocations: 1.976 MB / 0.4939 GB, free: 11.74 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001285/0.3596, allocations: 0.6836 MB / 0.4945 GB, free: 11.04 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.237e-06/0.3596, allocations: 0 / 0.4945 GB, free: 11.04 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009569/0.3606, allocations: 424.4 kB / 0.495 GB, free: 10.62 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001203/0.3618, allocations: 240.2 kB / 0.4952 GB, free: 10.39 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006318/0.3681, allocations: 4.498 MB / 0.4996 GB, free: 5.699 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002441/0.3683, allocations: 229.3 kB / 0.4998 GB, free: 5.449 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003119/0.3686, allocations: 76.33 kB / 0.4999 GB, free: 5.375 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002283/0.3689, allocations: 167.4 kB / 0.5 GB, free: 5.211 MB / 414.1 MB Notification: Performance of SimCode: time 1.052e-06/0.3689, allocations: 0 / 0.5 GB, free: 5.211 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04552/0.4144, allocations: 18.34 MB / 0.5179 GB, free: 3.09 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.29/13.71, allocations: 14.42 kB / 0.518 GB, free: 3.078 MB / 430.1 MB " [Timeout remaining time 646] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Media_Examples_ReferenceAir_DryAir2_fmu --startTime=0 --stopTime=1.01 --stepSize=0.000201919 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Media_Examples_ReferenceAir_DryAir2.fmu > Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 20.02438086597249]