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.001297/0.001297, allocations: 85.36 kB / 20.68 MB, free: 1.039 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.001468/0.001468, allocations: 164.7 kB / 23.95 MB, free: 4.168 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.431/1.431, allocations: 177.2 MB / 204.3 MB, free: 9.191 MB / 190.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 1.373e-06/1.373e-06, allocations: 3.938 kB / 327.8 MB, free: 14.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.66e-05/2.797e-05, allocations: 2.281 kB / 327.8 MB, free: 14.56 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01706/0.01709, allocations: 12.32 MB / 340.2 MB, free: 5.5 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01882/0.03591, allocations: 13.62 MB / 353.8 MB, free: 8.383 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001667/0.03608, allocations: 0 / 353.8 MB, free: 8.383 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003579/0.03644, allocations: 79.45 kB / 353.9 MB, free: 8.305 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000374/0.03681, allocations: 123.1 kB / 354 MB, free: 8.184 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01556/0.05237, allocations: 6.001 MB / 360 MB, free: 2.184 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005057/0.05288, allocations: 354.3 kB / 360.3 MB, free: 1.836 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.764e-05/0.05292, allocations: 13.8 kB / 360.3 MB, free: 1.824 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005468/0.05347, allocations: 255.2 kB / 360.6 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001716/0.05364, allocations: 91.77 kB / 360.7 MB, free: 1.484 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.327e-05/0.05368, allocations: 12 kB / 360.7 MB, free: 1.473 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01258/0.06626, allocations: 6.496 MB / 367.2 MB, free: 10.97 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.354e-05/0.06635, allocations: 47.81 kB / 367.2 MB, free: 10.92 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001513/0.06651, allocations: 79.83 kB / 367.3 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009305/0.07581, allocations: 4.977 MB / 372.3 MB, free: 5.855 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.07581, allocations: 0 / 372.3 MB, free: 5.855 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.366e-06/0.07582, allocations: 4 kB / 372.3 MB, free: 5.852 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.049e-06/0.07582, allocations: 0 / 372.3 MB, free: 5.852 MB / 334.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.00249/0.07831, allocations: 0.9351 MB / 373.2 MB, free: 4.883 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.402e-05/0.07835, allocations: 8.031 kB / 373.2 MB, free: 4.875 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001471/0.07982, allocations: 188.6 kB / 373.4 MB, free: 4.691 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003159/0.08013, allocations: 201.4 kB / 373.6 MB, free: 4.469 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.118e-05/0.08018, allocations: 20.81 kB / 373.6 MB, free: 4.449 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.557e-05/0.08022, allocations: 16.38 kB / 373.6 MB, free: 4.434 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003431/0.08365, allocations: 0.9529 MB / 374.6 MB, free: 3.449 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.825e-05/0.08367, allocations: 7.938 kB / 374.6 MB, free: 3.441 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.722e-05/0.08371, allocations: 8 kB / 374.6 MB, free: 3.434 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.558e-06/0.08372, allocations: 12 kB / 374.6 MB, free: 3.422 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003542/0.08726, allocations: 0.9619 MB / 375.6 MB, free: 2.457 MB / 334.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.001604/0.08886, allocations: 0.909 MB / 376.5 MB, free: 1.508 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002801/0.09166, allocations: 0.7294 MB / 377.2 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003035/0.09197, allocations: 156.8 kB / 377.4 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07783/0.1698, allocations: 20.61 MB / 398 MB, free: 11.98 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.949e-05/0.1698, allocations: 42.5 kB / 398 MB, free: 11.93 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.074e-06/0.1698, allocations: 0 / 398 MB, free: 11.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.005752/0.1756, allocations: 1.352 MB / 399.4 MB, free: 10.57 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.071e-05/0.1757, allocations: 55.41 kB / 399.4 MB, free: 10.5 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001416/0.1758, allocations: 125.7 kB / 399.6 MB, free: 10.37 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.358e-05/0.1759, allocations: 29.7 kB / 399.6 MB, free: 10.33 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.58e-05/0.176, allocations: 116.9 kB / 399.7 MB, free: 10.21 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001585/0.1761, allocations: 123 kB / 399.8 MB, free: 10.09 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003384/0.1765, allocations: 165.5 kB / 400 MB, free: 9.922 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.1766, allocations: 326.8 kB / 400.3 MB, free: 9.594 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006853/0.1773, allocations: 331.8 kB / 400.6 MB, free: 9.27 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007914/0.1781, allocations: 415.5 kB / 401 MB, free: 8.836 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001537/0.1796, allocations: 0.7075 MB / 401.7 MB, free: 8.102 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.1796, allocations: 0 / 401.7 MB, free: 8.102 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002132/0.1818, allocations: 0.872 MB / 402.6 MB, free: 7.223 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.1818, allocations: 10.88 kB / 402.6 MB, free: 7.215 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.1818, allocations: 4 kB / 402.6 MB, free: 7.211 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.1818, allocations: 0 / 402.6 MB, free: 7.211 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007149/0.1825, allocations: 183.7 kB / 402.8 MB, free: 7.031 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.788e-06/0.1825, allocations: 7.938 kB / 402.8 MB, free: 7.023 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003492/0.1829, allocations: 35.7 kB / 402.9 MB, free: 6.988 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001303/0.183, allocations: 67.92 kB / 402.9 MB, free: 6.922 MB / 366.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.0002655/0.1833, allocations: 145.9 kB / 403.1 MB, free: 6.77 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001563/0.1834, allocations: 15.91 kB / 403.1 MB, free: 6.754 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009104/0.1925, allocations: 8.507 MB / 411.6 MB, free: 14.24 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.361e-05/0.1926, allocations: 27.95 kB / 411.6 MB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.1926, allocations: 0 / 411.6 MB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/0.1926, allocations: 7.938 kB / 411.6 MB, free: 14.2 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003556/0.1962, allocations: 3.64 MB / 415.3 MB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.1962, allocations: 0 / 415.3 MB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006754/0.1968, allocations: 103.8 kB / 415.4 MB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.516e-06/0.1968, allocations: 4 kB / 415.4 MB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.328e-05/0.1969, allocations: 15.98 kB / 415.4 MB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.1969, allocations: 0 / 415.4 MB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.1969, allocations: 0 / 415.4 MB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002761/0.1997, allocations: 1.901 MB / 417.3 MB, free: 8.277 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.537e-05/0.1997, allocations: 71.28 kB / 417.4 MB, free: 8.207 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.798e-05/0.1998, allocations: 12 kB / 417.4 MB, free: 8.195 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003116/0.2001, allocations: 8 kB / 417.4 MB, free: 8.188 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/0.2002, allocations: 31.94 kB / 417.4 MB, free: 8.156 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.646e-05/0.2002, allocations: 19.98 kB / 417.4 MB, free: 8.137 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.056e-05/0.2003, allocations: 95.2 kB / 417.5 MB, free: 8.043 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2003, allocations: 0 / 417.5 MB, free: 8.043 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002685/0.203, allocations: 1.006 MB / 418.5 MB, free: 7.035 MB / 382.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.004176/0.2072, allocations: 1.282 MB / 419.8 MB, free: 5.738 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001756/0.2089, allocations: 0.8955 MB / 420.7 MB, free: 4.844 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.2089, allocations: 0 / 420.7 MB, free: 4.844 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007943/0.2097, allocations: 0.5283 MB / 421.2 MB, free: 4.316 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006821/0.2104, allocations: 88.62 kB / 421.3 MB, free: 4.23 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001962/0.2124, allocations: 1.276 MB / 422.6 MB, free: 2.926 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002416/0.2126, allocations: 255.1 kB / 422.8 MB, free: 2.652 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00209/0.2147, allocations: 1.779 MB / 424.6 MB, free: 0.8711 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003925/0.2151, allocations: 92.41 kB / 424.7 MB, free: 0.7812 MB / 382.1 MB Notification: Performance of SimCode: time 7.71e-07/0.2151, allocations: 4 kB / 424.7 MB, free: 0.7773 MB / 382.1 MB Notification: Performance of Templates: time 0.06076/0.2759, allocations: 41.56 MB / 466.3 MB, free: 7.184 MB / 430.1 MB " [Timeout remaining time 660] 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.101242244243622]