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.002189/0.002189, allocations: 112.5 kB / 18.45 MB, free: 4.562 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.002436/0.002436, allocations: 215.2 kB / 21.42 MB, free: 1.605 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.531/1.531, allocations: 230.6 MB / 254.8 MB, free: 15.07 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.001546/0.001546, allocations: 47.94 kB / 374.1 MB, free: 9.711 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1146, allocations: 53.33 MB / 427.5 MB, free: 4.281 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.2234/0.338, allocations: 13.05 MB / 440.5 MB, free: 4.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01368/0.3517, allocations: 11.59 MB / 452.1 MB, free: 12.88 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002349/0.3519, allocations: 4.938 kB / 452.1 MB, free: 12.88 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005158/0.3525, allocations: 71.08 kB / 452.2 MB, free: 12.84 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004406/0.3529, allocations: 81.09 kB / 452.3 MB, free: 12.79 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01914/0.372, allocations: 5.091 MB / 457.3 MB, free: 10.55 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004832/0.3725, allocations: 234.2 kB / 457.6 MB, free: 10.42 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.661e-05/0.3726, allocations: 4.422 kB / 457.6 MB, free: 10.41 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004799/0.3731, allocations: 204.9 kB / 457.8 MB, free: 10.29 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001402/0.3732, allocations: 75.66 kB / 457.9 MB, free: 10.24 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.246e-05/0.3732, allocations: 8.156 kB / 457.9 MB, free: 10.24 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01646/0.3897, allocations: 7.001 MB / 464.9 MB, free: 6.574 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001102/0.3898, allocations: 21.83 kB / 464.9 MB, free: 6.559 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001841/0.39, allocations: 80.27 kB / 465 MB, free: 6.512 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01207/0.4021, allocations: 3.88 MB / 468.8 MB, free: 4.031 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.476e-06/0.4021, allocations: 0 / 468.8 MB, free: 4.031 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.875e-06/0.4021, allocations: 4 kB / 468.8 MB, free: 4.027 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.063e-05/0.4021, allocations: 1.312 kB / 468.8 MB, free: 4.027 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.006644/0.4087, allocations: 1.168 MB / 470 MB, free: 3.195 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.555e-05/0.4088, allocations: 13.75 kB / 470 MB, free: 3.191 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005044/0.4093, allocations: 48.12 kB / 470.1 MB, free: 3.176 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004072/0.4097, allocations: 228.1 kB / 470.3 MB, free: 2.926 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.392e-05/0.4097, allocations: 11.22 kB / 470.3 MB, free: 2.922 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.607e-05/0.4098, allocations: 17.44 kB / 470.3 MB, free: 2.914 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001336/0.4111, allocations: 381.6 kB / 470.7 MB, free: 2.645 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.4111, allocations: 2.719 kB / 470.7 MB, free: 2.645 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.983e-05/0.4112, allocations: 14.81 kB / 470.7 MB, free: 2.633 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.819e-06/0.4112, allocations: 7.562 kB / 470.7 MB, free: 2.629 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001488/0.4127, allocations: 353.2 kB / 471.1 MB, free: 2.461 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.001626/0.4143, allocations: 1.176 MB / 472.2 MB, free: 1.293 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009112/0.4152, allocations: 277.8 kB / 472.5 MB, free: 1.113 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002965/0.4155, allocations: 111.7 kB / 472.6 MB, free: 1.043 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1105/0.526, allocations: 52.79 MB / 0.5131 GB, free: 7.758 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.376e-05/0.526, allocations: 42.5 kB / 0.5131 GB, free: 7.707 MB / 430.1 MB Notification: Performance of pre-optimization done (n=23): time 2.605e-06/0.526, allocations: 0 / 0.5131 GB, free: 7.707 MB / 430.1 MB Notification: Performance of matching and sorting (n=33): time 0.007259/0.5333, allocations: 1.574 MB / 0.5147 GB, free: 6.078 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.695e-05/0.5334, allocations: 110.8 kB / 0.5148 GB, free: 5.945 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001229/0.5335, allocations: 125.7 kB / 0.5149 GB, free: 5.812 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.801e-05/0.5335, allocations: 29.7 kB / 0.5149 GB, free: 5.777 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.893e-05/0.5336, allocations: 112.6 kB / 0.515 GB, free: 5.664 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001099/0.5337, allocations: 123 kB / 0.5152 GB, free: 5.543 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001261/0.5338, allocations: 61.69 kB / 0.5152 GB, free: 5.477 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001448/0.534, allocations: 326.8 kB / 0.5155 GB, free: 5.148 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004056/0.5344, allocations: 135.7 kB / 0.5157 GB, free: 5.016 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004741/0.5349, allocations: 202.5 kB / 0.5159 GB, free: 4.793 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008911/0.5358, allocations: 354.6 kB / 0.5162 GB, free: 4.422 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.071e-06/0.5358, allocations: 3.938 kB / 0.5162 GB, free: 4.418 MB / 430.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001158/0.5369, allocations: 430 kB / 0.5166 GB, free: 3.988 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.179e-05/0.5369, allocations: 8 kB / 0.5166 GB, free: 3.98 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.5369, allocations: 0.875 kB / 0.5166 GB, free: 3.98 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000276/0.5372, allocations: 36.84 kB / 0.5166 GB, free: 3.941 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004861/0.5377, allocations: 99.95 kB / 0.5167 GB, free: 3.844 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000439/0.5381, allocations: 0.5407 MB / 0.5173 GB, free: 3.277 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002923/0.5384, allocations: 23.92 kB / 0.5173 GB, free: 3.254 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.069e-05/0.5385, allocations: 15.98 kB / 0.5173 GB, free: 3.238 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.0001828/0.5387, allocations: 146.3 kB / 0.5174 GB, free: 3.09 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001112/0.5388, allocations: 15.91 kB / 0.5175 GB, free: 3.074 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00232/0.5411, allocations: 1.448 MB / 0.5189 GB, free: 1.617 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-05/0.5411, allocations: 23.91 kB / 0.5189 GB, free: 1.594 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/0.5411, allocations: 3.359 kB / 0.5189 GB, free: 1.594 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.5411, allocations: 4 kB / 0.5189 GB, free: 1.59 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003178/0.5443, allocations: 1.979 MB / 0.5208 GB, free: 15.54 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.073e-06/0.5443, allocations: 0 / 0.5208 GB, free: 15.54 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004446/0.5448, allocations: 83.86 kB / 0.5209 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000336/0.5451, allocations: 72.92 kB / 0.521 GB, free: 15.38 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.478e-05/0.5451, allocations: 11.98 kB / 0.521 GB, free: 15.37 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004341/0.5456, allocations: 0.5875 MB / 0.5216 GB, free: 14.76 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.5456, allocations: 8.031 kB / 0.5216 GB, free: 14.75 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002394/0.548, allocations: 1.695 MB / 0.5232 GB, free: 13.03 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001082/0.5481, allocations: 128.6 kB / 0.5234 GB, free: 12.88 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.932e-05/0.5481, allocations: 16 kB / 0.5234 GB, free: 12.87 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003629/0.5485, allocations: 24.02 kB / 0.5234 GB, free: 12.84 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.877e-05/0.5486, allocations: 31.89 kB / 0.5234 GB, free: 12.81 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.356e-05/0.5486, allocations: 16 kB / 0.5234 GB, free: 12.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 7.231e-05/0.5487, allocations: 91.27 kB / 0.5235 GB, free: 12.71 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5487, allocations: 0 / 0.5235 GB, free: 12.71 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004281/0.553, allocations: 0.9747 MB / 0.5245 GB, free: 11.73 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.006625/0.5596, allocations: 1.148 MB / 0.5256 GB, free: 10.59 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001749/0.5613, allocations: 0.601 MB / 0.5262 GB, free: 9.984 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.5613, allocations: 0 / 0.5262 GB, free: 9.984 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008119/0.5621, allocations: 444.6 kB / 0.5266 GB, free: 9.551 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008284/0.563, allocations: 81.75 kB / 0.5267 GB, free: 9.473 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002628/0.5656, allocations: 1.33 MB / 0.528 GB, free: 8.105 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004649/0.5661, allocations: 0.8217 MB / 0.5288 GB, free: 7.258 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001641/0.5662, allocations: 39.41 kB / 0.5288 GB, free: 7.219 MB / 446.1 MB Notification: Performance of SimCode: time 9.72e-07/0.5662, allocations: 0 / 0.5288 GB, free: 7.219 MB / 446.1 MB Notification: Performance of Templates: time 0.03615/0.6024, allocations: 21.92 MB / 0.5502 GB, free: 1.273 MB / 462.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/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: 9.876951004000148]