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.001286/0.001286, allocations: 111 kB / 21.18 MB, free: 0.6758 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.001427/0.001427, allocations: 209.2 kB / 24.47 MB, free: 3.977 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.5/1.5, allocations: 230.6 MB / 258.2 MB, free: 7.797 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: translateModel(Modelica.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_4.1.0_Modelica.Media.Examples.WaterIF97") translateModel(Modelica.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_4.1.0_Modelica.Media.Examples.WaterIF97") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00155/0.00155, allocations: 47.92 kB / 378.9 MB, free: 2.492 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2162/0.2178, allocations: 53.36 MB / 432.3 MB, free: 6.73 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01595/0.2337, allocations: 11.92 MB / 444.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0135/0.2472, allocations: 10.14 MB / 454.4 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.879e-05/0.2473, allocations: 3.938 kB / 454.4 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000302/0.2476, allocations: 55.66 kB / 454.4 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002801/0.2479, allocations: 87.36 kB / 454.5 MB, free: 464 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01222/0.2601, allocations: 5.043 MB / 459.5 MB, free: 11.41 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003509/0.2605, allocations: 231 kB / 459.8 MB, free: 11.19 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.188e-05/0.2605, allocations: 13.62 kB / 459.8 MB, free: 11.17 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004378/0.261, allocations: 187.3 kB / 460 MB, free: 10.98 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001187/0.2611, allocations: 67.75 kB / 460 MB, free: 10.92 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.562e-05/0.2611, allocations: 8 kB / 460 MB, free: 10.91 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01218/0.2733, allocations: 6.966 MB / 467 MB, free: 3.938 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.839e-05/0.2734, allocations: 31.89 kB / 467 MB, free: 3.906 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001032/0.2735, allocations: 67.67 kB / 467.1 MB, free: 3.84 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005988/0.2795, allocations: 3.878 MB / 471 MB, free: 15.95 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.2795, allocations: 0 / 471 MB, free: 15.95 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.2795, allocations: 0 / 471 MB, free: 15.95 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.332e-06/0.2795, allocations: 0 / 471 MB, free: 15.95 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.005432/0.2849, allocations: 1.091 MB / 472.1 MB, free: 14.83 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.2849, allocations: 16.03 kB / 472.1 MB, free: 14.81 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005118/0.2854, allocations: 44.84 kB / 472.1 MB, free: 14.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000349/0.2858, allocations: 174.2 kB / 472.3 MB, free: 14.57 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.152e-05/0.2858, allocations: 12.66 kB / 472.3 MB, free: 14.56 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.646e-05/0.2859, allocations: 12.38 kB / 472.3 MB, free: 14.55 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001468/0.2873, allocations: 444.2 kB / 472.8 MB, free: 14.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.659e-05/0.2874, allocations: 0 / 472.8 MB, free: 14.07 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.626e-05/0.2874, allocations: 11.94 kB / 472.8 MB, free: 14.06 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.585e-06/0.2874, allocations: 4 kB / 472.8 MB, free: 14.06 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001569/0.289, allocations: 351.6 kB / 473.1 MB, free: 13.71 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.001451/0.2904, allocations: 0.9933 MB / 474.1 MB, free: 12.66 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009395/0.2914, allocations: 271.7 kB / 474.4 MB, free: 12.37 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003031/0.2917, allocations: 114.5 kB / 474.5 MB, free: 12.25 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0968/0.3885, allocations: 26.12 MB / 0.4889 GB, free: 2.102 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.551e-05/0.3885, allocations: 42.5 kB / 0.4889 GB, free: 2.051 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 2.204e-06/0.3885, allocations: 0 / 0.4889 GB, free: 2.051 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.007613/0.3961, allocations: 1.507 MB / 0.4904 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.753e-05/0.3962, allocations: 110.9 kB / 0.4905 GB, free: 384 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001134/0.3963, allocations: 117.8 kB / 0.4906 GB, free: 256 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.422e-05/0.3964, allocations: 37.64 kB / 0.4906 GB, free: 212 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.986e-05/0.3964, allocations: 108.6 kB / 0.4907 GB, free: 100 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001307/0.3966, allocations: 123.1 kB / 0.4909 GB, free: 15.97 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001344/0.3967, allocations: 65.69 kB / 0.4909 GB, free: 15.9 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.3969, allocations: 326.8 kB / 0.4912 GB, free: 15.57 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004288/0.3973, allocations: 135.7 kB / 0.4914 GB, free: 15.44 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004764/0.3978, allocations: 202.7 kB / 0.4916 GB, free: 15.22 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008882/0.3986, allocations: 342.6 kB / 0.4919 GB, free: 14.86 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.3986, allocations: 4 kB / 0.4919 GB, free: 14.86 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001188/0.3998, allocations: 425.8 kB / 0.4923 GB, free: 14.43 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.3999, allocations: 4 kB / 0.4923 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/0.3999, allocations: 4.375 kB / 0.4923 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002558/0.4001, allocations: 48.98 kB / 0.4924 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005339/0.4007, allocations: 87.88 kB / 0.4924 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004345/0.4011, allocations: 0.5407 MB / 0.493 GB, free: 13.72 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000317/0.4014, allocations: 27.91 kB / 0.493 GB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.014e-05/0.4014, allocations: 16 kB / 0.493 GB, free: 13.68 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.0001657/0.4016, allocations: 145.8 kB / 0.4931 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001102/0.4017, allocations: 19.89 kB / 0.4932 GB, free: 13.51 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002405/0.4041, allocations: 1.49 MB / 0.4946 GB, free: 12.01 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.707e-05/0.4042, allocations: 23.91 kB / 0.4946 GB, free: 11.99 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.648e-06/0.4042, allocations: 0 / 0.4946 GB, free: 11.99 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.508e-06/0.4042, allocations: 3.984 kB / 0.4946 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003211/0.4074, allocations: 1.908 MB / 0.4965 GB, free: 10.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.4074, allocations: 0 / 0.4965 GB, free: 10.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005074/0.4079, allocations: 87.86 kB / 0.4966 GB, free: 9.934 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003499/0.4082, allocations: 72.75 kB / 0.4967 GB, free: 9.859 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.006e-05/0.4083, allocations: 12.11 kB / 0.4967 GB, free: 9.848 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004153/0.4087, allocations: 0.5914 MB / 0.4973 GB, free: 9.23 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.4087, allocations: 0 / 0.4973 GB, free: 9.23 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002487/0.4112, allocations: 1.745 MB / 0.499 GB, free: 7.457 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.867e-05/0.4112, allocations: 51.53 kB / 0.499 GB, free: 7.406 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.518e-05/0.4113, allocations: 12 kB / 0.499 GB, free: 7.395 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004089/0.4117, allocations: 20.03 kB / 0.499 GB, free: 7.375 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.689e-05/0.4118, allocations: 35.88 kB / 0.4991 GB, free: 7.34 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.847e-05/0.4118, allocations: 15.98 kB / 0.4991 GB, free: 7.324 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.656e-05/0.4119, allocations: 95.27 kB / 0.4992 GB, free: 7.23 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4119, allocations: 4 kB / 0.4992 GB, free: 7.227 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002612/0.4145, allocations: 0.9708 MB / 0.5001 GB, free: 6.254 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.00388/0.4184, allocations: 1.148 MB / 0.5013 GB, free: 5.094 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001489/0.4199, allocations: 0.6131 MB / 0.5018 GB, free: 4.48 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.4199, allocations: 0 / 0.5018 GB, free: 4.48 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008719/0.4207, allocations: 469.1 kB / 0.5023 GB, free: 4.023 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000807/0.4216, allocations: 87.23 kB / 0.5024 GB, free: 3.941 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002558/0.4241, allocations: 1.337 MB / 0.5037 GB, free: 2.559 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002167/0.4243, allocations: 220.2 kB / 0.5039 GB, free: 2.324 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003659/0.4247, allocations: 137.7 kB / 0.504 GB, free: 2.191 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001421/0.4248, allocations: 39.42 kB / 0.5041 GB, free: 2.152 MB / 414.1 MB Notification: Performance of SimCode: time 5.91e-07/0.4248, allocations: 0 / 0.5041 GB, free: 2.152 MB / 414.1 MB Notification: Performance of Templates: time 0.2157/0.6405, allocations: 37 MB / 0.5402 GB, free: 109.6 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.makefile [Timeout 660] (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 & ./Modelica_4.1.0_Modelica.Media.Examples.WaterIF97 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.pipe 2>&1) [Timeout 480] 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: 6.991619651002111]