Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001786/0.001786, allocations: 113 kB / 19.04 MB, free: 3.254 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002033/0.002033, allocations: 197.9 kB / 22.22 MB, free: 72 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 225.6 MB / 250.8 MB, free: 13.32 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2200,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2200,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00152/0.00152, allocations: 51.92 kB / 369.5 MB, free: 9.289 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2526/0.2541, allocations: 52.14 MB / 421.7 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01706/0.2711, allocations: 13.44 MB / 435.1 MB, free: 1.289 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01924/0.2904, allocations: 15.65 MB / 450.8 MB, free: 1.582 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001977/0.2906, allocations: 4 kB / 450.8 MB, free: 1.578 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004388/0.291, allocations: 83.47 kB / 450.9 MB, free: 1.496 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004656/0.2915, allocations: 111.2 kB / 451 MB, free: 1.387 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01685/0.3083, allocations: 5.962 MB / 456.9 MB, free: 11.43 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005873/0.3089, allocations: 350.5 kB / 457.3 MB, free: 11.09 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.507e-05/0.309, allocations: 13.69 kB / 457.3 MB, free: 11.07 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005418/0.3095, allocations: 223 kB / 457.5 MB, free: 10.85 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001768/0.3097, allocations: 107.6 kB / 457.6 MB, free: 10.75 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.988e-05/0.3097, allocations: 12 kB / 457.6 MB, free: 10.73 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01337/0.3231, allocations: 6.778 MB / 464.4 MB, free: 3.953 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.629e-05/0.3232, allocations: 39.84 kB / 464.4 MB, free: 3.914 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001811/0.3234, allocations: 107.6 kB / 464.5 MB, free: 3.809 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008454/0.3318, allocations: 3.909 MB / 468.5 MB, free: 15.89 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.3318, allocations: 0 / 468.5 MB, free: 15.89 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3318, allocations: 0 / 468.5 MB, free: 15.89 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.369e-05/0.3319, allocations: 0 / 468.5 MB, free: 15.89 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.002725/0.3346, allocations: 1.022 MB / 469.5 MB, free: 14.82 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.917e-05/0.3346, allocations: 11.97 kB / 469.5 MB, free: 14.8 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001664/0.3363, allocations: 180.7 kB / 469.7 MB, free: 14.63 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004203/0.3367, allocations: 264 kB / 469.9 MB, free: 14.33 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.348e-05/0.3367, allocations: 16.81 kB / 469.9 MB, free: 14.32 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.266e-05/0.3368, allocations: 24.12 kB / 470 MB, free: 14.29 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003328/0.3401, allocations: 0.909 MB / 470.9 MB, free: 13.36 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.594e-05/0.3401, allocations: 0 / 470.9 MB, free: 13.36 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.563e-05/0.3402, allocations: 8 kB / 470.9 MB, free: 13.36 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.166e-05/0.3402, allocations: 8 kB / 470.9 MB, free: 13.35 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003557/0.3437, allocations: 0.9695 MB / 471.9 MB, free: 12.38 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.001822/0.3456, allocations: 1.343 MB / 473.2 MB, free: 10.9 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002697/0.3483, allocations: 0.7247 MB / 473.9 MB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002948/0.3486, allocations: 152.7 kB / 474.1 MB, free: 10.01 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07921/0.4278, allocations: 37.55 MB / 0.4996 GB, free: 12 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.637e-05/0.4278, allocations: 42.55 kB / 0.4997 GB, free: 15.96 MB / 430.1 MB Notification: Performance of pre-optimization done (n=33): time 2.114e-06/0.4278, allocations: 0 / 0.4997 GB, free: 15.96 MB / 430.1 MB Notification: Performance of matching and sorting (n=33): time 0.005639/0.4335, allocations: 1.361 MB / 0.501 GB, free: 14.59 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.525e-05/0.4335, allocations: 55.41 kB / 0.5011 GB, free: 14.53 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001429/0.4337, allocations: 126 kB / 0.5012 GB, free: 14.39 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.513e-05/0.4338, allocations: 29.7 kB / 0.5012 GB, free: 14.36 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.302e-05/0.4338, allocations: 120.8 kB / 0.5013 GB, free: 14.24 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001513/0.434, allocations: 115.1 kB / 0.5014 GB, free: 14.12 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003272/0.4343, allocations: 181.2 kB / 0.5016 GB, free: 13.94 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001417/0.4345, allocations: 326.8 kB / 0.5019 GB, free: 13.61 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006983/0.4352, allocations: 335.8 kB / 0.5022 GB, free: 13.29 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007696/0.4359, allocations: 403.5 kB / 0.5026 GB, free: 12.86 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001453/0.4374, allocations: 0.7114 MB / 0.5033 GB, free: 12.12 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.077e-06/0.4374, allocations: 0 / 0.5033 GB, free: 12.12 MB / 430.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00201/0.4394, allocations: 0.8759 MB / 0.5042 GB, free: 11.24 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.39e-05/0.4394, allocations: 4 kB / 0.5042 GB, free: 11.24 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.599e-05/0.4394, allocations: 7.938 kB / 0.5042 GB, free: 11.23 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.99e-05/0.4395, allocations: 4 kB / 0.5042 GB, free: 11.23 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007123/0.4402, allocations: 171.8 kB / 0.5043 GB, free: 11.06 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.585e-05/0.4402, allocations: 7.938 kB / 0.5044 GB, free: 11.05 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000368/0.4405, allocations: 39.77 kB / 0.5044 GB, free: 11.01 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001334/0.4407, allocations: 67.91 kB / 0.5045 GB, free: 10.95 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 4 (medium.phase,medium.bubble2.phase,medium.bubble.phase,medium.dew.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002515/0.4409, allocations: 141.9 kB / 0.5046 GB, free: 10.8 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001539/0.4411, allocations: 15.91 kB / 0.5046 GB, free: 10.78 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008593/0.4497, allocations: 7.962 MB / 0.5124 GB, free: 2.805 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.831e-05/0.4497, allocations: 23.97 kB / 0.5124 GB, free: 2.781 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/0.4497, allocations: 7.984 kB / 0.5124 GB, free: 2.773 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.363e-06/0.4497, allocations: 3.938 kB / 0.5124 GB, free: 2.77 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00352/0.4533, allocations: 3.604 MB / 0.5159 GB, free: 14.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.115e-06/0.4533, allocations: 3.938 kB / 0.5159 GB, free: 14.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007112/0.454, allocations: 103.9 kB / 0.516 GB, free: 14.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.889e-06/0.454, allocations: 4 kB / 0.516 GB, free: 14.79 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.288e-05/0.454, allocations: 15.92 kB / 0.5161 GB, free: 14.78 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.713e-06/0.4541, allocations: 4 kB / 0.5161 GB, free: 14.77 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.4541, allocations: 3.938 kB / 0.5161 GB, free: 14.77 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002695/0.4567, allocations: 1.85 MB / 0.5179 GB, free: 12.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000123/0.4569, allocations: 144.4 kB / 0.518 GB, free: 12.74 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.849e-05/0.4569, allocations: 11.94 kB / 0.518 GB, free: 12.73 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003172/0.4572, allocations: 19.92 kB / 0.518 GB, free: 12.71 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001146/0.4574, allocations: 27.97 kB / 0.5181 GB, free: 12.68 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.403e-05/0.4574, allocations: 16.05 kB / 0.5181 GB, free: 12.66 MB / 446.1 MB Notification: Performance of sorting global known variables: time 7.603e-05/0.4575, allocations: 91.27 kB / 0.5182 GB, free: 12.57 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4575, allocations: 0 / 0.5182 GB, free: 12.57 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002816/0.4603, allocations: 0.9902 MB / 0.5191 GB, free: 11.58 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (medium.p,medium.h) * Number of discrete variables: 15 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.region3boundary,$cse10.region3boundary,medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00462/0.4649, allocations: 1.132 MB / 0.5202 GB, free: 10.44 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001804/0.4667, allocations: 0.8845 MB / 0.5211 GB, free: 9.555 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.4667, allocations: 64 / 0.5211 GB, free: 9.555 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008031/0.4675, allocations: 0.5205 MB / 0.5216 GB, free: 9.035 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006673/0.4682, allocations: 96.05 kB / 0.5217 GB, free: 8.941 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002059/0.4703, allocations: 1.32 MB / 0.523 GB, free: 7.594 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004805/0.4707, allocations: 0.8535 MB / 0.5238 GB, free: 6.711 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002098/0.4728, allocations: 1.784 MB / 0.5256 GB, free: 4.922 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003482/0.4732, allocations: 91.34 kB / 0.5257 GB, free: 4.836 MB / 446.1 MB Notification: Performance of SimCode: time 7.31e-07/0.4732, allocations: 0 / 0.5257 GB, free: 4.836 MB / 446.1 MB Notification: Performance of Templates: time 0.2244/0.6976, allocations: 41.43 MB / 0.5661 GB, free: 118.3 MB / 462.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.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.237195085734129]