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.001427/0.001427, allocations: 118.9 kB / 17.79 MB, free: 5.285 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.001562/0.001562, allocations: 199.3 kB / 20.74 MB, free: 2.344 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.505/1.505, allocations: 230.6 MB / 254.1 MB, free: 15.1 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.001808/0.001808, allocations: 51.92 kB / 373.5 MB, free: 9.754 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1054, allocations: 53.33 MB / 426.8 MB, free: 4.332 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.1975/0.3029, allocations: 13.06 MB / 439.8 MB, free: 4.715 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01274/0.3156, allocations: 11.57 MB / 451.4 MB, free: 12.94 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000125/0.3157, allocations: 1.125 kB / 451.4 MB, free: 12.94 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003438/0.3161, allocations: 72.47 kB / 451.5 MB, free: 12.9 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003018/0.3164, allocations: 88.06 kB / 451.6 MB, free: 12.84 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01528/0.3317, allocations: 5.092 MB / 456.7 MB, free: 10.62 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000408/0.3321, allocations: 229.5 kB / 456.9 MB, free: 10.5 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.383e-05/0.3321, allocations: 5.609 kB / 456.9 MB, free: 10.49 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000446/0.3326, allocations: 204.8 kB / 457.1 MB, free: 10.36 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001288/0.3327, allocations: 79.84 kB / 457.2 MB, free: 10.32 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.291e-05/0.3327, allocations: 7.75 kB / 457.2 MB, free: 10.32 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01499/0.3477, allocations: 7.001 MB / 464.2 MB, free: 6.648 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001012/0.3478, allocations: 25.91 kB / 464.2 MB, free: 6.629 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001439/0.348, allocations: 77.03 kB / 464.3 MB, free: 6.586 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009125/0.3571, allocations: 3.883 MB / 468.2 MB, free: 4.102 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.3571, allocations: 0 / 468.2 MB, free: 4.102 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3571, allocations: 1.125 kB / 468.2 MB, free: 4.102 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.101e-06/0.3571, allocations: 4 kB / 468.2 MB, free: 4.098 MB / 366.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.005327/0.3624, allocations: 1.169 MB / 469.3 MB, free: 3.266 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.464e-05/0.3625, allocations: 9.344 kB / 469.3 MB, free: 3.266 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005197/0.363, allocations: 50.34 kB / 469.4 MB, free: 3.246 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003141/0.3633, allocations: 226.8 kB / 469.6 MB, free: 3 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.072e-05/0.3633, allocations: 10.12 kB / 469.6 MB, free: 2.996 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.149e-05/0.3634, allocations: 18.28 kB / 469.6 MB, free: 2.988 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001402/0.3648, allocations: 381.3 kB / 470 MB, free: 2.719 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.73e-05/0.3648, allocations: 2.141 kB / 470 MB, free: 2.719 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.029e-05/0.3648, allocations: 10.22 kB / 470 MB, free: 2.711 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.3648, allocations: 7.75 kB / 470 MB, free: 2.707 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001563/0.3664, allocations: 353.7 kB / 470.4 MB, free: 2.539 MB / 366.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.001571/0.368, allocations: 1.176 MB / 471.6 MB, free: 1.371 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009119/0.3689, allocations: 281 kB / 471.8 MB, free: 1.188 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003009/0.3692, allocations: 112.9 kB / 471.9 MB, free: 1.117 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1161/0.4853, allocations: 52.8 MB / 0.5124 GB, free: 7.855 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.603e-05/0.4854, allocations: 38.5 kB / 0.5125 GB, free: 7.809 MB / 430.1 MB Notification: Performance of pre-optimization done (n=23): time 1.873e-06/0.4854, allocations: 4 kB / 0.5125 GB, free: 7.805 MB / 430.1 MB Notification: Performance of matching and sorting (n=33): time 0.007555/0.4929, allocations: 1.574 MB / 0.514 GB, free: 6.176 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.032e-05/0.493, allocations: 110.8 kB / 0.5141 GB, free: 6.043 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001273/0.4931, allocations: 125.7 kB / 0.5142 GB, free: 5.91 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.421e-05/0.4932, allocations: 29.7 kB / 0.5143 GB, free: 5.875 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.996e-05/0.4933, allocations: 112.5 kB / 0.5144 GB, free: 5.762 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001212/0.4934, allocations: 123 kB / 0.5145 GB, free: 5.641 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001327/0.4935, allocations: 65.69 kB / 0.5146 GB, free: 5.57 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.4937, allocations: 326.8 kB / 0.5149 GB, free: 5.242 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004339/0.4941, allocations: 135.7 kB / 0.515 GB, free: 5.109 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004935/0.4946, allocations: 202.5 kB / 0.5152 GB, free: 4.887 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009303/0.4955, allocations: 354.6 kB / 0.5155 GB, free: 4.516 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.4955, allocations: 3.938 kB / 0.5155 GB, free: 4.512 MB / 430.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001208/0.4967, allocations: 430.9 kB / 0.5159 GB, free: 4.082 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.935e-05/0.4968, allocations: 4.625 kB / 0.5159 GB, free: 4.078 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.207e-06/0.4968, allocations: 7.984 kB / 0.516 GB, free: 4.07 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000261/0.497, allocations: 36.84 kB / 0.516 GB, free: 4.031 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005087/0.4975, allocations: 95.8 kB / 0.5161 GB, free: 3.938 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004621/0.498, allocations: 0.5447 MB / 0.5166 GB, free: 3.367 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003057/0.4983, allocations: 19.92 kB / 0.5166 GB, free: 3.348 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.203e-05/0.4983, allocations: 19.98 kB / 0.5167 GB, free: 3.328 MB / 430.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.0001613/0.4985, allocations: 138.5 kB / 0.5168 GB, free: 3.184 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001086/0.4986, allocations: 20 kB / 0.5168 GB, free: 3.164 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002496/0.5011, allocations: 1.445 MB / 0.5182 GB, free: 1.715 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.119e-05/0.5011, allocations: 23.91 kB / 0.5182 GB, free: 1.691 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.5012, allocations: 0 / 0.5182 GB, free: 1.691 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.368e-06/0.5012, allocations: 0 / 0.5182 GB, free: 1.691 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003426/0.5046, allocations: 1.976 MB / 0.5202 GB, free: 15.64 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.673e-06/0.5046, allocations: 0 / 0.5202 GB, free: 15.64 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004843/0.5051, allocations: 83.86 kB / 0.5202 GB, free: 15.56 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003398/0.5054, allocations: 76.86 kB / 0.5203 GB, free: 15.48 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.254e-05/0.5055, allocations: 12.36 kB / 0.5203 GB, free: 15.47 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004396/0.5059, allocations: 0.5875 MB / 0.5209 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/0.5059, allocations: 3.938 kB / 0.5209 GB, free: 14.85 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00251/0.5084, allocations: 1.695 MB / 0.5226 GB, free: 13.12 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001123/0.5085, allocations: 132.6 kB / 0.5227 GB, free: 12.98 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.886e-05/0.5086, allocations: 12 kB / 0.5227 GB, free: 12.96 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003922/0.509, allocations: 28.02 kB / 0.5227 GB, free: 12.94 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.778e-05/0.509, allocations: 31.89 kB / 0.5228 GB, free: 12.91 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.841e-05/0.5091, allocations: 16 kB / 0.5228 GB, free: 12.89 MB / 446.1 MB Notification: Performance of sorting global known variables: time 6.785e-05/0.5092, allocations: 91.27 kB / 0.5229 GB, free: 12.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.5092, allocations: 0 / 0.5229 GB, free: 12.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003619/0.5128, allocations: 0.9747 MB / 0.5238 GB, free: 11.82 MB / 446.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.005797/0.5186, allocations: 1.153 MB / 0.5249 GB, free: 10.68 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001726/0.5203, allocations: 0.6007 MB / 0.5255 GB, free: 10.08 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.024e-06/0.5203, allocations: 4.438 kB / 0.5255 GB, free: 10.08 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008585/0.5212, allocations: 448.6 kB / 0.526 GB, free: 9.641 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008453/0.522, allocations: 78.5 kB / 0.526 GB, free: 9.566 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00267/0.5247, allocations: 1.304 MB / 0.5273 GB, free: 8.23 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005015/0.5252, allocations: 0.8139 MB / 0.5281 GB, free: 7.391 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003829/0.5256, allocations: 138.8 kB / 0.5282 GB, free: 7.258 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001509/0.5257, allocations: 35.42 kB / 0.5283 GB, free: 7.223 MB / 446.1 MB Notification: Performance of SimCode: time 9.82e-07/0.5257, allocations: 7.938 kB / 0.5283 GB, free: 7.215 MB / 446.1 MB Notification: Performance of Templates: time 0.05434/0.5801, allocations: 36.37 MB / 0.5638 GB, free: 2.84 MB / 478.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins/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: 7.145701341331005]