Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.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.001319/0.001319, 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.001468/0.001468, allocations: 204.9 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.39/1.39, 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.WaterIF97,fileNamePrefix="Modelica_4_1_0_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_4_1_0_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001486/0.001486, allocations: 51.92 kB / 377.7 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2263/0.2278, allocations: 53.36 MB / 431.1 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01564/0.2434, allocations: 11.92 MB / 443 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01318/0.2566, allocations: 10.13 MB / 453.1 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001052/0.2567, allocations: 4 kB / 453.1 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003084/0.257, allocations: 67.58 kB / 453.2 MB, free: 460 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002736/0.2573, allocations: 87.38 kB / 453.3 MB, free: 372 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01241/0.2697, allocations: 5.036 MB / 458.3 MB, free: 11.33 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004105/0.2701, allocations: 235 kB / 458.5 MB, free: 11.1 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.977e-05/0.2702, allocations: 13.56 kB / 458.5 MB, free: 11.08 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004479/0.2706, allocations: 183.4 kB / 458.7 MB, free: 10.9 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001449/0.2708, allocations: 71.75 kB / 458.8 MB, free: 10.83 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.035e-05/0.2708, allocations: 8 kB / 458.8 MB, free: 10.82 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01272/0.2835, allocations: 6.97 MB / 465.8 MB, free: 3.848 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.91e-05/0.2836, allocations: 27.91 kB / 465.8 MB, free: 3.82 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001229/0.2837, allocations: 63.72 kB / 465.9 MB, free: 3.758 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009214/0.2929, allocations: 3.882 MB / 469.7 MB, free: 15.87 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.603e-06/0.293, allocations: 0 / 469.7 MB, free: 15.87 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.293, allocations: 4 kB / 469.7 MB, free: 15.86 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.196e-05/0.293, allocations: 0 / 469.7 MB, free: 15.86 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.004609/0.2976, allocations: 1.088 MB / 470.8 MB, free: 14.74 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.2976, allocations: 11.97 kB / 470.8 MB, free: 14.73 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.765e-05/0.2977, allocations: 54.73 kB / 470.9 MB, free: 14.67 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000457/0.2981, allocations: 48.84 kB / 470.9 MB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003113/0.2985, allocations: 162.3 kB / 471.1 MB, free: 14.44 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.829e-05/0.2985, allocations: 12.66 kB / 471.1 MB, free: 14.43 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.972e-05/0.2985, allocations: 24.11 kB / 471.1 MB, free: 14.4 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001326/0.2999, allocations: 436.2 kB / 471.6 MB, free: 13.93 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.243e-05/0.2999, allocations: 3.938 kB / 471.6 MB, free: 13.93 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.785e-05/0.2999, allocations: 12 kB / 471.6 MB, free: 13.92 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.313e-06/0.2999, allocations: 4 kB / 471.6 MB, free: 13.91 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001427/0.3014, allocations: 351.6 kB / 471.9 MB, free: 13.57 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001425/0.3028, allocations: 1.036 MB / 473 MB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000843/0.3036, allocations: 265.9 kB / 473.2 MB, free: 12.18 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000276/0.3039, allocations: 114.9 kB / 473.3 MB, free: 12.06 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08975/0.3937, allocations: 26.11 MB / 499.4 MB, free: 1.918 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.749e-05/0.3937, allocations: 42.5 kB / 499.5 MB, free: 1.867 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 2.294e-06/0.3937, allocations: 0 / 499.5 MB, free: 1.867 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.007126/0.4008, allocations: 1.5 MB / 0.4892 GB, free: 340 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.893e-05/0.4009, allocations: 114.9 kB / 0.4894 GB, free: 200 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00012/0.401, allocations: 121.7 kB / 0.4895 GB, free: 68 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.838e-05/0.4011, allocations: 29.7 kB / 0.4895 GB, free: 32 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.935e-05/0.4012, allocations: 112.6 kB / 0.4896 GB, free: 15.92 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001155/0.4013, allocations: 123 kB / 0.4897 GB, free: 15.8 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001287/0.4014, allocations: 69.69 kB / 0.4898 GB, free: 15.72 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001438/0.4015, allocations: 326.8 kB / 0.4901 GB, free: 15.39 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004082/0.4019, allocations: 147.6 kB / 0.4902 GB, free: 15.25 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004577/0.4024, allocations: 194.8 kB / 0.4904 GB, free: 15.04 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000834/0.4032, allocations: 342.6 kB / 0.4908 GB, free: 14.68 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/0.4032, allocations: 4.375 kB / 0.4908 GB, free: 14.67 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001122/0.4044, allocations: 426 kB / 0.4912 GB, free: 14.25 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.4044, allocations: 4 kB / 0.4912 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.365e-06/0.4044, allocations: 4 kB / 0.4912 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002481/0.4046, allocations: 40.94 kB / 0.4912 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004811/0.4051, allocations: 95.86 kB / 0.4913 GB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004317/0.4056, allocations: 0.5407 MB / 0.4918 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002914/0.4058, allocations: 23.98 kB / 0.4919 GB, free: 13.51 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.796e-05/0.4059, allocations: 15.98 kB / 0.4919 GB, free: 13.5 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (medium.phase,state.phase,state2.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001785/0.4061, allocations: 141.8 kB / 0.492 GB, free: 13.35 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001019/0.4062, allocations: 15.91 kB / 0.492 GB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002278/0.4084, allocations: 1.498 MB / 0.4935 GB, free: 11.83 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-05/0.4085, allocations: 19.97 kB / 0.4935 GB, free: 11.81 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.4085, allocations: 0 / 0.4935 GB, free: 11.81 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.4085, allocations: 3.938 kB / 0.4935 GB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003156/0.4116, allocations: 1.978 MB / 0.4954 GB, free: 9.758 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.058e-05/0.4116, allocations: 7.984 kB / 0.4954 GB, free: 9.75 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004621/0.4121, allocations: 79.86 kB / 0.4955 GB, free: 9.672 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003344/0.4124, allocations: 72.75 kB / 0.4956 GB, free: 9.598 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.038e-05/0.4125, allocations: 19.98 kB / 0.4956 GB, free: 9.578 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004265/0.4129, allocations: 0.5954 MB / 0.4962 GB, free: 8.957 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.4129, allocations: 0 / 0.4962 GB, free: 8.957 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002386/0.4153, allocations: 1.737 MB / 0.4979 GB, free: 7.191 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.263e-05/0.4154, allocations: 59.5 kB / 0.4979 GB, free: 7.133 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.152e-05/0.4154, allocations: 8 kB / 0.498 GB, free: 7.125 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003813/0.4158, allocations: 27.92 kB / 0.498 GB, free: 7.098 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.378e-05/0.4159, allocations: 31.94 kB / 0.498 GB, free: 7.066 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.575e-05/0.4159, allocations: 15.98 kB / 0.498 GB, free: 7.051 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.306e-05/0.416, allocations: 91.27 kB / 0.4981 GB, free: 6.961 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.416, allocations: 4 kB / 0.4981 GB, free: 6.957 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002718/0.4187, allocations: 0.9631 MB / 0.4991 GB, free: 5.992 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (medium.p,medium.h,V) * Number of discrete variables: 11 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.region3boundary,$cse6.region3boundary,medium.phase,$cse1.phase,$cse1.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.007081/0.4258, allocations: 3.343 MB / 0.5023 GB, free: 2.602 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001511/0.4273, allocations: 0.6046 MB / 0.5029 GB, free: 1.996 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.4273, allocations: 0 / 0.5029 GB, free: 1.996 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008356/0.4281, allocations: 477 kB / 0.5034 GB, free: 1.531 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007957/0.4289, allocations: 83 kB / 0.5034 GB, free: 1.453 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007859/0.4368, allocations: 3.94 MB / 0.5073 GB, free: 13.35 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002152/0.437, allocations: 208.3 kB / 0.5075 GB, free: 13.12 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003922/0.4374, allocations: 141.7 kB / 0.5076 GB, free: 12.98 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000246/0.4376, allocations: 131.3 kB / 0.5077 GB, free: 12.86 MB / 430.1 MB Notification: Performance of SimCode: time 1.422e-06/0.4376, allocations: 0 / 0.5077 GB, free: 12.86 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2483/0.6859, allocations: 41.6 MB / 0.5484 GB, free: 85.62 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.11/14.8, allocations: 2.656 kB / 0.5484 GB, free: 85.62 MB / 446.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Media.Examples.WaterIF97_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Media_Examples_WaterIF97_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Media_Examples_WaterIF97.fmu > Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.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.518338068010053]