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.001306/0.001306, allocations: 114 kB / 20.43 MB, free: 1.457 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.001385/0.001385, allocations: 215.4 kB / 23.74 MB, free: 4.672 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.396/1.396, allocations: 230.5 MB / 257.4 MB, free: 7.988 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.DryAir2,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_ReferenceAir_DryAir2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002006/0.002006, allocations: 59.91 kB / 377.8 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2515/0.2535, allocations: 53.4 MB / 431.2 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.04288/0.2964, allocations: 37.99 MB / 469.2 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00615/0.3025, allocations: 4.623 MB / 473.8 MB, free: 11.9 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003031/0.3028, allocations: 7.938 kB / 473.8 MB, free: 11.89 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008777/0.3037, allocations: 294.2 kB / 474.1 MB, free: 11.61 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009188/0.3046, allocations: 497.3 kB / 474.6 MB, free: 11.12 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004664/0.3093, allocations: 1.652 MB / 476.2 MB, free: 9.469 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001732/0.311, allocations: 1.296 MB / 477.5 MB, free: 8.168 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002479/0.3113, allocations: 123 kB / 477.7 MB, free: 8.039 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000771/0.3121, allocations: 490.4 kB / 478.1 MB, free: 7.559 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000618/0.3127, allocations: 422.4 kB / 478.5 MB, free: 7.145 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.586e-05/0.3127, allocations: 55.88 kB / 478.6 MB, free: 7.09 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001628/0.3144, allocations: 0.7571 MB / 479.4 MB, free: 6.332 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001603/0.3145, allocations: 139.5 kB / 479.5 MB, free: 6.195 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003073/0.3148, allocations: 278.9 kB / 479.8 MB, free: 5.922 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001418/0.3163, allocations: 1.055 MB / 480.8 MB, free: 4.863 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.3163, allocations: 0 / 480.8 MB, free: 4.863 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3163, allocations: 0 / 480.8 MB, free: 4.863 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.357e-06/0.3163, allocations: 0 / 480.8 MB, free: 4.863 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.001149/0.3174, allocations: 0.7191 MB / 481.5 MB, free: 4.109 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.3175, allocations: 8.031 kB / 481.5 MB, free: 4.102 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.172e-05/0.3176, allocations: 74.72 kB / 481.6 MB, free: 4.02 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005444/0.3181, allocations: 88.62 kB / 481.7 MB, free: 3.934 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005168/0.3186, allocations: 277.7 kB / 482 MB, free: 3.637 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.992e-05/0.3186, allocations: 29.38 kB / 482 MB, free: 3.609 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.165e-05/0.3187, allocations: 40.36 kB / 482 MB, free: 3.57 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006877/0.3194, allocations: 475.5 kB / 482.5 MB, free: 3.062 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.767e-05/0.3194, allocations: 0 / 482.5 MB, free: 3.062 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.117e-05/0.3195, allocations: 20 kB / 482.5 MB, free: 3.043 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.005e-05/0.3195, allocations: 12 kB / 482.5 MB, free: 3.031 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004714/0.3199, allocations: 303.7 kB / 482.8 MB, free: 2.73 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01313/0.3331, allocations: 5.495 MB / 488.3 MB, free: 12.95 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004862/0.3336, allocations: 258.5 kB / 488.6 MB, free: 12.69 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002143/0.3338, allocations: 143.6 kB / 488.7 MB, free: 12.55 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009562/0.3433, allocations: 2.668 MB / 491.4 MB, free: 9.879 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.95e-05/0.3434, allocations: 39.14 kB / 491.4 MB, free: 9.832 MB / 398.1 MB Notification: Performance of pre-optimization done (n=35): time 2.345e-06/0.3434, allocations: 0 / 491.4 MB, free: 9.832 MB / 398.1 MB Notification: Performance of matching and sorting (n=45): time 0.01149/0.3549, allocations: 2.327 MB / 493.8 MB, free: 7.465 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.981e-05/0.3549, allocations: 59.34 kB / 493.8 MB, free: 7.395 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003684/0.3553, allocations: 304.5 kB / 494.1 MB, free: 7.094 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.068e-05/0.3553, allocations: 33.7 kB / 494.1 MB, free: 7.055 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001871/0.3555, allocations: 232.5 kB / 494.4 MB, free: 6.82 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001411/0.3557, allocations: 170.6 kB / 494.5 MB, free: 6.652 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001413/0.3558, allocations: 98.3 kB / 494.6 MB, free: 6.551 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002673/0.3561, allocations: 342.8 kB / 495 MB, free: 6.207 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002731/0.3563, allocations: 157.2 kB / 495.1 MB, free: 6.055 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003598/0.3567, allocations: 272.7 kB / 495.4 MB, free: 5.738 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006578/0.3574, allocations: 472.2 kB / 495.9 MB, free: 5.227 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.3574, allocations: 4 kB / 495.9 MB, free: 5.223 MB / 398.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001078/0.3584, allocations: 0.5883 MB / 496.4 MB, free: 4.621 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.248e-05/0.3585, allocations: 16.03 kB / 496.5 MB, free: 4.605 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.3585, allocations: 4 kB / 496.5 MB, free: 4.602 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008126/0.3666, allocations: 1.84 MB / 498.3 MB, free: 2.773 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004534/0.3671, allocations: 115.8 kB / 498.4 MB, free: 2.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002224/0.3693, allocations: 2.45 MB / 0.4891 GB, free: 44 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002986/0.3696, allocations: 16 kB / 0.4891 GB, free: 28 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.584e-05/0.3696, allocations: 20 kB / 0.4892 GB, free: 8 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.000275/0.3699, allocations: 185.8 kB / 0.4893 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.251e-05/0.37, allocations: 47.77 kB / 0.4894 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001277/0.3713, allocations: 0.8725 MB / 0.4902 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-05/0.3713, allocations: 4 kB / 0.4902 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.974e-06/0.3713, allocations: 0 / 0.4902 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001156/0.3724, allocations: 0.9709 MB / 0.4912 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002084/0.3745, allocations: 1.491 MB / 0.4926 GB, free: 12.29 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.481e-06/0.3745, allocations: 4.031 kB / 0.4926 GB, free: 12.29 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003113/0.3748, allocations: 75.91 kB / 0.4927 GB, free: 12.21 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003321/0.3781, allocations: 0.6179 MB / 0.4933 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.795e-05/0.3782, allocations: 15.94 kB / 0.4933 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001079/0.3793, allocations: 1.3 MB / 0.4946 GB, free: 10.22 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.52e-06/0.3793, allocations: 7.969 kB / 0.4946 GB, free: 10.21 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001587/0.3809, allocations: 1.254 MB / 0.4958 GB, free: 8.93 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.297e-05/0.3809, allocations: 39.66 kB / 0.4959 GB, free: 8.891 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.764e-05/0.381, allocations: 12 kB / 0.4959 GB, free: 8.879 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002277/0.3812, allocations: 15.94 kB / 0.4959 GB, free: 8.863 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.048e-05/0.3813, allocations: 27.94 kB / 0.4959 GB, free: 8.836 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.166e-05/0.3813, allocations: 15.98 kB / 0.4959 GB, free: 8.82 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002348/0.3816, allocations: 219.1 kB / 0.4962 GB, free: 8.605 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3816, allocations: 0 / 0.4962 GB, free: 8.605 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000779/0.3823, allocations: 223.8 kB / 0.4964 GB, free: 8.387 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.00242/0.3847, allocations: 1.98 MB / 0.4983 GB, free: 6.375 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001219/0.386, allocations: 0.6798 MB / 0.499 GB, free: 5.68 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.386, allocations: 0 / 0.499 GB, free: 5.68 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009244/0.3869, allocations: 428.3 kB / 0.4994 GB, free: 5.258 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001168/0.3881, allocations: 242.6 kB / 0.4996 GB, free: 5.027 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006256/0.3943, allocations: 4.498 MB / 0.504 GB, free: 344 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005546/0.3949, allocations: 0.8362 MB / 0.5048 GB, free: 15.47 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003128/0.3952, allocations: 72.33 kB / 0.5049 GB, free: 15.4 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000212/0.3954, allocations: 159.4 kB / 0.505 GB, free: 15.24 MB / 430.1 MB Notification: Performance of SimCode: time 8.11e-07/0.3954, allocations: 3.938 kB / 0.505 GB, free: 15.24 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05329/0.4487, allocations: 18.03 MB / 0.5226 GB, free: 13.32 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.14/13.59, allocations: 2.812 kB / 0.5226 GB, free: 13.32 MB / 446.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: 18.017385644139722]