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.0013/0.0013, allocations: 120.1 kB / 18.49 MB, free: 4.562 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.001342/0.001342, allocations: 215 kB / 21.45 MB, free: 1.617 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.395/1.395, allocations: 230.6 MB / 254.8 MB, free: 15.24 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.DryAir2,fileNamePrefix="Modelica_4_1_0_Modelica_Media_Examples_ReferenceAir_DryAir2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0015/0.0015, allocations: 43.94 kB / 373.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0977/0.0992, allocations: 53.34 MB / 427 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.226/0.3252, allocations: 37.72 MB / 464.7 MB, free: 5.523 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004936/0.3301, allocations: 4.586 MB / 469.3 MB, free: 2.883 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005114/0.3307, allocations: 13.19 kB / 469.3 MB, free: 2.875 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001053/0.3317, allocations: 296.9 kB / 469.6 MB, free: 2.707 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001418/0.3331, allocations: 489.8 kB / 470.1 MB, free: 2.41 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005902/0.339, allocations: 1.648 MB / 471.8 MB, free: 1.559 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001997/0.341, allocations: 1.27 MB / 473 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003362/0.3414, allocations: 124.2 kB / 473.1 MB, free: 0.9102 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001126/0.3425, allocations: 483.8 kB / 473.6 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009475/0.3434, allocations: 432.6 kB / 474 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001696/0.3436, allocations: 53.55 kB / 474.1 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002245/0.3459, allocations: 0.7528 MB / 474.8 MB, free: 352 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002807/0.3461, allocations: 145.8 kB / 475 MB, free: 264 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005213/0.3467, allocations: 275.4 kB / 475.3 MB, free: 124 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002076/0.3487, allocations: 1.056 MB / 476.3 MB, free: 15.75 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.3487, allocations: 0 / 476.3 MB, free: 15.75 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.3487, allocations: 0 / 476.3 MB, free: 15.75 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.131e-05/0.3487, allocations: 1.406 kB / 476.3 MB, free: 15.75 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.001506/0.3503, allocations: 0.7854 MB / 477.1 MB, free: 15.15 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.3503, allocations: 9.625 kB / 477.1 MB, free: 15.15 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.532e-05/0.3503, allocations: 10.81 kB / 477.1 MB, free: 15.15 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.916e-05/0.3504, allocations: 79.14 kB / 477.2 MB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005918/0.351, allocations: 85.47 kB / 477.3 MB, free: 15.05 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006143/0.3516, allocations: 349.9 kB / 477.6 MB, free: 14.76 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.223e-05/0.3517, allocations: 29.3 kB / 477.6 MB, free: 14.75 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.442e-05/0.3517, allocations: 38.5 kB / 477.7 MB, free: 14.74 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007545/0.3525, allocations: 470.1 kB / 478.1 MB, free: 14.46 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.987e-05/0.3525, allocations: 1.859 kB / 478.1 MB, free: 14.46 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.025e-05/0.3525, allocations: 21.06 kB / 478.2 MB, free: 14.44 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.109e-05/0.3526, allocations: 14.25 kB / 478.2 MB, free: 14.44 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004817/0.353, allocations: 305.1 kB / 478.5 MB, free: 14.34 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01464/0.3677, allocations: 6.737 MB / 485.2 MB, free: 9.57 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005264/0.3682, allocations: 259.4 kB / 485.5 MB, free: 9.426 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002202/0.3684, allocations: 140.5 kB / 485.6 MB, free: 9.355 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01093/0.3794, allocations: 3.888 MB / 489.5 MB, free: 6.621 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.535e-05/0.3794, allocations: 41.92 kB / 489.5 MB, free: 6.574 MB / 382.1 MB Notification: Performance of pre-optimization done (n=35): time 2.284e-06/0.3794, allocations: 4 kB / 489.5 MB, free: 6.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=45): time 0.01199/0.3914, allocations: 2.456 MB / 492 MB, free: 5.223 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.755e-05/0.3914, allocations: 56.09 kB / 492.1 MB, free: 5.16 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005265/0.392, allocations: 304.1 kB / 492.3 MB, free: 4.957 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.951e-05/0.3921, allocations: 40.83 kB / 492.4 MB, free: 4.914 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000219/0.3923, allocations: 224.9 kB / 492.6 MB, free: 4.711 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001849/0.3925, allocations: 170.8 kB / 492.8 MB, free: 4.562 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000185/0.3927, allocations: 96.92 kB / 492.9 MB, free: 4.5 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002055/0.3929, allocations: 343.5 kB / 493.2 MB, free: 4.164 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000299/0.3932, allocations: 154.3 kB / 493.4 MB, free: 4.09 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004201/0.3936, allocations: 278.8 kB / 493.6 MB, free: 3.859 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007016/0.3943, allocations: 475.3 kB / 494.1 MB, free: 3.523 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.3943, allocations: 1.906 kB / 494.1 MB, free: 3.523 MB / 382.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001198/0.3955, allocations: 0.5911 MB / 494.7 MB, free: 3.199 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/0.3955, allocations: 6.438 kB / 494.7 MB, free: 3.199 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/0.3955, allocations: 4.781 kB / 494.7 MB, free: 3.199 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007628/0.4031, allocations: 1.849 MB / 496.5 MB, free: 2.402 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004455/0.4036, allocations: 107.7 kB / 496.7 MB, free: 2.379 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002264/0.4058, allocations: 2.573 MB / 499.2 MB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003674/0.4062, allocations: 13.5 kB / 499.2 MB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.592e-05/0.4062, allocations: 21.16 kB / 499.3 MB, free: 15.79 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.0002554/0.4065, allocations: 185.1 kB / 499.4 MB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.022e-05/0.4066, allocations: 39.55 kB / 499.5 MB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001178/0.4078, allocations: 0.8504 MB / 0.4886 GB, free: 15.1 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.285e-05/0.4078, allocations: 9.516 kB / 0.4886 GB, free: 15.1 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-06/0.4078, allocations: 0 / 0.4886 GB, free: 15.1 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009826/0.4088, allocations: 0.9545 MB / 0.4895 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00198/0.4108, allocations: 1.485 MB / 0.491 GB, free: 13.36 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.4108, allocations: 3.094 kB / 0.491 GB, free: 13.36 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002925/0.411, allocations: 77.55 kB / 0.4911 GB, free: 13.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003205/0.4143, allocations: 0.621 MB / 0.4917 GB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.012e-05/0.4143, allocations: 19.86 kB / 0.4917 GB, free: 13.01 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001032/0.4153, allocations: 1.279 MB / 0.4929 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.454e-06/0.4153, allocations: 10.48 kB / 0.493 GB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001622/0.417, allocations: 1.216 MB / 0.4941 GB, free: 10.78 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001607/0.4171, allocations: 121.5 kB / 0.4943 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.919e-05/0.4172, allocations: 12 kB / 0.4943 GB, free: 10.63 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002329/0.4174, allocations: 11.94 kB / 0.4943 GB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.996e-05/0.4175, allocations: 23.97 kB / 0.4943 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.507e-05/0.4175, allocations: 19.98 kB / 0.4943 GB, free: 10.57 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002381/0.4178, allocations: 209.9 kB / 0.4945 GB, free: 10.37 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4178, allocations: 0 / 0.4945 GB, free: 10.37 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001041/0.4188, allocations: 235.7 kB / 0.4947 GB, free: 10.14 MB / 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.002647/0.4214, allocations: 1.934 MB / 0.4966 GB, free: 8.172 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001329/0.4228, allocations: 0.6756 MB / 0.4973 GB, free: 7.48 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.4228, allocations: 0 / 0.4973 GB, free: 7.48 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009471/0.4237, allocations: 416 kB / 0.4977 GB, free: 7.074 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001317/0.425, allocations: 245 kB / 0.4979 GB, free: 6.84 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006503/0.4315, allocations: 4.488 MB / 0.5023 GB, free: 2.18 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004717/0.432, allocations: 0.8324 MB / 0.5031 GB, free: 1.316 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003181/0.4323, allocations: 64.36 kB / 0.5032 GB, free: 1.254 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002159/0.4325, allocations: 159.4 kB / 0.5033 GB, free: 1.098 MB / 398.1 MB Notification: Performance of SimCode: time 5.71e-07/0.4325, allocations: 0 / 0.5033 GB, free: 1.098 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04559/0.4781, allocations: 17.5 MB / 0.5204 GB, free: 15.78 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.31/12.79, allocations: 6.812 kB / 0.5204 GB, free: 15.78 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: 19.133485699014273]