Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.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.002018/0.002018, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.00252/0.00252, allocations: 207 kB / 23.73 MB, free: 4.387 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.46/1.46, allocations: 230.6 MB / 257.5 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.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2200,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001642/0.001642, allocations: 43.92 kB / 379 MB, free: 1.645 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.23/0.2317, allocations: 53.37 MB / 432.4 MB, free: 6.422 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01731/0.249, allocations: 12.31 MB / 444.7 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01865/0.2676, allocations: 13.64 MB / 458.3 MB, free: 12.39 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001628/0.2678, allocations: 0 / 458.3 MB, free: 12.39 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003875/0.2682, allocations: 71.53 kB / 458.4 MB, free: 12.32 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004311/0.2686, allocations: 115.2 kB / 458.5 MB, free: 12.21 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01579/0.2844, allocations: 5.93 MB / 464.5 MB, free: 6.289 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000491/0.2849, allocations: 342.5 kB / 464.8 MB, free: 5.953 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.164e-05/0.285, allocations: 13.8 kB / 464.8 MB, free: 5.938 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004998/0.2855, allocations: 223 kB / 465 MB, free: 5.719 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001776/0.2856, allocations: 103.5 kB / 465.1 MB, free: 5.617 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.194e-05/0.2857, allocations: 16 kB / 465.1 MB, free: 5.602 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01203/0.2977, allocations: 6.474 MB / 471.6 MB, free: 15.12 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001016/0.2978, allocations: 43.89 kB / 471.7 MB, free: 15.08 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001374/0.2979, allocations: 87.66 kB / 471.7 MB, free: 14.99 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009084/0.307, allocations: 3.917 MB / 475.7 MB, free: 11.07 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.307, allocations: 3.938 kB / 475.7 MB, free: 11.06 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.307, allocations: 0 / 475.7 MB, free: 11.06 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.949e-06/0.307, allocations: 4 kB / 475.7 MB, free: 11.06 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.002764/0.3098, allocations: 0.9389 MB / 476.6 MB, free: 10.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.3098, allocations: 12.03 kB / 476.6 MB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001423/0.3113, allocations: 180.6 kB / 476.8 MB, free: 9.898 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004105/0.3117, allocations: 202.2 kB / 477 MB, free: 9.676 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.726e-05/0.3117, allocations: 16.81 kB / 477 MB, free: 9.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.191e-05/0.3118, allocations: 28.12 kB / 477 MB, free: 9.633 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003197/0.315, allocations: 0.9553 MB / 478 MB, free: 8.648 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/0.315, allocations: 0 / 478 MB, free: 8.648 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.118e-05/0.315, allocations: 4 kB / 478 MB, free: 8.645 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.266e-06/0.315, allocations: 8 kB / 478 MB, free: 8.637 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003281/0.3183, allocations: 0.9695 MB / 479 MB, free: 7.664 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.001698/0.32, allocations: 0.9048 MB / 479.9 MB, free: 6.719 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00261/0.3226, allocations: 0.7285 MB / 480.6 MB, free: 5.98 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00031/0.3229, allocations: 149.6 kB / 480.8 MB, free: 5.832 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0755/0.3984, allocations: 20.64 MB / 0.4896 GB, free: 1.168 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.446e-05/0.3985, allocations: 38.5 kB / 0.4897 GB, free: 1.121 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 2.795e-06/0.3985, allocations: 0 / 0.4897 GB, free: 1.121 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.005466/0.4039, allocations: 1.356 MB / 0.491 GB, free: 15.75 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.741e-05/0.404, allocations: 59.34 kB / 0.4911 GB, free: 15.68 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001296/0.4041, allocations: 121.8 kB / 0.4912 GB, free: 15.55 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.747e-05/0.4042, allocations: 29.7 kB / 0.4912 GB, free: 15.52 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.949e-05/0.4043, allocations: 120.8 kB / 0.4913 GB, free: 15.4 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001496/0.4044, allocations: 122.9 kB / 0.4914 GB, free: 15.28 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002788/0.4047, allocations: 165.6 kB / 0.4916 GB, free: 15.11 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001367/0.4048, allocations: 319.2 kB / 0.4919 GB, free: 14.79 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006709/0.4055, allocations: 339.8 kB / 0.4922 GB, free: 14.46 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007587/0.4063, allocations: 411.5 kB / 0.4926 GB, free: 14.03 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001433/0.4077, allocations: 0.7152 MB / 0.4933 GB, free: 13.29 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.62e-06/0.4077, allocations: 8 kB / 0.4933 GB, free: 13.28 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001947/0.4097, allocations: 0.8719 MB / 0.4942 GB, free: 12.4 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.161e-05/0.4097, allocations: 8 kB / 0.4942 GB, free: 12.39 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.4097, allocations: 3.984 kB / 0.4942 GB, free: 12.39 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.117e-05/0.4097, allocations: 8.188 kB / 0.4942 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006572/0.4104, allocations: 179.8 kB / 0.4944 GB, free: 12.21 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.137e-05/0.4104, allocations: 4 kB / 0.4944 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003429/0.4107, allocations: 31.83 kB / 0.4944 GB, free: 12.17 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001166/0.4108, allocations: 63.92 kB / 0.4945 GB, free: 12.11 MB / 414.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.0002282/0.4111, allocations: 145.7 kB / 0.4946 GB, free: 11.96 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001486/0.4112, allocations: 15.91 kB / 0.4946 GB, free: 11.94 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009211/0.4204, allocations: 8.501 MB / 0.5029 GB, free: 3.422 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.576e-05/0.4205, allocations: 31.89 kB / 0.5029 GB, free: 3.391 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.4205, allocations: 0 / 0.5029 GB, free: 3.391 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.4205, allocations: 3.984 kB / 0.5029 GB, free: 3.387 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003527/0.424, allocations: 3.635 MB / 0.5065 GB, free: 15.51 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.67e-06/0.424, allocations: 0 / 0.5065 GB, free: 15.51 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000631/0.4246, allocations: 115.8 kB / 0.5066 GB, free: 15.39 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.122e-06/0.4246, allocations: 0 / 0.5066 GB, free: 15.39 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.458e-05/0.4247, allocations: 19.98 kB / 0.5066 GB, free: 15.38 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.4247, allocations: 0 / 0.5066 GB, free: 15.38 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.4247, allocations: 3.938 kB / 0.5066 GB, free: 15.37 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0027/0.4274, allocations: 1.886 MB / 0.5085 GB, free: 13.46 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.125e-05/0.4275, allocations: 67.31 kB / 0.5085 GB, free: 13.4 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.503e-05/0.4275, allocations: 11.94 kB / 0.5085 GB, free: 13.39 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002959/0.4278, allocations: 15.98 kB / 0.5086 GB, free: 13.37 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001427/0.428, allocations: 39.94 kB / 0.5086 GB, free: 13.33 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.512e-05/0.428, allocations: 15.98 kB / 0.5086 GB, free: 13.32 MB / 430.1 MB Notification: Performance of sorting global known variables: time 7.347e-05/0.4281, allocations: 91.22 kB / 0.5087 GB, free: 13.23 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4281, allocations: 0 / 0.5087 GB, free: 13.23 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002721/0.4308, allocations: 0.998 MB / 0.5097 GB, free: 12.23 MB / 430.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.004429/0.4353, allocations: 1.145 MB / 0.5108 GB, free: 11.07 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001622/0.4369, allocations: 0.8881 MB / 0.5117 GB, free: 10.18 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.4369, allocations: 0 / 0.5117 GB, free: 10.18 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007729/0.4377, allocations: 0.5362 MB / 0.5122 GB, free: 9.648 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000646/0.4383, allocations: 82.53 kB / 0.5123 GB, free: 9.57 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002014/0.4403, allocations: 1.361 MB / 0.5136 GB, free: 8.18 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000239/0.4406, allocations: 255.1 kB / 0.5138 GB, free: 7.906 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002061/0.4426, allocations: 1.787 MB / 0.5156 GB, free: 6.117 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003361/0.4429, allocations: 87.34 kB / 0.5157 GB, free: 6.031 MB / 430.1 MB Notification: Performance of SimCode: time 4.71e-07/0.4429, allocations: 0 / 0.5157 GB, free: 6.031 MB / 430.1 MB Notification: Performance of Templates: time 0.2376/0.6805, allocations: 41.96 MB / 0.5566 GB, free: 96.79 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.394890246912837]