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.001458/0.001458, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001602/0.001602, allocations: 214.7 kB / 24.52 MB, free: 3.914 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.353/1.353, allocations: 230.6 MB / 258.3 MB, free: 7.773 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_4_1_0_Modelica_Media_Examples_WaterIF97",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001462/0.001462, allocations: 43.94 kB / 378.5 MB, free: 3.016 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2316/0.233, allocations: 53.36 MB / 431.8 MB, free: 6.691 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01542/0.2484, allocations: 11.91 MB / 443.8 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01289/0.2613, allocations: 10.13 MB / 453.9 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001206/0.2614, allocations: 3.938 kB / 453.9 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003114/0.2618, allocations: 55.66 kB / 453.9 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002916/0.262, allocations: 91.36 kB / 454 MB, free: 440 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01174/0.2738, allocations: 5.046 MB / 459.1 MB, free: 11.39 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003425/0.2741, allocations: 231 kB / 459.3 MB, free: 11.16 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.491e-05/0.2742, allocations: 5.641 kB / 459.3 MB, free: 11.15 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004037/0.2746, allocations: 191.4 kB / 459.5 MB, free: 10.96 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001258/0.2747, allocations: 79.62 kB / 459.6 MB, free: 10.89 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.104e-05/0.2747, allocations: 8 kB / 459.6 MB, free: 10.88 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01113/0.2859, allocations: 6.966 MB / 466.5 MB, free: 3.906 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.38e-05/0.2859, allocations: 27.91 kB / 466.6 MB, free: 3.879 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.722e-05/0.286, allocations: 59.8 kB / 466.6 MB, free: 3.82 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006278/0.2923, allocations: 3.874 MB / 470.5 MB, free: 15.94 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.2923, allocations: 0 / 470.5 MB, free: 15.94 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.113e-06/0.2923, allocations: 0 / 470.5 MB, free: 15.94 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.491e-06/0.2923, allocations: 0 / 470.5 MB, free: 15.94 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.004269/0.2966, allocations: 1.095 MB / 471.6 MB, free: 14.81 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.2966, allocations: 8.031 kB / 471.6 MB, free: 14.8 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.347e-05/0.2966, allocations: 8.406 kB / 471.6 MB, free: 14.79 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.384e-05/0.2967, allocations: 54.67 kB / 471.7 MB, free: 14.73 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000455/0.2972, allocations: 48.84 kB / 471.7 MB, free: 14.68 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003081/0.2975, allocations: 162.3 kB / 471.9 MB, free: 14.5 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.715e-05/0.2975, allocations: 20.31 kB / 471.9 MB, free: 14.48 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.17e-05/0.2975, allocations: 15.94 kB / 471.9 MB, free: 14.46 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001341/0.2989, allocations: 436.3 kB / 472.3 MB, free: 14 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.609e-05/0.2989, allocations: 4 kB / 472.3 MB, free: 13.99 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.277e-05/0.2989, allocations: 8 kB / 472.3 MB, free: 13.98 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/0.2989, allocations: 4 kB / 472.3 MB, free: 13.98 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001389/0.3003, allocations: 359.5 kB / 472.7 MB, free: 13.63 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.001342/0.3017, allocations: 1.028 MB / 473.7 MB, free: 12.53 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000839/0.3025, allocations: 275.8 kB / 474 MB, free: 12.23 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002794/0.3028, allocations: 110.8 kB / 474.1 MB, free: 12.12 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08603/0.3888, allocations: 26.11 MB / 0.4885 GB, free: 1.973 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.548e-05/0.3889, allocations: 38.56 kB / 0.4885 GB, free: 1.926 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 2.144e-06/0.3889, allocations: 4 kB / 0.4885 GB, free: 1.922 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.006698/0.3956, allocations: 1.503 MB / 0.49 GB, free: 392 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.645e-05/0.3956, allocations: 106.8 kB / 0.4901 GB, free: 260 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001076/0.3958, allocations: 125.7 kB / 0.4902 GB, free: 124 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.865e-05/0.3958, allocations: 29.7 kB / 0.4903 GB, free: 88 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.869e-05/0.3959, allocations: 108.6 kB / 0.4904 GB, free: 15.98 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001038/0.396, allocations: 131 kB / 0.4905 GB, free: 15.85 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001278/0.3961, allocations: 65.69 kB / 0.4905 GB, free: 15.78 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.3962, allocations: 326.8 kB / 0.4909 GB, free: 15.45 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003827/0.3966, allocations: 139.7 kB / 0.491 GB, free: 15.31 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004174/0.397, allocations: 194.8 kB / 0.4912 GB, free: 15.1 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007891/0.3978, allocations: 350.6 kB / 0.4915 GB, free: 14.73 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-06/0.3978, allocations: 384 / 0.4915 GB, free: 14.73 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001046/0.3989, allocations: 426 kB / 0.4919 GB, free: 14.3 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.252e-05/0.3989, allocations: 8 kB / 0.4919 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.583e-06/0.3989, allocations: 3.938 kB / 0.4919 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002326/0.3991, allocations: 40.77 kB / 0.492 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004792/0.3996, allocations: 87.88 kB / 0.4921 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004032/0.4, allocations: 0.5525 MB / 0.4926 GB, free: 13.59 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002732/0.4003, allocations: 23.97 kB / 0.4926 GB, free: 13.56 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.791e-05/0.4003, allocations: 12 kB / 0.4926 GB, free: 13.55 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.0001546/0.4005, allocations: 134.3 kB / 0.4928 GB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001016/0.4006, allocations: 23.89 kB / 0.4928 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002154/0.4027, allocations: 1.498 MB / 0.4942 GB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.363e-05/0.4028, allocations: 19.97 kB / 0.4943 GB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/0.4028, allocations: 4 kB / 0.4943 GB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.4028, allocations: 3.984 kB / 0.4943 GB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002943/0.4057, allocations: 1.97 MB / 0.4962 GB, free: 9.816 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.4057, allocations: 0 / 0.4962 GB, free: 9.816 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004416/0.4062, allocations: 91.98 kB / 0.4963 GB, free: 9.727 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003151/0.4065, allocations: 68.8 kB / 0.4963 GB, free: 9.656 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.549e-05/0.4065, allocations: 11.98 kB / 0.4964 GB, free: 9.645 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004029/0.4069, allocations: 0.5991 MB / 0.4969 GB, free: 9.02 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.4069, allocations: 0 / 0.4969 GB, free: 9.02 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002286/0.4092, allocations: 1.744 MB / 0.4986 GB, free: 7.25 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.176e-05/0.4093, allocations: 51.53 kB / 0.4987 GB, free: 7.199 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.958e-05/0.4093, allocations: 15.94 kB / 0.4987 GB, free: 7.184 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003585/0.4097, allocations: 20.03 kB / 0.4987 GB, free: 7.164 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.199e-05/0.4098, allocations: 31.94 kB / 0.4988 GB, free: 7.133 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.927e-05/0.4098, allocations: 23.92 kB / 0.4988 GB, free: 7.109 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.458e-05/0.4099, allocations: 91.27 kB / 0.4989 GB, free: 7.02 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4099, allocations: 0 / 0.4989 GB, free: 7.02 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002571/0.4124, allocations: 0.9708 MB / 0.4998 GB, free: 6.047 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.007055/0.4195, allocations: 3.335 MB / 0.5031 GB, free: 2.664 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001452/0.4209, allocations: 0.6005 MB / 0.5037 GB, free: 2.062 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.4209, allocations: 0 / 0.5037 GB, free: 2.062 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007706/0.4217, allocations: 481.3 kB / 0.5041 GB, free: 1.594 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007416/0.4225, allocations: 71.92 kB / 0.5042 GB, free: 1.523 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00776/0.4302, allocations: 3.959 MB / 0.508 GB, free: 13.4 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002059/0.4304, allocations: 212.3 kB / 0.5083 GB, free: 13.17 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003697/0.4308, allocations: 133.7 kB / 0.5084 GB, free: 13.04 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002414/0.431, allocations: 139.3 kB / 0.5085 GB, free: 12.91 MB / 430.1 MB Notification: Performance of SimCode: time 9.72e-07/0.431, allocations: 0 / 0.5085 GB, free: 12.91 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2641/0.6951, allocations: 41.3 MB / 0.5488 GB, free: 86.04 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.85/15.54, allocations: 19.33 kB / 0.5489 GB, free: 86.04 MB / 446.1 MB " [Timeout remaining time 644] (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: 18.454096955014393]