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.00183/0.00183, allocations: 75.75 kB / 21.24 MB, free: 396 kB / 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.002172/0.002172, allocations: 160.3 kB / 24.49 MB, free: 3.453 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.526/1.526, allocations: 177.1 MB / 204.7 MB, free: 8.977 MB / 190.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.001886/0.001886, allocations: 65.62 kB / 326.3 MB, free: 15.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08866/0.09054, allocations: 53.39 MB / 379.7 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01619/0.1067, allocations: 12.32 MB / 392.1 MB, free: 2.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01775/0.1245, allocations: 13.63 MB / 405.7 MB, free: 4.594 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001159/0.1246, allocations: 3.938 kB / 405.7 MB, free: 4.59 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003307/0.1249, allocations: 75.5 kB / 405.8 MB, free: 4.516 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003195/0.1252, allocations: 115.2 kB / 405.9 MB, free: 4.402 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01434/0.1396, allocations: 5.923 MB / 411.8 MB, free: 14.48 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004926/0.1401, allocations: 346.5 kB / 412.1 MB, free: 14.14 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.001e-05/0.1401, allocations: 13.8 kB / 412.1 MB, free: 14.13 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000499/0.1406, allocations: 219 kB / 412.4 MB, free: 13.91 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001735/0.1408, allocations: 95.61 kB / 412.5 MB, free: 13.82 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.183e-05/0.1408, allocations: 16 kB / 412.5 MB, free: 13.8 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01256/0.1534, allocations: 6.474 MB / 418.9 MB, free: 7.324 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001015/0.1535, allocations: 43.89 kB / 419 MB, free: 7.281 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001622/0.1537, allocations: 95.58 kB / 419.1 MB, free: 7.188 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00751/0.1612, allocations: 3.917 MB / 423 MB, free: 3.262 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.1612, allocations: 0 / 423 MB, free: 3.262 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1612, allocations: 0 / 423 MB, free: 3.262 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.812e-06/0.1612, allocations: 4 kB / 423 MB, free: 3.258 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.002328/0.1635, allocations: 0.9468 MB / 423.9 MB, free: 2.273 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.533e-05/0.1635, allocations: 15.98 kB / 424 MB, free: 2.258 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001395/0.1649, allocations: 176.6 kB / 424.1 MB, free: 2.086 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002977/0.1652, allocations: 190.3 kB / 424.3 MB, free: 1.875 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.294e-05/0.1653, allocations: 16.88 kB / 424.3 MB, free: 1.859 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.731e-05/0.1653, allocations: 28.12 kB / 424.4 MB, free: 1.832 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003098/0.1684, allocations: 0.964 MB / 425.3 MB, free: 0.8359 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.1684, allocations: 0 / 425.3 MB, free: 0.8359 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.173e-05/0.1685, allocations: 8 kB / 425.3 MB, free: 0.8281 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.876e-06/0.1685, allocations: 4 kB / 425.3 MB, free: 0.8242 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003199/0.1717, allocations: 0.9619 MB / 426.3 MB, free: 15.86 MB / 398.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.001434/0.1731, allocations: 0.9207 MB / 427.2 MB, free: 14.9 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002522/0.1756, allocations: 0.7328 MB / 428 MB, free: 14.16 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002833/0.1759, allocations: 152.8 kB / 428.1 MB, free: 14 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0733/0.2492, allocations: 20.63 MB / 448.7 MB, free: 9.344 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.126e-05/0.2493, allocations: 38.55 kB / 448.8 MB, free: 9.297 MB / 414.1 MB Notification: Performance of pre-optimization done (n=33): time 1.954e-06/0.2493, allocations: 0 / 448.8 MB, free: 9.297 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.00513/0.2544, allocations: 1.349 MB / 450.1 MB, free: 7.941 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.93e-05/0.2544, allocations: 67.28 kB / 450.2 MB, free: 7.863 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001285/0.2546, allocations: 129.8 kB / 450.3 MB, free: 7.727 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.019e-05/0.2546, allocations: 29.7 kB / 450.3 MB, free: 7.691 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.367e-05/0.2547, allocations: 112.9 kB / 450.5 MB, free: 7.578 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001372/0.2548, allocations: 119 kB / 450.6 MB, free: 7.461 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002801/0.2551, allocations: 169.5 kB / 450.7 MB, free: 7.289 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.2553, allocations: 322.8 kB / 451.1 MB, free: 6.965 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006398/0.2559, allocations: 335.8 kB / 451.4 MB, free: 6.637 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007359/0.2566, allocations: 403.5 kB / 451.8 MB, free: 6.215 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001401/0.258, allocations: 0.7114 MB / 452.5 MB, free: 5.477 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.258, allocations: 0 / 452.5 MB, free: 5.477 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001885/0.2599, allocations: 0.8758 MB / 453.4 MB, free: 4.598 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.742e-05/0.26, allocations: 11.94 kB / 453.4 MB, free: 4.586 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.26, allocations: 0 / 453.4 MB, free: 4.586 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.978e-05/0.26, allocations: 7.938 kB / 453.4 MB, free: 4.578 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006536/0.2606, allocations: 184 kB / 453.6 MB, free: 4.398 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.297e-06/0.2606, allocations: 8 kB / 453.6 MB, free: 4.391 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003171/0.261, allocations: 31.77 kB / 453.6 MB, free: 4.359 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000125/0.2611, allocations: 63.92 kB / 453.7 MB, free: 4.297 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.0002072/0.2613, allocations: 137.8 kB / 453.8 MB, free: 4.152 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001376/0.2614, allocations: 15.91 kB / 453.8 MB, free: 4.137 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008695/0.2701, allocations: 8.527 MB / 462.3 MB, free: 11.59 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.441e-05/0.2702, allocations: 31.89 kB / 462.4 MB, free: 11.56 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.2702, allocations: 0 / 462.4 MB, free: 11.56 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.2702, allocations: 0 / 462.4 MB, free: 11.56 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003376/0.2735, allocations: 3.637 MB / 466 MB, free: 7.684 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.558e-06/0.2735, allocations: 4 kB / 466 MB, free: 7.68 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006225/0.2742, allocations: 103.8 kB / 466.1 MB, free: 7.578 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.482e-06/0.2742, allocations: 4 kB / 466.1 MB, free: 7.574 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.275e-05/0.2742, allocations: 11.98 kB / 466.1 MB, free: 7.562 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.287e-06/0.2742, allocations: 4 kB / 466.1 MB, free: 7.559 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.227e-06/0.2742, allocations: 3.938 kB / 466.1 MB, free: 7.555 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002571/0.2768, allocations: 1.892 MB / 468 MB, free: 5.645 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.925e-05/0.2769, allocations: 71.28 kB / 468.1 MB, free: 5.574 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.73e-05/0.2769, allocations: 8 kB / 468.1 MB, free: 5.566 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002786/0.2772, allocations: 12 kB / 468.1 MB, free: 5.555 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.183e-05/0.2773, allocations: 35.88 kB / 468.2 MB, free: 5.52 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.492e-05/0.2773, allocations: 27.98 kB / 468.2 MB, free: 5.492 MB / 430.1 MB Notification: Performance of sorting global known variables: time 6.343e-05/0.2774, allocations: 91.27 kB / 468.3 MB, free: 5.402 MB / 430.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2774, allocations: 0 / 468.3 MB, free: 5.402 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002574/0.28, allocations: 0.998 MB / 469.3 MB, free: 4.402 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.003533/0.2835, allocations: 1.153 MB / 470.4 MB, free: 3.238 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001603/0.2851, allocations: 0.8873 MB / 471.3 MB, free: 2.348 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.2851, allocations: 0.5 kB / 471.3 MB, free: 2.348 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007562/0.2859, allocations: 0.5284 MB / 471.8 MB, free: 1.82 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006302/0.2865, allocations: 91.03 kB / 471.9 MB, free: 1.734 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001928/0.2884, allocations: 1.349 MB / 473.3 MB, free: 364 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002409/0.2887, allocations: 259.1 kB / 473.5 MB, free: 80 kB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.1576/0.4463, allocations: 1.777 MB / 475.3 MB, free: 88.25 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003418/0.4466, allocations: 94.81 kB / 475.4 MB, free: 88.24 MB / 430.1 MB Notification: Performance of SimCode: time 8.92e-07/0.4466, allocations: 3.5 kB / 475.4 MB, free: 88.24 MB / 430.1 MB Notification: Performance of Templates: time 0.04061/0.4872, allocations: 41.48 MB / 0.5048 GB, free: 56.85 MB / 430.1 MB " [Timeout remaining time 660] 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 -s ida -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/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_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.431924066040665]