Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001236/0.001236, allocations: 105.5 kB / 20.43 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001334/0.001334, allocations: 185 kB / 23.72 MB, free: 4.719 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.378/1.378, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.DryAir2,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_DryAir2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.DryAir2,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_DryAir2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001479/0.001479, allocations: 47.92 kB / 370.5 MB, free: 9.855 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2356/0.2371, allocations: 52.19 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.03911/0.2762, allocations: 37.89 MB / 460.5 MB, free: 8.559 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005955/0.2822, allocations: 4.607 MB / 465.1 MB, free: 3.941 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004411/0.2826, allocations: 11.94 kB / 465.2 MB, free: 3.93 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009132/0.2835, allocations: 306.1 kB / 465.5 MB, free: 3.629 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001101/0.2846, allocations: 485.3 kB / 465.9 MB, free: 3.152 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004339/0.289, allocations: 1.652 MB / 467.6 MB, free: 1.5 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001666/0.2906, allocations: 1.3 MB / 468.9 MB, free: 200 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00027/0.2909, allocations: 123 kB / 469 MB, free: 68 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008549/0.2917, allocations: 486.5 kB / 469.5 MB, free: 15.59 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007288/0.2925, allocations: 442.3 kB / 469.9 MB, free: 15.16 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.842e-05/0.2926, allocations: 44 kB / 469.9 MB, free: 15.11 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001579/0.2942, allocations: 0.7532 MB / 470.7 MB, free: 14.36 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002373/0.2944, allocations: 147.4 kB / 470.8 MB, free: 14.21 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003768/0.2948, allocations: 275 kB / 471.1 MB, free: 13.95 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001624/0.2964, allocations: 1.052 MB / 472.2 MB, free: 12.89 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.2964, allocations: 3.938 kB / 472.2 MB, free: 12.89 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2964, allocations: 0 / 472.2 MB, free: 12.89 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.656e-05/0.2964, allocations: 8 kB / 472.2 MB, free: 12.88 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.001226/0.2976, allocations: 0.7075 MB / 472.9 MB, free: 12.14 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.2977, allocations: 8.031 kB / 472.9 MB, free: 12.13 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.245e-05/0.2978, allocations: 78.72 kB / 473 MB, free: 12.04 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005791/0.2983, allocations: 80.56 kB / 473 MB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005492/0.2989, allocations: 289.7 kB / 473.3 MB, free: 11.66 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.354e-05/0.2989, allocations: 29.38 kB / 473.4 MB, free: 11.63 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.056e-05/0.299, allocations: 36.38 kB / 473.4 MB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007129/0.2997, allocations: 475.4 kB / 473.9 MB, free: 11.08 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.066e-05/0.2997, allocations: 3.984 kB / 473.9 MB, free: 11.08 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.101e-05/0.2998, allocations: 20 kB / 473.9 MB, free: 11.06 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.552e-05/0.2998, allocations: 8 kB / 473.9 MB, free: 11.05 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004942/0.3003, allocations: 311.7 kB / 474.2 MB, free: 10.75 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01341/0.3137, allocations: 5.48 MB / 479.7 MB, free: 4.984 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005342/0.3142, allocations: 270.6 kB / 479.9 MB, free: 4.715 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002339/0.3145, allocations: 140.8 kB / 480.1 MB, free: 4.574 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01004/0.3245, allocations: 2.669 MB / 482.7 MB, free: 1.902 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.917e-05/0.3245, allocations: 46.42 kB / 482.8 MB, free: 1.848 MB / 382.1 MB Notification: Performance of pre-optimization done (n=35): time 2.254e-06/0.3245, allocations: 0 / 482.8 MB, free: 1.848 MB / 382.1 MB Notification: Performance of matching and sorting (n=45): time 0.01143/0.336, allocations: 2.311 MB / 485.1 MB, free: 15.5 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.42e-05/0.336, allocations: 59.41 kB / 485.2 MB, free: 15.43 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003699/0.3364, allocations: 304.5 kB / 485.5 MB, free: 15.12 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.45e-05/0.3364, allocations: 37.7 kB / 485.5 MB, free: 15.08 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001636/0.3366, allocations: 224.5 kB / 485.7 MB, free: 14.86 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001316/0.3367, allocations: 174.4 kB / 485.9 MB, free: 14.69 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001411/0.3369, allocations: 94.3 kB / 486 MB, free: 14.59 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.337, allocations: 346.8 kB / 486.3 MB, free: 14.24 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002596/0.3373, allocations: 153.2 kB / 486.5 MB, free: 14.09 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003527/0.3376, allocations: 284.6 kB / 486.7 MB, free: 13.77 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006532/0.3383, allocations: 472.3 kB / 487.2 MB, free: 13.25 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3383, allocations: 0 / 487.2 MB, free: 13.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00107/0.3394, allocations: 0.5956 MB / 487.8 MB, free: 12.64 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.3394, allocations: 4 kB / 487.8 MB, free: 12.64 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.255e-06/0.3394, allocations: 4 kB / 487.8 MB, free: 12.63 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007778/0.3472, allocations: 1.848 MB / 489.7 MB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004198/0.3476, allocations: 107.8 kB / 489.8 MB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002193/0.3498, allocations: 2.458 MB / 492.2 MB, free: 8.066 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002859/0.3501, allocations: 12 kB / 492.2 MB, free: 8.055 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.218e-05/0.3501, allocations: 28.12 kB / 492.3 MB, free: 8.027 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.000232/0.3503, allocations: 181.6 kB / 492.4 MB, free: 7.84 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.776e-05/0.3504, allocations: 39.77 kB / 492.5 MB, free: 7.801 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001233/0.3517, allocations: 0.8726 MB / 493.3 MB, free: 6.922 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-05/0.3517, allocations: 15.94 kB / 493.4 MB, free: 6.906 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.003e-06/0.3517, allocations: 0 / 493.4 MB, free: 6.906 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00108/0.3528, allocations: 0.9786 MB / 494.3 MB, free: 5.848 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002044/0.3548, allocations: 1.49 MB / 495.8 MB, free: 4.301 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.3548, allocations: 0 / 495.8 MB, free: 4.301 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003068/0.3551, allocations: 71.91 kB / 495.9 MB, free: 4.23 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003396/0.3585, allocations: 0.6295 MB / 496.5 MB, free: 3.594 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.909e-05/0.3585, allocations: 11.94 kB / 496.5 MB, free: 3.582 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001045/0.3596, allocations: 1.3 MB / 497.8 MB, free: 2.23 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.3596, allocations: 3.938 kB / 497.8 MB, free: 2.227 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001602/0.3612, allocations: 1.247 MB / 499.1 MB, free: 0.9531 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.716e-05/0.3613, allocations: 47.62 kB / 499.1 MB, free: 0.9062 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.137e-05/0.3614, allocations: 12 kB / 499.1 MB, free: 0.8945 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000237/0.3616, allocations: 11.94 kB / 499.2 MB, free: 0.8828 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.912e-05/0.3616, allocations: 31.94 kB / 499.2 MB, free: 0.8516 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.612e-05/0.3617, allocations: 19.98 kB / 499.2 MB, free: 0.832 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002258/0.3619, allocations: 211.1 kB / 499.4 MB, free: 0.6211 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3619, allocations: 0 / 499.4 MB, free: 0.6211 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007425/0.3626, allocations: 231.8 kB / 499.6 MB, free: 404 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.00253/0.3652, allocations: 1.973 MB / 0.4899 GB, free: 14.39 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001262/0.3664, allocations: 0.672 MB / 0.4905 GB, free: 13.71 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.3664, allocations: 3.938 kB / 0.4905 GB, free: 13.7 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009064/0.3673, allocations: 421.1 kB / 0.4909 GB, free: 13.29 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001151/0.3685, allocations: 236.8 kB / 0.4911 GB, free: 13.06 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006355/0.3749, allocations: 4.495 MB / 0.4955 GB, free: 8.367 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004951/0.3754, allocations: 0.8321 MB / 0.4963 GB, free: 7.512 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002849/0.3756, allocations: 72.33 kB / 0.4964 GB, free: 7.441 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002139/0.3758, allocations: 167.3 kB / 0.4966 GB, free: 7.277 MB / 414.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3758, allocations: 0 / 0.4966 GB, free: 7.277 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05075/0.4266, allocations: 18.04 MB / 0.5142 GB, free: 5.418 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.76/13.18, allocations: 0 / 0.5142 GB, free: 5.418 MB / 430.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_DryAir2_fmu --startTime=0 --stopTime=1.01 --stepSize=0.000201919 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_DryAir2.fmu > Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_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_4.0.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.406744697131217]