Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.WaterIF97.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.001268/0.001268, allocations: 109.1 kB / 21.22 MB, free: 0.6484 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.001386/0.001386, allocations: 209.4 kB / 24.51 MB, free: 3.941 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.34/1.34, allocations: 230.5 MB / 258.2 MB, free: 7.805 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.WaterIF97,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_WaterIF97",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_WaterIF97",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001752/0.001752, allocations: 71.83 kB / 378.5 MB, free: 2.855 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2211/0.2228, allocations: 53.4 MB / 431.9 MB, free: 6.484 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01497/0.2378, allocations: 11.91 MB / 443.8 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01221/0.25, allocations: 10.12 MB / 453.9 MB, free: 388 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.221e-05/0.2501, allocations: 4 kB / 453.9 MB, free: 384 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000295/0.2504, allocations: 59.59 kB / 454 MB, free: 324 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002652/0.2506, allocations: 83.42 kB / 454.1 MB, free: 240 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01179/0.2624, allocations: 5.047 MB / 459.1 MB, free: 11.19 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003616/0.2628, allocations: 234.9 kB / 459.3 MB, free: 10.96 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.025e-05/0.2629, allocations: 13.62 kB / 459.3 MB, free: 10.94 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004104/0.2633, allocations: 187.3 kB / 459.5 MB, free: 10.76 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001308/0.2634, allocations: 71.75 kB / 459.6 MB, free: 10.69 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.425e-05/0.2634, allocations: 8 kB / 459.6 MB, free: 10.68 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01212/0.2755, allocations: 6.966 MB / 466.6 MB, free: 3.707 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.454e-05/0.2756, allocations: 31.91 kB / 466.6 MB, free: 3.676 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001255/0.2758, allocations: 63.72 kB / 466.7 MB, free: 3.613 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008187/0.2839, allocations: 3.878 MB / 470.5 MB, free: 15.73 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.2839, allocations: 4 kB / 470.6 MB, free: 15.72 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.284, allocations: 0 / 470.6 MB, free: 15.72 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.284, allocations: 0 / 470.6 MB, free: 15.72 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.0045/0.2885, allocations: 1.084 MB / 471.6 MB, free: 14.61 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.2885, allocations: 15.97 kB / 471.6 MB, free: 14.59 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.021e-05/0.2885, allocations: 12.47 kB / 471.7 MB, free: 14.58 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.024e-05/0.2886, allocations: 50.73 kB / 471.7 MB, free: 14.52 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004546/0.289, allocations: 44.84 kB / 471.8 MB, free: 14.48 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000255/0.2893, allocations: 166.3 kB / 471.9 MB, free: 14.29 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.509e-05/0.2893, allocations: 12.31 kB / 471.9 MB, free: 14.28 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.482e-05/0.2894, allocations: 27.88 kB / 472 MB, free: 14.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001274/0.2906, allocations: 428.6 kB / 472.4 MB, free: 13.79 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.602e-05/0.2907, allocations: 11.94 kB / 472.4 MB, free: 13.78 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.497e-05/0.2907, allocations: 7.984 kB / 472.4 MB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.2907, allocations: 4 kB / 472.4 MB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001377/0.2921, allocations: 351.6 kB / 472.7 MB, free: 13.42 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.001332/0.2934, allocations: 1.032 MB / 473.8 MB, free: 12.32 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008357/0.2942, allocations: 275.1 kB / 474 MB, free: 12.03 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002818/0.2945, allocations: 118.8 kB / 474.2 MB, free: 11.9 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08543/0.38, allocations: 26.1 MB / 0.4885 GB, free: 1.766 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.967e-05/0.38, allocations: 42.5 kB / 0.4886 GB, free: 1.715 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 2.285e-06/0.38, allocations: 0 / 0.4886 GB, free: 1.715 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.00667/0.3867, allocations: 1.497 MB / 0.49 GB, free: 184 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.853e-05/0.3867, allocations: 110.8 kB / 0.4901 GB, free: 48 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001194/0.3869, allocations: 117.8 kB / 0.4903 GB, free: 15.92 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.409e-05/0.3869, allocations: 29.7 kB / 0.4903 GB, free: 15.89 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.863e-05/0.387, allocations: 116.5 kB / 0.4904 GB, free: 15.77 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001032/0.3871, allocations: 123 kB / 0.4905 GB, free: 15.65 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001239/0.3872, allocations: 69.69 kB / 0.4906 GB, free: 15.57 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.3873, allocations: 322.8 kB / 0.4909 GB, free: 15.25 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003798/0.3877, allocations: 151.6 kB / 0.491 GB, free: 15.1 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004244/0.3881, allocations: 194.8 kB / 0.4912 GB, free: 14.89 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007806/0.3889, allocations: 338.6 kB / 0.4915 GB, free: 14.53 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3889, allocations: 0 / 0.4915 GB, free: 14.53 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001044/0.3899, allocations: 426 kB / 0.4919 GB, free: 14.11 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/0.39, allocations: 8 kB / 0.492 GB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.39, allocations: 224 / 0.492 GB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002235/0.3902, allocations: 44.77 kB / 0.492 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004605/0.3907, allocations: 96.25 kB / 0.4921 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003899/0.391, allocations: 0.5407 MB / 0.4926 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002695/0.3913, allocations: 23.97 kB / 0.4926 GB, free: 13.37 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.792e-05/0.3913, allocations: 16 kB / 0.4927 GB, free: 13.35 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.0001484/0.3915, allocations: 149.3 kB / 0.4928 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.695e-05/0.3916, allocations: 15.91 kB / 0.4928 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002137/0.3937, allocations: 1.505 MB / 0.4943 GB, free: 11.67 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.01e-05/0.3938, allocations: 15.97 kB / 0.4943 GB, free: 11.66 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.3938, allocations: 4 kB / 0.4943 GB, free: 11.65 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.3938, allocations: 4.031 kB / 0.4943 GB, free: 11.65 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00292/0.3967, allocations: 1.974 MB / 0.4962 GB, free: 9.605 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.734e-06/0.3967, allocations: 7.938 kB / 0.4962 GB, free: 9.598 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004275/0.3971, allocations: 79.86 kB / 0.4963 GB, free: 9.52 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003204/0.3974, allocations: 68.92 kB / 0.4964 GB, free: 9.449 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.616e-05/0.3975, allocations: 19.98 kB / 0.4964 GB, free: 9.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004005/0.3979, allocations: 0.5952 MB / 0.497 GB, free: 8.809 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.798e-06/0.3979, allocations: 4.031 kB / 0.497 GB, free: 8.805 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002244/0.4001, allocations: 1.737 MB / 0.4987 GB, free: 7.035 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.973e-05/0.4002, allocations: 51.53 kB / 0.4987 GB, free: 6.984 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.997e-05/0.4002, allocations: 11.94 kB / 0.4987 GB, free: 6.973 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003547/0.4006, allocations: 28.03 kB / 0.4988 GB, free: 6.945 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.148e-05/0.4007, allocations: 31.94 kB / 0.4988 GB, free: 6.914 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.373e-05/0.4007, allocations: 19.98 kB / 0.4988 GB, free: 6.895 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.039e-05/0.4008, allocations: 91.27 kB / 0.4989 GB, free: 6.805 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4008, allocations: 0 / 0.4989 GB, free: 6.805 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002584/0.4033, allocations: 0.9669 MB / 0.4999 GB, free: 5.836 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.006768/0.4101, allocations: 3.341 MB / 0.5031 GB, free: 2.453 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001401/0.4115, allocations: 0.6007 MB / 0.5037 GB, free: 1.852 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.4115, allocations: 4 kB / 0.5037 GB, free: 1.848 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007648/0.4123, allocations: 472.6 kB / 0.5042 GB, free: 1.387 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007356/0.413, allocations: 80.64 kB / 0.5042 GB, free: 1.309 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007121/0.4201, allocations: 3.954 MB / 0.5081 GB, free: 13.2 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002053/0.4203, allocations: 208.3 kB / 0.5083 GB, free: 12.97 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003543/0.4207, allocations: 137.7 kB / 0.5084 GB, free: 12.84 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002382/0.4209, allocations: 131.4 kB / 0.5086 GB, free: 12.71 MB / 430.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4209, allocations: 0 / 0.5086 GB, free: 12.71 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2554/0.6764, allocations: 41.3 MB / 0.5489 GB, free: 85.67 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.8/15.48, allocations: 13.23 kB / 0.5489 GB, free: 85.66 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.WaterIF97.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Media.Examples.WaterIF97_res.mat --tempDir=temp_Modelica_trunk_Modelica_Media_Examples_WaterIF97_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Media_Examples_WaterIF97.fmu > Modelica_trunk_Modelica.Media.Examples.WaterIF97.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.374315076041967]