Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Media.Examples.ReferenceAir.DryAir2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001728/0.001728, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002109/0.002109, allocations: 204.5 kB / 23.73 MB, free: 4.379 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.448/1.448, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.DryAir2,fileNamePrefix="Modelica_4_1_0_Modelica_Media_Examples_ReferenceAir_DryAir2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.DryAir2,fileNamePrefix="Modelica_4_1_0_Modelica_Media_Examples_ReferenceAir_DryAir2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001512/0.001512, allocations: 51.91 kB / 377.7 MB, free: 2.945 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2464/0.248, allocations: 53.37 MB / 431.1 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.03742/0.2854, allocations: 34 MB / 465.1 MB, free: 4.52 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005485/0.2909, allocations: 4.167 MB / 469.3 MB, free: 352 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003222/0.2912, allocations: 7.938 kB / 469.3 MB, free: 344 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008042/0.292, allocations: 278.2 kB / 469.5 MB, free: 64 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000937/0.2929, allocations: 489.3 kB / 470 MB, free: 15.58 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004257/0.2972, allocations: 1.645 MB / 471.7 MB, free: 13.94 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001589/0.2988, allocations: 1.288 MB / 473 MB, free: 12.64 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002463/0.299, allocations: 126.9 kB / 473.1 MB, free: 12.51 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000648/0.2997, allocations: 494.5 kB / 473.6 MB, free: 12.03 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005783/0.3002, allocations: 430.3 kB / 474 MB, free: 11.61 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.694e-05/0.3003, allocations: 48 kB / 474 MB, free: 11.56 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001462/0.3018, allocations: 0.761 MB / 474.8 MB, free: 10.8 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001578/0.3019, allocations: 135.5 kB / 474.9 MB, free: 10.66 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002691/0.3022, allocations: 239.2 kB / 475.2 MB, free: 10.43 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001323/0.3035, allocations: 1.067 MB / 476.2 MB, free: 9.359 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.3035, allocations: 0 / 476.2 MB, free: 9.359 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.3035, allocations: 0 / 476.2 MB, free: 9.359 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.326e-06/0.3035, allocations: 4 kB / 476.2 MB, free: 9.355 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.001134/0.3047, allocations: 0.7036 MB / 476.9 MB, free: 8.617 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.3047, allocations: 12.03 kB / 476.9 MB, free: 8.605 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001008/0.3048, allocations: 78.7 kB / 477 MB, free: 8.52 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005596/0.3054, allocations: 80.62 kB / 477.1 MB, free: 8.441 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005596/0.3059, allocations: 281.8 kB / 477.4 MB, free: 8.141 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.291e-05/0.306, allocations: 29.38 kB / 477.4 MB, free: 8.113 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.867e-05/0.306, allocations: 44.38 kB / 477.4 MB, free: 8.07 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000837/0.3069, allocations: 0.665 MB / 478.1 MB, free: 7.312 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.026e-05/0.3069, allocations: 4 kB / 478.1 MB, free: 7.309 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.229e-05/0.3069, allocations: 16 kB / 478.1 MB, free: 7.293 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.455e-05/0.3069, allocations: 12 kB / 478.1 MB, free: 7.281 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004748/0.3074, allocations: 299.6 kB / 478.4 MB, free: 6.988 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01342/0.3208, allocations: 4.635 MB / 483.1 MB, free: 2.262 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004892/0.3213, allocations: 258.4 kB / 483.3 MB, free: 2 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002185/0.3216, allocations: 143.2 kB / 483.5 MB, free: 1.859 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01049/0.332, allocations: 2.688 MB / 486.1 MB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.732e-05/0.3321, allocations: 34.56 kB / 486.2 MB, free: 15.12 MB / 398.1 MB Notification: Performance of pre-optimization done (n=35): time 2.525e-06/0.3321, allocations: 4 kB / 486.2 MB, free: 15.12 MB / 398.1 MB Notification: Performance of matching and sorting (n=45): time 0.01209/0.3442, allocations: 2.308 MB / 488.5 MB, free: 12.77 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.449e-05/0.3442, allocations: 55.41 kB / 488.5 MB, free: 12.71 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003571/0.3446, allocations: 312.4 kB / 488.9 MB, free: 12.39 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.166e-05/0.3446, allocations: 37.7 kB / 488.9 MB, free: 12.35 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001624/0.3448, allocations: 224.6 kB / 489.1 MB, free: 12.12 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001394/0.3449, allocations: 170.5 kB / 489.3 MB, free: 11.96 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001474/0.3451, allocations: 106.3 kB / 489.4 MB, free: 11.85 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001952/0.3453, allocations: 346.8 kB / 489.7 MB, free: 11.5 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002495/0.3455, allocations: 153.2 kB / 489.9 MB, free: 11.35 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003619/0.3459, allocations: 284.5 kB / 490.1 MB, free: 11.03 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006538/0.3465, allocations: 468.3 kB / 490.6 MB, free: 10.52 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.389e-06/0.3465, allocations: 4 kB / 490.6 MB, free: 10.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001069/0.3476, allocations: 0.5995 MB / 491.2 MB, free: 9.898 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.3476, allocations: 4 kB / 491.2 MB, free: 9.895 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.565e-06/0.3476, allocations: 4 kB / 491.2 MB, free: 9.891 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008442/0.3561, allocations: 1.852 MB / 493.1 MB, free: 8.051 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004329/0.3565, allocations: 107.8 kB / 493.2 MB, free: 7.945 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002196/0.3587, allocations: 2.45 MB / 495.6 MB, free: 5.328 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002802/0.359, allocations: 12 kB / 495.6 MB, free: 5.316 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.01e-05/0.359, allocations: 24 kB / 495.7 MB, free: 5.293 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.0002402/0.3593, allocations: 181.8 kB / 495.8 MB, free: 5.105 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.417e-05/0.3594, allocations: 43.86 kB / 495.9 MB, free: 5.062 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001265/0.3606, allocations: 0.8725 MB / 496.7 MB, free: 4.18 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.385e-05/0.3606, allocations: 12 kB / 496.8 MB, free: 4.168 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-06/0.3606, allocations: 0 / 496.8 MB, free: 4.168 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001111/0.3617, allocations: 0.9746 MB / 497.7 MB, free: 3.117 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001979/0.3637, allocations: 1.42 MB / 499.2 MB, free: 1.641 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/0.3637, allocations: 0 / 499.2 MB, free: 1.641 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003159/0.364, allocations: 71.91 kB / 499.2 MB, free: 1.57 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003454/0.3675, allocations: 0.6219 MB / 499.8 MB, free: 0.9414 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.394e-05/0.3675, allocations: 15.94 kB / 499.9 MB, free: 0.9258 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001116/0.3687, allocations: 1.3 MB / 0.4894 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.49e-06/0.3687, allocations: 7.938 kB / 0.4894 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001633/0.3703, allocations: 1.246 MB / 0.4906 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001121/0.3704, allocations: 47.69 kB / 0.4907 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.086e-05/0.3705, allocations: 8 kB / 0.4907 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002458/0.3707, allocations: 15.94 kB / 0.4907 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.062e-05/0.3708, allocations: 27.94 kB / 0.4907 GB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.368e-05/0.3708, allocations: 19.92 kB / 0.4908 GB, free: 14.17 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002381/0.371, allocations: 211.1 kB / 0.491 GB, free: 13.96 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.371, allocations: 64 / 0.491 GB, free: 13.96 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007916/0.3718, allocations: 239.7 kB / 0.4912 GB, free: 13.73 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.002388/0.3742, allocations: 1.976 MB / 0.4931 GB, free: 11.72 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001286/0.3755, allocations: 0.6837 MB / 0.4938 GB, free: 11.03 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.3755, allocations: 0 / 0.4938 GB, free: 11.03 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009349/0.3765, allocations: 424.4 kB / 0.4942 GB, free: 10.61 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001186/0.3776, allocations: 224.8 kB / 0.4944 GB, free: 10.39 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006171/0.3838, allocations: 4.497 MB / 0.4988 GB, free: 5.699 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002525/0.3841, allocations: 237.2 kB / 0.499 GB, free: 5.441 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003137/0.3844, allocations: 72.33 kB / 0.4991 GB, free: 5.371 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002191/0.3846, allocations: 159.4 kB / 0.4992 GB, free: 5.215 MB / 414.1 MB Notification: Performance of SimCode: time 1.393e-06/0.3846, allocations: 4 kB / 0.4992 GB, free: 5.211 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05166/0.4363, allocations: 18.73 MB / 0.5175 GB, free: 2.773 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.52/12.96, allocations: 6.969 kB / 0.5175 GB, free: 2.773 MB / 430.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; mkfifo Modelica_4.1.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe >> ../files/Modelica_4.1.0_Modelica.Media.Examples.ReferenceAir.DryAir2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Media.Examples.ReferenceAir.DryAir2_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Media_Examples_ReferenceAir_DryAir2_fmu --startTime=0 --stopTime=1.01 --stepSize=0.000201919 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Media_Examples_ReferenceAir_DryAir2.fmu > Modelica_4.1.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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: 17.284596597019117]