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.001633/0.001633, allocations: 107 kB / 21.18 MB, free: 0.6484 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.002448/0.002448, allocations: 213.3 kB / 24.48 MB, free: 3.941 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 2.191/2.191, allocations: 230.6 MB / 258.2 MB, free: 7.742 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.001729/0.001729, allocations: 43.92 kB / 379.8 MB, free: 1.637 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3649/0.3666, allocations: 53.36 MB / 433.2 MB, free: 6.438 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.02194/0.3885, allocations: 12.32 MB / 445.5 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02379/0.4123, allocations: 13.64 MB / 459.1 MB, free: 12.4 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001712/0.4125, allocations: 4 kB / 459.1 MB, free: 12.4 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000385/0.4129, allocations: 67.53 kB / 459.2 MB, free: 12.33 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004017/0.4133, allocations: 111.2 kB / 459.3 MB, free: 12.22 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01889/0.4322, allocations: 5.932 MB / 465.2 MB, free: 6.297 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005843/0.4328, allocations: 346.5 kB / 465.6 MB, free: 5.957 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.628e-05/0.4328, allocations: 9.75 kB / 465.6 MB, free: 5.945 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005747/0.4334, allocations: 227 kB / 465.8 MB, free: 5.723 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001978/0.4336, allocations: 107.5 kB / 465.9 MB, free: 5.617 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.36e-05/0.4336, allocations: 12 kB / 465.9 MB, free: 5.605 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01551/0.4491, allocations: 6.747 MB / 472.6 MB, free: 14.86 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001191/0.4493, allocations: 47.83 kB / 472.7 MB, free: 14.81 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001679/0.4494, allocations: 79.73 kB / 472.8 MB, free: 14.73 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009519/0.459, allocations: 3.921 MB / 476.7 MB, free: 10.8 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.361e-06/0.459, allocations: 4 kB / 476.7 MB, free: 10.8 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.459, allocations: 0 / 476.7 MB, free: 10.8 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.843e-06/0.459, allocations: 0 / 476.7 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.003042/0.462, allocations: 0.9389 MB / 477.6 MB, free: 9.824 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.034e-05/0.4621, allocations: 8.031 kB / 477.6 MB, free: 9.816 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001864/0.4639, allocations: 180.6 kB / 477.8 MB, free: 9.641 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004416/0.4644, allocations: 206.2 kB / 478 MB, free: 9.414 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.796e-05/0.4644, allocations: 20.81 kB / 478 MB, free: 9.395 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.485e-05/0.4645, allocations: 24.12 kB / 478.1 MB, free: 9.371 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004232/0.4687, allocations: 0.9514 MB / 479 MB, free: 8.391 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.093e-05/0.4687, allocations: 7.938 kB / 479 MB, free: 8.383 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.258e-05/0.4688, allocations: 11.94 kB / 479 MB, free: 8.371 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.235e-05/0.4688, allocations: 8 kB / 479 MB, free: 8.363 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004427/0.4732, allocations: 0.9617 MB / 480 MB, free: 7.398 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.001894/0.4751, allocations: 0.9009 MB / 480.9 MB, free: 6.457 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003631/0.4787, allocations: 0.7293 MB / 481.6 MB, free: 5.719 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000369/0.4791, allocations: 156.8 kB / 481.8 MB, free: 5.562 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09377/0.5729, allocations: 20.64 MB / 0.4907 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.586e-05/0.5729, allocations: 34.56 kB / 0.4907 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 2.775e-06/0.5729, allocations: 0 / 0.4907 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.00728/0.5802, allocations: 1.36 MB / 0.492 GB, free: 15.48 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.083e-05/0.5803, allocations: 63.28 kB / 0.4921 GB, free: 15.41 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001632/0.5804, allocations: 117.8 kB / 0.4922 GB, free: 15.29 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001039/0.5805, allocations: 37.69 kB / 0.4922 GB, free: 15.24 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.567e-05/0.5806, allocations: 116.8 kB / 0.4923 GB, free: 15.12 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002084/0.5808, allocations: 118.9 kB / 0.4924 GB, free: 15.01 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003967/0.5812, allocations: 165.5 kB / 0.4926 GB, free: 14.84 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001816/0.5814, allocations: 334.8 kB / 0.4929 GB, free: 14.51 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009191/0.5823, allocations: 335.8 kB / 0.4932 GB, free: 14.18 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001029/0.5834, allocations: 407.5 kB / 0.4936 GB, free: 13.75 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001896/0.5852, allocations: 0.7075 MB / 0.4943 GB, free: 13.02 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.5853, allocations: 0 / 0.4943 GB, free: 13.02 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002621/0.5879, allocations: 0.8719 MB / 0.4952 GB, free: 12.14 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.239e-05/0.5879, allocations: 4 kB / 0.4952 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.198e-05/0.5879, allocations: 8.25 kB / 0.4952 GB, free: 12.13 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.348e-05/0.5879, allocations: 7.938 kB / 0.4952 GB, free: 12.12 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009387/0.5889, allocations: 175.8 kB / 0.4954 GB, free: 11.95 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.498e-05/0.5889, allocations: 7.938 kB / 0.4954 GB, free: 11.94 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004757/0.5894, allocations: 31.83 kB / 0.4954 GB, free: 11.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001653/0.5895, allocations: 63.94 kB / 0.4955 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.0002961/0.5898, allocations: 137.8 kB / 0.4956 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002128/0.59, allocations: 19.91 kB / 0.4956 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01148/0.6015, allocations: 8.494 MB / 0.5039 GB, free: 3.172 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.573e-05/0.6016, allocations: 31.89 kB / 0.5039 GB, free: 3.141 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.6016, allocations: 0 / 0.5039 GB, free: 3.141 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.044e-05/0.6016, allocations: 7.922 kB / 0.5039 GB, free: 3.133 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004516/0.6061, allocations: 3.639 MB / 0.5075 GB, free: 15.25 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.769e-06/0.6061, allocations: 3.984 kB / 0.5075 GB, free: 15.25 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009054/0.607, allocations: 115.8 kB / 0.5076 GB, free: 15.13 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.454e-06/0.607, allocations: 0 / 0.5076 GB, free: 15.13 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.439e-05/0.6071, allocations: 15.98 kB / 0.5076 GB, free: 15.12 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.753e-06/0.6071, allocations: 4 kB / 0.5076 GB, free: 15.11 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.948e-06/0.6071, allocations: 3.938 kB / 0.5076 GB, free: 15.11 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003405/0.6105, allocations: 1.882 MB / 0.5095 GB, free: 13.21 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001004/0.6106, allocations: 75.33 kB / 0.5095 GB, free: 13.13 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.826e-05/0.6107, allocations: 8 kB / 0.5096 GB, free: 13.12 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003866/0.6111, allocations: 16.06 kB / 0.5096 GB, free: 13.11 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001209/0.6112, allocations: 35.88 kB / 0.5096 GB, free: 13.07 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.225e-05/0.6112, allocations: 15.98 kB / 0.5096 GB, free: 13.06 MB / 430.1 MB Notification: Performance of sorting global known variables: time 8.127e-05/0.6113, allocations: 91.27 kB / 0.5097 GB, free: 12.97 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.6113, allocations: 0 / 0.5097 GB, free: 12.97 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003345/0.6147, allocations: 0.998 MB / 0.5107 GB, free: 11.97 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.005312/0.62, allocations: 1.141 MB / 0.5118 GB, free: 10.82 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002322/0.6223, allocations: 0.8958 MB / 0.5127 GB, free: 9.922 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/0.6223, allocations: 3.938 kB / 0.5127 GB, free: 9.918 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00107/0.6234, allocations: 0.5244 MB / 0.5132 GB, free: 9.395 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008956/0.6243, allocations: 88.2 kB / 0.5133 GB, free: 9.309 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002622/0.6269, allocations: 1.365 MB / 0.5146 GB, free: 7.914 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002906/0.6272, allocations: 251.2 kB / 0.5148 GB, free: 7.645 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002833/0.63, allocations: 1.784 MB / 0.5166 GB, free: 5.859 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004656/0.6305, allocations: 91.34 kB / 0.5167 GB, free: 5.77 MB / 430.1 MB Notification: Performance of SimCode: time 1.473e-06/0.6305, allocations: 0 / 0.5167 GB, free: 5.77 MB / 430.1 MB Notification: Performance of Templates: time 0.327/0.9575, allocations: 42.27 MB / 0.5579 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins1/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: 11.877335697005037]