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.001759/0.001759, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.002086/0.002086, allocations: 208.5 kB / 23.73 MB, free: 4.523 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.445/1.445, 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.001561/0.001561, allocations: 51.92 kB / 379 MB, free: 1.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2401/0.2417, allocations: 53.37 MB / 432.4 MB, free: 6.438 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01659/0.2582, allocations: 12.31 MB / 444.7 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01776/0.276, allocations: 13.64 MB / 458.3 MB, free: 12.41 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001326/0.2761, allocations: 0 / 458.3 MB, free: 12.41 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003343/0.2765, allocations: 79.5 kB / 458.4 MB, free: 12.33 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003238/0.2768, allocations: 111.2 kB / 458.5 MB, free: 12.22 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01409/0.2909, allocations: 5.922 MB / 464.5 MB, free: 6.301 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004907/0.2914, allocations: 350.5 kB / 464.8 MB, free: 5.957 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.098e-05/0.2914, allocations: 9.812 kB / 464.8 MB, free: 5.945 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004725/0.2919, allocations: 223 kB / 465 MB, free: 5.727 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001776/0.2921, allocations: 107.5 kB / 465.1 MB, free: 5.621 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.8e-05/0.2921, allocations: 16 kB / 465.1 MB, free: 5.605 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01233/0.3044, allocations: 6.736 MB / 471.9 MB, free: 14.86 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.741e-05/0.3045, allocations: 47.83 kB / 471.9 MB, free: 14.82 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000154/0.3047, allocations: 87.66 kB / 472 MB, free: 14.73 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008964/0.3137, allocations: 3.917 MB / 475.9 MB, free: 10.8 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.3137, allocations: 4 kB / 475.9 MB, free: 10.8 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.3137, allocations: 0 / 475.9 MB, free: 10.8 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.066e-06/0.3137, allocations: 0 / 475.9 MB, free: 10.8 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.002503/0.3162, allocations: 0.9428 MB / 476.9 MB, free: 9.824 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/0.3162, allocations: 12.03 kB / 476.9 MB, free: 9.812 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001408/0.3176, allocations: 180.5 kB / 477.1 MB, free: 9.637 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003982/0.318, allocations: 202.2 kB / 477.3 MB, free: 9.414 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.165e-05/0.3181, allocations: 20.81 kB / 477.3 MB, free: 9.395 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.896e-05/0.3181, allocations: 28.12 kB / 477.3 MB, free: 9.367 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003365/0.3215, allocations: 0.9514 MB / 478.3 MB, free: 8.387 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.47e-05/0.3215, allocations: 0 / 478.3 MB, free: 8.387 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.229e-05/0.3215, allocations: 4 kB / 478.3 MB, free: 8.383 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.754e-05/0.3216, allocations: 11.94 kB / 478.3 MB, free: 8.371 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003413/0.325, allocations: 0.9618 MB / 479.2 MB, free: 7.406 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.001504/0.3265, allocations: 0.9126 MB / 480.2 MB, free: 6.453 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002782/0.3293, allocations: 0.7285 MB / 480.9 MB, free: 5.715 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002874/0.3295, allocations: 157.6 kB / 481 MB, free: 5.559 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07346/0.403, allocations: 20.63 MB / 0.4899 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.13e-05/0.403, allocations: 34.56 kB / 0.4899 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 2.013e-06/0.403, allocations: 0 / 0.4899 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.005534/0.4086, allocations: 1.356 MB / 0.4913 GB, free: 15.49 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.582e-05/0.4086, allocations: 63.34 kB / 0.4913 GB, free: 15.42 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001249/0.4087, allocations: 121.7 kB / 0.4914 GB, free: 15.29 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.569e-05/0.4088, allocations: 33.7 kB / 0.4915 GB, free: 15.25 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.043e-05/0.4089, allocations: 120.8 kB / 0.4916 GB, free: 15.13 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000149/0.4091, allocations: 123 kB / 0.4917 GB, free: 15.01 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003658/0.4094, allocations: 157.6 kB / 0.4919 GB, free: 14.85 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.4096, allocations: 322.8 kB / 0.4922 GB, free: 14.52 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007542/0.4103, allocations: 347.8 kB / 0.4925 GB, free: 14.18 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007559/0.4111, allocations: 407.5 kB / 0.4929 GB, free: 13.76 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001399/0.4125, allocations: 0.7036 MB / 0.4936 GB, free: 13.03 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.4125, allocations: 4.375 kB / 0.4936 GB, free: 13.02 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001948/0.4144, allocations: 0.868 MB / 0.4944 GB, free: 12.15 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.241e-05/0.4145, allocations: 8.25 kB / 0.4944 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/0.4145, allocations: 4 kB / 0.4944 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.339e-05/0.4145, allocations: 15.86 kB / 0.4945 GB, free: 12.12 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007436/0.4152, allocations: 175.8 kB / 0.4946 GB, free: 11.95 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.346e-06/0.4153, allocations: 4 kB / 0.4946 GB, free: 11.95 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003671/0.4156, allocations: 31.83 kB / 0.4947 GB, free: 11.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001216/0.4157, allocations: 67.88 kB / 0.4947 GB, free: 11.85 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.0002599/0.416, allocations: 137.7 kB / 0.4949 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001482/0.4162, allocations: 15.91 kB / 0.4949 GB, free: 11.69 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00867/0.4248, allocations: 8.505 MB / 0.5032 GB, free: 3.164 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-05/0.4249, allocations: 31.89 kB / 0.5032 GB, free: 3.133 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.4249, allocations: 0 / 0.5032 GB, free: 3.133 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.4249, allocations: 3.984 kB / 0.5032 GB, free: 3.129 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003322/0.4282, allocations: 3.639 MB / 0.5068 GB, free: 15.25 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/0.4282, allocations: 0 / 0.5068 GB, free: 15.25 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006888/0.4289, allocations: 115.8 kB / 0.5069 GB, free: 15.13 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.4289, allocations: 0 / 0.5069 GB, free: 15.13 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.037e-05/0.4289, allocations: 8 kB / 0.5069 GB, free: 15.12 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.756e-06/0.4289, allocations: 7.984 kB / 0.5069 GB, free: 15.12 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.4289, allocations: 3.938 kB / 0.5069 GB, free: 15.11 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002565/0.4315, allocations: 1.882 MB / 0.5087 GB, free: 13.21 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.814e-05/0.4316, allocations: 75.33 kB / 0.5088 GB, free: 13.14 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.298e-05/0.4316, allocations: 4.062 kB / 0.5088 GB, free: 13.13 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003181/0.432, allocations: 23.98 kB / 0.5088 GB, free: 13.11 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001021/0.4321, allocations: 35.88 kB / 0.5089 GB, free: 13.07 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.292e-05/0.4321, allocations: 15.98 kB / 0.5089 GB, free: 13.06 MB / 430.1 MB Notification: Performance of sorting global known variables: time 6.605e-05/0.4322, allocations: 91.22 kB / 0.509 GB, free: 12.97 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4322, allocations: 4 kB / 0.509 GB, free: 12.96 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00265/0.4348, allocations: 0.998 MB / 0.5099 GB, free: 11.96 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.003772/0.4386, allocations: 1.145 MB / 0.5111 GB, free: 10.81 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001676/0.4403, allocations: 0.8958 MB / 0.5119 GB, free: 9.914 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.4403, allocations: 0 / 0.5119 GB, free: 9.914 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007635/0.441, allocations: 0.5283 MB / 0.5124 GB, free: 9.387 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006294/0.4417, allocations: 86.83 kB / 0.5125 GB, free: 9.305 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001956/0.4436, allocations: 1.361 MB / 0.5139 GB, free: 7.914 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002395/0.4439, allocations: 251.2 kB / 0.5141 GB, free: 7.645 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002071/0.4459, allocations: 1.787 MB / 0.5158 GB, free: 5.859 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003514/0.4463, allocations: 91.34 kB / 0.5159 GB, free: 5.77 MB / 430.1 MB Notification: Performance of SimCode: time 4.91e-07/0.4463, allocations: 0 / 0.5159 GB, free: 5.77 MB / 430.1 MB Notification: Performance of Templates: time 0.232/0.6783, allocations: 42.27 MB / 0.5572 GB, free: 96.33 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.467770841438323]