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.001875/0.001875, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.002448/0.002448, allocations: 216.5 kB / 23.75 MB, free: 4.668 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.414/1.414, allocations: 230.6 MB / 257.5 MB, free: 8.008 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.001666/0.001666, allocations: 47.92 kB / 377.8 MB, free: 3.129 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2544/0.256, allocations: 53.36 MB / 431.1 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.04247/0.2985, allocations: 37.98 MB / 469.1 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005914/0.3044, allocations: 4.63 MB / 473.8 MB, free: 12.1 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004569/0.3049, allocations: 7.938 kB / 473.8 MB, free: 12.09 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009081/0.3058, allocations: 298.1 kB / 474.1 MB, free: 11.8 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001081/0.3069, allocations: 493.3 kB / 474.5 MB, free: 11.32 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004439/0.3113, allocations: 1.659 MB / 476.2 MB, free: 9.66 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001783/0.3131, allocations: 1.292 MB / 477.5 MB, free: 8.363 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002748/0.3134, allocations: 119 kB / 477.6 MB, free: 8.238 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008941/0.3143, allocations: 486.4 kB / 478.1 MB, free: 7.762 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007672/0.315, allocations: 434.3 kB / 478.5 MB, free: 7.336 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001232/0.3152, allocations: 48 kB / 478.5 MB, free: 7.289 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001746/0.3169, allocations: 0.7571 MB / 479.3 MB, free: 6.531 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001997/0.3171, allocations: 139.6 kB / 479.4 MB, free: 6.395 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004142/0.3175, allocations: 278.9 kB / 479.7 MB, free: 6.121 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00175/0.3193, allocations: 1.055 MB / 480.8 MB, free: 5.062 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.3193, allocations: 0 / 480.8 MB, free: 5.062 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3193, allocations: 0 / 480.8 MB, free: 5.062 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.064e-05/0.3193, allocations: 0 / 480.8 MB, free: 5.062 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.001381/0.3207, allocations: 0.7152 MB / 481.5 MB, free: 4.312 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.3207, allocations: 12.03 kB / 481.5 MB, free: 4.301 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001015/0.3208, allocations: 74.72 kB / 481.6 MB, free: 4.219 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005824/0.3214, allocations: 80.56 kB / 481.6 MB, free: 4.141 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005719/0.322, allocations: 293.7 kB / 481.9 MB, free: 3.828 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.95e-05/0.322, allocations: 29.38 kB / 482 MB, free: 3.801 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.425e-05/0.3221, allocations: 40.38 kB / 482 MB, free: 3.762 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007341/0.3228, allocations: 471.5 kB / 482.5 MB, free: 3.258 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.294e-05/0.3228, allocations: 3.938 kB / 482.5 MB, free: 3.254 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.21e-05/0.3229, allocations: 16 kB / 482.5 MB, free: 3.238 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.285e-05/0.3229, allocations: 12 kB / 482.5 MB, free: 3.227 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000515/0.3234, allocations: 307.6 kB / 482.8 MB, free: 2.926 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01364/0.337, allocations: 5.491 MB / 488.3 MB, free: 13.15 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005039/0.3375, allocations: 266.4 kB / 488.5 MB, free: 12.88 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002374/0.3378, allocations: 147.9 kB / 488.7 MB, free: 12.74 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01025/0.348, allocations: 2.664 MB / 491.4 MB, free: 10.07 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.168e-05/0.3481, allocations: 39.16 kB / 491.4 MB, free: 10.02 MB / 398.1 MB Notification: Performance of pre-optimization done (n=35): time 1.804e-06/0.3481, allocations: 0 / 491.4 MB, free: 10.02 MB / 398.1 MB Notification: Performance of matching and sorting (n=45): time 0.01158/0.3597, allocations: 2.323 MB / 493.7 MB, free: 7.66 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.051e-05/0.3597, allocations: 55.41 kB / 493.8 MB, free: 7.594 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003651/0.3601, allocations: 300.5 kB / 494.1 MB, free: 7.293 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.104e-05/0.3601, allocations: 37.7 kB / 494.1 MB, free: 7.25 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001927/0.3603, allocations: 228.5 kB / 494.3 MB, free: 7.02 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001395/0.3604, allocations: 162.6 kB / 494.5 MB, free: 6.859 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001448/0.3606, allocations: 106.3 kB / 494.6 MB, free: 6.75 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001586/0.3607, allocations: 346.8 kB / 494.9 MB, free: 6.402 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002644/0.361, allocations: 153.2 kB / 495.1 MB, free: 6.254 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003515/0.3614, allocations: 272.7 kB / 495.3 MB, free: 5.941 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006684/0.362, allocations: 476.2 kB / 495.8 MB, free: 5.426 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.362, allocations: 0 / 495.8 MB, free: 5.426 MB / 398.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001112/0.3631, allocations: 0.5957 MB / 496.4 MB, free: 4.812 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/0.3632, allocations: 11.94 kB / 496.4 MB, free: 4.801 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/0.3632, allocations: 4 kB / 496.4 MB, free: 4.797 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007986/0.3712, allocations: 1.846 MB / 498.3 MB, free: 2.965 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004286/0.3716, allocations: 103.9 kB / 498.4 MB, free: 2.863 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002325/0.3739, allocations: 2.462 MB / 0.4891 GB, free: 240 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002919/0.3742, allocations: 16 kB / 0.4891 GB, free: 224 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.995e-05/0.3742, allocations: 20 kB / 0.4891 GB, free: 204 kB / 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.0002982/0.3745, allocations: 181.7 kB / 0.4893 GB, free: 12 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001239/0.3747, allocations: 39.81 kB / 0.4893 GB, free: 15.97 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001325/0.376, allocations: 0.8724 MB / 0.4902 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.136e-05/0.376, allocations: 11.98 kB / 0.4902 GB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.454e-06/0.376, allocations: 0 / 0.4902 GB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001112/0.3771, allocations: 0.9747 MB / 0.4912 GB, free: 14.03 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002098/0.3792, allocations: 1.479 MB / 0.4926 GB, free: 12.49 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.787e-06/0.3792, allocations: 8 kB / 0.4926 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003161/0.3795, allocations: 75.89 kB / 0.4927 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00349/0.383, allocations: 0.6257 MB / 0.4933 GB, free: 11.78 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.64e-05/0.3831, allocations: 15.94 kB / 0.4933 GB, free: 11.76 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001144/0.3842, allocations: 1.3 MB / 0.4946 GB, free: 10.41 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.3842, allocations: 3.938 kB / 0.4946 GB, free: 10.41 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001732/0.386, allocations: 1.25 MB / 0.4958 GB, free: 9.125 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001307/0.3861, allocations: 43.69 kB / 0.4958 GB, free: 9.082 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.848e-05/0.3862, allocations: 12 kB / 0.4958 GB, free: 9.07 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002443/0.3864, allocations: 12 kB / 0.4959 GB, free: 9.059 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.772e-05/0.3865, allocations: 35.88 kB / 0.4959 GB, free: 9.023 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.694e-05/0.3865, allocations: 19.98 kB / 0.4959 GB, free: 9.004 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002402/0.3868, allocations: 207.1 kB / 0.4961 GB, free: 8.801 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3868, allocations: 0 / 0.4961 GB, free: 8.801 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008141/0.3876, allocations: 231.7 kB / 0.4963 GB, free: 8.574 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.002549/0.3901, allocations: 1.976 MB / 0.4983 GB, free: 6.566 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001286/0.3914, allocations: 0.6719 MB / 0.4989 GB, free: 5.883 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.3914, allocations: 0 / 0.4989 GB, free: 5.883 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009829/0.3924, allocations: 428.5 kB / 0.4993 GB, free: 5.461 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001212/0.3936, allocations: 248.9 kB / 0.4996 GB, free: 5.219 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006442/0.4, allocations: 4.491 MB / 0.504 GB, free: 0.5352 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005069/0.4006, allocations: 0.8401 MB / 0.5048 GB, free: 15.66 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002881/0.4008, allocations: 68.34 kB / 0.5048 GB, free: 15.6 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002227/0.4011, allocations: 159.3 kB / 0.505 GB, free: 15.44 MB / 430.1 MB Notification: Performance of SimCode: time 7.11e-07/0.4011, allocations: 0 / 0.505 GB, free: 15.44 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05581/0.4569, allocations: 18.04 MB / 0.5226 GB, free: 13.59 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.35/13.81, allocations: 3.281 kB / 0.5226 GB, free: 13.59 MB / 446.1 MB " [Timeout remaining time 646] (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: 18.33817419805564]