Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00143/0.00143, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001505/0.001505, allocations: 202.2 kB / 23.72 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.468/1.468, allocations: 230.5 MB / 257.4 MB, free: 7.766 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002061/0.002061, allocations: 67.88 kB / 379 MB, free: 1.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2366/0.2386, allocations: 53.41 MB / 432.5 MB, free: 6.375 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01747/0.2561, allocations: 12.31 MB / 444.8 MB, free: 10.03 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01844/0.2746, allocations: 13.63 MB / 458.4 MB, free: 12.35 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000133/0.2747, allocations: 4 kB / 458.4 MB, free: 12.35 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000361/0.275, allocations: 75.52 kB / 458.5 MB, free: 12.27 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003338/0.2754, allocations: 111.3 kB / 458.6 MB, free: 12.16 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01465/0.29, allocations: 5.928 MB / 464.5 MB, free: 6.242 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004674/0.2905, allocations: 346.5 kB / 464.9 MB, free: 5.902 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.646e-05/0.2906, allocations: 13.8 kB / 464.9 MB, free: 5.887 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004691/0.291, allocations: 223.1 kB / 465.1 MB, free: 5.668 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001615/0.2912, allocations: 99.59 kB / 465.2 MB, free: 5.57 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.276e-05/0.2912, allocations: 16 kB / 465.2 MB, free: 5.555 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01198/0.3032, allocations: 6.47 MB / 471.7 MB, free: 15.08 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.875e-05/0.3033, allocations: 51.83 kB / 471.7 MB, free: 15.03 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001316/0.3034, allocations: 83.72 kB / 471.8 MB, free: 14.95 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007021/0.3104, allocations: 3.921 MB / 475.7 MB, free: 11.02 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.3104, allocations: 0 / 475.7 MB, free: 11.02 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3104, allocations: 3.938 kB / 475.7 MB, free: 11.01 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.231e-06/0.3104, allocations: 0 / 475.7 MB, free: 11.01 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.002497/0.3129, allocations: 0.9428 MB / 476.7 MB, free: 10.04 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.639e-05/0.313, allocations: 11.98 kB / 476.7 MB, free: 10.02 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001369/0.3144, allocations: 184.6 kB / 476.9 MB, free: 9.844 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003112/0.3147, allocations: 198.2 kB / 477 MB, free: 9.625 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.411e-05/0.3147, allocations: 24.75 kB / 477.1 MB, free: 9.602 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.086e-05/0.3148, allocations: 28.12 kB / 477.1 MB, free: 9.574 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003143/0.3179, allocations: 0.9475 MB / 478 MB, free: 8.598 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.414e-05/0.3179, allocations: 4 kB / 478.1 MB, free: 8.594 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.899e-05/0.3179, allocations: 4 kB / 478.1 MB, free: 8.59 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.769e-06/0.318, allocations: 12 kB / 478.1 MB, free: 8.578 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003233/0.3212, allocations: 0.9694 MB / 479 MB, free: 7.605 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.001533/0.3227, allocations: 0.9048 MB / 479.9 MB, free: 6.66 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002626/0.3253, allocations: 0.7285 MB / 480.7 MB, free: 5.922 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002853/0.3256, allocations: 153.4 kB / 480.8 MB, free: 5.77 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07583/0.4015, allocations: 20.63 MB / 0.4897 GB, free: 1.117 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.292e-05/0.4015, allocations: 42.56 kB / 0.4897 GB, free: 1.066 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 2.174e-06/0.4015, allocations: 0 / 0.4897 GB, free: 1.066 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.005481/0.407, allocations: 1.356 MB / 0.4911 GB, free: 15.7 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.682e-05/0.407, allocations: 63.34 kB / 0.4911 GB, free: 15.62 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000135/0.4072, allocations: 117.8 kB / 0.4912 GB, free: 15.5 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.307e-05/0.4073, allocations: 33.7 kB / 0.4913 GB, free: 15.46 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.544e-05/0.4074, allocations: 120.7 kB / 0.4914 GB, free: 15.34 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001682/0.4075, allocations: 127 kB / 0.4915 GB, free: 15.22 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002817/0.4078, allocations: 157.6 kB / 0.4917 GB, free: 15.06 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001596/0.408, allocations: 322.8 kB / 0.492 GB, free: 14.73 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006763/0.4086, allocations: 340.2 kB / 0.4923 GB, free: 14.4 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007788/0.4094, allocations: 415.4 kB / 0.4927 GB, free: 13.97 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001432/0.4109, allocations: 0.7036 MB / 0.4934 GB, free: 13.24 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.521e-06/0.4109, allocations: 7.938 kB / 0.4934 GB, free: 13.23 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001929/0.4128, allocations: 0.8759 MB / 0.4942 GB, free: 12.35 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.14e-05/0.4128, allocations: 8 kB / 0.4942 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.216e-05/0.4128, allocations: 3.984 kB / 0.4942 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.294e-05/0.4128, allocations: 7.938 kB / 0.4942 GB, free: 12.33 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006667/0.4135, allocations: 175.8 kB / 0.4944 GB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.17e-05/0.4135, allocations: 4 kB / 0.4944 GB, free: 12.15 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003429/0.4139, allocations: 31.83 kB / 0.4945 GB, free: 12.12 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001132/0.414, allocations: 64.12 kB / 0.4945 GB, free: 12.06 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.0002401/0.4142, allocations: 137.8 kB / 0.4946 GB, free: 11.91 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001501/0.4144, allocations: 19.91 kB / 0.4947 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00898/0.4233, allocations: 8.501 MB / 0.503 GB, free: 3.375 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.263e-05/0.4234, allocations: 31.89 kB / 0.503 GB, free: 3.344 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.4234, allocations: 0 / 0.503 GB, free: 3.344 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.4234, allocations: 7.984 kB / 0.503 GB, free: 3.336 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003513/0.4269, allocations: 3.639 MB / 0.5066 GB, free: 15.45 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.4269, allocations: 0 / 0.5066 GB, free: 15.45 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006511/0.4276, allocations: 111.8 kB / 0.5067 GB, free: 15.34 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.582e-06/0.4276, allocations: 0 / 0.5067 GB, free: 15.34 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.567e-05/0.4276, allocations: 11.98 kB / 0.5067 GB, free: 15.33 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.159e-06/0.4276, allocations: 4 kB / 0.5067 GB, free: 15.33 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/0.4276, allocations: 3.938 kB / 0.5067 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002648/0.4303, allocations: 1.886 MB / 0.5085 GB, free: 13.42 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.846e-05/0.4304, allocations: 75.28 kB / 0.5086 GB, free: 13.34 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.753e-05/0.4304, allocations: 15.98 kB / 0.5086 GB, free: 13.33 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002933/0.4307, allocations: 12 kB / 0.5086 GB, free: 13.32 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.252e-05/0.4308, allocations: 35.88 kB / 0.5087 GB, free: 13.28 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.866e-05/0.4308, allocations: 11.98 kB / 0.5087 GB, free: 13.27 MB / 430.1 MB Notification: Performance of sorting global known variables: time 6.936e-05/0.4309, allocations: 95.22 kB / 0.5088 GB, free: 13.18 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4309, allocations: 0 / 0.5088 GB, free: 13.18 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002573/0.4335, allocations: 0.998 MB / 0.5097 GB, free: 12.18 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.004237/0.4377, allocations: 1.153 MB / 0.5109 GB, free: 11.01 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001661/0.4394, allocations: 0.8873 MB / 0.5117 GB, free: 10.12 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.4394, allocations: 0 / 0.5117 GB, free: 10.12 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000773/0.4401, allocations: 0.5244 MB / 0.5122 GB, free: 9.602 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006458/0.4408, allocations: 91.38 kB / 0.5123 GB, free: 9.516 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002017/0.4428, allocations: 1.361 MB / 0.5137 GB, free: 8.121 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002409/0.4431, allocations: 255.2 kB / 0.5139 GB, free: 7.848 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0021/0.4452, allocations: 1.787 MB / 0.5156 GB, free: 6.062 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003446/0.4455, allocations: 91.34 kB / 0.5157 GB, free: 5.973 MB / 430.1 MB Notification: Performance of SimCode: time 4.01e-07/0.4455, allocations: 0 / 0.5157 GB, free: 5.973 MB / 430.1 MB Notification: Performance of Templates: time 0.24/0.6855, allocations: 41.95 MB / 0.5567 GB, free: 96.67 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.487174190580845]